/* BlackView LLC — shared styles
   Seed 2-3-4-7-1-5-3: deep rich bookshop colours (oxblood binding, bottle-green cloth, gold foil, newsprint) ·
   pale oxblood-tint base · full-width bands with alternating alignment · rounded soft sans (Folio Rounded) ·
   logo left, nav right, thin rule · category index column + item rows · 14px radius · motif: book spines */

@font-face { font-family: "Folio Rounded"; src: url("fonts/folio-rounded-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Folio Rounded"; src: url("fonts/folio-rounded-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Folio Rounded"; src: url("fonts/folio-rounded-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tint: #f8efec;
  --tint-2: #f1e2dd;
  --white: #ffffff;
  --oxblood: #6d1f2a;
  --oxblood-deep: #4a1520;
  --green: #1f4a3c;
  --gold: #c9a24a;
  --paper: #f3ead8;
  --ink: #1f1716;
  --muted: #64514e;
  --line: #e4d1cb;
  --r: 14px;
  --sans: "Folio Rounded", "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --spines: url("assets/motif-spines.svg") 0 0 / 96px 22px repeat-x;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.08rem; line-height: 1.68; color: var(--ink); background: var(--tint); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 0.45em; color: var(--oxblood-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--oxblood); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; border-radius: var(--r); background: var(--gold); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header: logo left, nav right, thin rule ---------- */
.site-header { background: var(--tint); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 2rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--oxblood-deep); text-decoration: none; }
.brand img { width: 66px; height: auto; flex: none; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 1.8rem); line-height: 1.05; }
.brand:hover .brand-name { color: var(--green); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.3rem 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--oxblood); }
.main-nav a[aria-current="page"] { color: var(--oxblood); border-bottom-color: var(--gold); }

/* ---------- full-width bands, alternating alignment ---------- */
.band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.band-white { background: var(--white); }
.band-deep { background: var(--green); color: var(--paper); }
.band-deep h2, .band-deep h3 { color: var(--white); }
.band-deep a:not(.btn) { color: var(--paper); }
.spines { height: 22px; background: var(--spines); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.row.flip > :first-child { order: 2; }
.row.top { align-items: start; }
.align-end { text-align: right; }
.align-end .lede { margin-left: auto; }
.align-end .btn-row { justify-content: flex-end; }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: var(--r); background: var(--white); color: var(--muted); font-weight: 600; font-size: 0.9rem; line-height: 1.45; }
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--muted); max-width: 44ch; }
.band-deep .lede { color: #d7e3dd; }
.kicker { margin: 0 0 0.35rem; color: var(--oxblood); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.band-deep .kicker { color: var(--gold); }
.hero-art { display: block; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1.35rem; border-radius: var(--r); background: var(--oxblood); color: var(--white); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--oxblood-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--oxblood-deep); }
.btn-ghost:hover { background: var(--tint-2); color: var(--oxblood-deep); }
.band-deep .btn { background: var(--gold); color: var(--ink); }
.band-deep .btn:hover { background: var(--paper); color: var(--ink); }
.band-deep .btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(243, 234, 216, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- home ---------- */
.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.sections a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.7rem 1rem; border-radius: var(--r); background: var(--tint); color: var(--ink); text-decoration: none; }
.sections a:hover { background: var(--tint-2); }
.sections img { width: 52px; height: 52px; }
.sections .s-name { font-weight: 700; letter-spacing: 0.02em; }
.sections .s-count { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 0.95rem 1.9rem; color: #d7e3dd; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.8rem; height: 1.1rem; border-radius: 3px; background: var(--gold); box-shadow: 4px 0 0 rgba(243, 234, 216, 0.35); }
.ticks strong { color: var(--white); }
.light .ticks li { color: var(--muted); }
.light .ticks strong { color: var(--ink); }
.light .ticks li::before { box-shadow: 4px 0 0 var(--line); }
.spot { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--white); }
.spot h3 { margin-bottom: 0.2rem; }
.spot p { margin: 0; color: var(--muted); }

/* ---------- catalog: category index column + item rows ---------- */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.index { position: sticky; top: 1rem; padding: 0.7rem; border-radius: var(--r); background: var(--white); }
.index p { margin: 0.3rem 0.5rem 0.5rem; color: var(--muted); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 0.6rem; align-items: center; padding: 0.5rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-decoration: none; }
.index a:hover { background: var(--tint); color: var(--oxblood); }
.index img { width: 36px; height: 36px; }
.shelf { scroll-margin-top: 1rem; }
.shelf + .shelf { margin-top: 2.3rem; }
.shelf-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.8rem; }
.shelf-head img { width: 54px; height: 54px; flex: none; padding: 6px; border-radius: var(--r); background: var(--white); }
.shelf-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: 0.02em; }
.items { list-style: none; margin: 0; padding: 0; border-radius: var(--r); background: var(--white); overflow: hidden; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1.2rem; padding: 0.9rem 1.2rem; }
.item + .item { border-top: 1px solid var(--line); }
.item-name { margin: 0; font-size: 1.06rem; color: var(--ink); }
.item-desc { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.98rem; }
.item-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; color: var(--oxblood); font-weight: 700; font-size: 1.12rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-price.quote { max-width: 12rem; white-space: normal; color: var(--ink); font-size: 0.95rem; line-height: 1.35; text-align: right; }
.item-price .call { display: block; margin-top: 0.25rem; color: var(--oxblood); white-space: nowrap; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.offers li { padding: 1.1rem 1.2rem; border-radius: var(--r); background: rgba(243, 234, 216, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 234, 216, 0.25); }
.offers h3 { margin-bottom: 0.3rem; color: var(--gold) !important; }
.offers p { margin: 0; color: #d7e3dd; }

/* ---------- about / contact ---------- */
.facts { margin: 0; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--tint); }
.facts div { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--oxblood); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; }
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.22rem; }
.story .kicker { color: var(--oxblood); }
.details { margin: 0; display: grid; gap: 0.75rem; }
.details div { padding: 0.85rem 1.1rem; border-radius: var(--r); background: var(--tint); }
.details dt { color: var(--oxblood); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 600; font-size: 1.06rem; }
.details address { font-style: normal; }
.hours-card { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--white); }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.45rem; font-weight: 700; font-size: 1.3rem; color: var(--oxblood-deep); }
.hours th, .hours td { padding: 0.45rem 0.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours thead th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours tbody th { font-weight: 600; }
.hours td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--oxblood); font-weight: 700; }
.map-frame { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--r); background: var(--tint-2); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--oxblood-deep); color: #ecd9d4; font-size: 0.98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.8rem; padding-block: 2.2rem 1.4rem; }
.footer-name { margin: 0 0 0.3rem; color: var(--white); font-weight: 700; font-size: 1.35rem; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.88rem; }

@media (max-width: 900px) {
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip > :first-child { order: 0; }
  .align-end { text-align: left; }
  .align-end .lede { margin-left: 0; }
  .align-end .btn-row { justify-content: flex-start; }
  .catalog { grid-template-columns: 1fr; }
  .index { position: static; }
  .index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem; }
  .offers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1.03rem; }
  .brand img { width: 56px; }
  .main-nav ul { gap: 0.2rem 1.1rem; }
  .sections a { grid-template-columns: 44px minmax(0, 1fr); }
  .sections img { width: 44px; height: 44px; }
  .sections .s-count { grid-column: 2; margin-top: -0.7rem; }
  .index ul { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item-price { grid-column: 1; grid-row: auto; margin-top: 0.35rem; }
  .item-price.quote { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.facts-white { background: var(--white); }
.details-gap { margin-top: 1.4rem; }
.details-gap div { background: var(--white); }
.band-white .spot, .band-white .index, .band-white .items, .band-white .shelf-head img { background: var(--tint); }
.band-white .index a:hover { background: var(--white); }
