/* Johnson Books LLC — shared styles
   Seed 2-3-7-3-8-7-6: deep, rich book-cloth colors (library navy, oxblood, bottle green, foil gold, paper cream) ·
   pale navy tint base · narrow document-like column · condensed bold uppercase headings (Big Shoulders) + sans
   body (Open Sans) · oversized logo and name with underline nav · each category in its own full-width colored
   band · diagonal section dividers · motif: a row of book spines */

@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tint: #eef1f7;
  --tint-2: #dfe5f0;
  --ink: #151d33;
  --muted: #4a5470;
  --navy: #1e2f57;
  --oxblood: #7e2230;
  --green: #1f4d3a;
  --teal: #1d4a55;
  --brown: #4a2e1c;
  --gold: #c99a3e;
  --gold-lt: #e8c271;
  --cream: #f6efe0;
  --cond: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --spines: url("assets/motif-spines.svg") 0 0 / 60px 18px repeat-x;
  --col: 820px;
  --slant: clamp(18px, 3.2vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--tint); }
body { margin: 0; font-family: var(--sans); font-size: 1.03rem; line-height: 1.66; color: var(--ink); background: var(--tint); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1; margin: 0 0 0.45em; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: 0.03em; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: var(--oxblood); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.col { width: 100%; max-width: var(--col); margin: 0 auto; padding-inline: clamp(1.1rem, 4.5vw, 1.8rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; background: var(--navy); color: var(--cream); }
.skip-link:focus { top: 1rem; }
.spines { height: 18px; background: var(--spines); }

/* ---------- oversized logo and name, underline nav ---------- */
.site-header { padding-top: clamp(1.2rem, 3vw, 1.8rem); }
.brand { display: flex; align-items: center; gap: clamp(0.8rem, 2.5vw, 1.3rem); color: var(--navy); text-decoration: none; }
.brand img { width: 96px; height: auto; flex: none; }
.brand-name { font-family: var(--cond); font-weight: 700; font-size: clamp(2.3rem, 7.5vw, 4rem); line-height: 0.95; text-transform: uppercase; }
.brand:hover { color: var(--oxblood); }
.main-nav { margin-top: 1rem; border-top: 2px solid var(--navy); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; list-style: none; margin: 0; padding: 0.6rem 0 0.9rem; }
.main-nav a { display: inline-block; padding: 0.15rem 0; color: var(--ink); font-weight: 700; font-size: 0.98rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.main-nav a:hover { text-decoration-color: var(--gold); color: var(--ink); }
.main-nav a[aria-current="page"] { text-decoration-color: var(--oxblood); color: var(--oxblood); }

/* ---------- document column ---------- */
.intro { padding-block: clamp(1.8rem, 4.5vw, 2.8rem) clamp(1.4rem, 3.5vw, 2.2rem); }
.tag { display: inline-block; margin: 0 0 0.9rem; padding: 0.25rem 0.7rem; background: var(--navy); color: var(--cream); font-weight: 600; font-size: 0.88rem; line-height: 1.45; max-width: 100%; }
.lede { font-size: clamp(1.08rem, 2vw, 1.2rem); color: var(--muted); }
.kicker { margin: 0 0 0.25rem; color: var(--oxblood); font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-art { display: block; width: 100%; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.62rem 1.25rem; background: var(--oxblood); color: var(--cream); font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--navy); color: var(--cream); }
.btn-plain { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-plain:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.block { padding-block: clamp(1.8rem, 4.5vw, 2.6rem); }

/* diagonal full-width bands */
.band { position: relative; padding-block: calc(var(--slant) + clamp(1.6rem, 4vw, 2.4rem)); color: var(--cream); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.band + .band { margin-top: calc(var(--slant) * -0.55); }
.band h2, .band h3, .band strong { color: var(--cream); }
.band p { color: #e3dccc; }
.band a { color: var(--gold-lt); }
.band a:hover { color: var(--cream); }
.band .kicker { color: var(--gold-lt); }
.b-navy { background: var(--navy); }
.b-oxblood { background: var(--oxblood); }
.b-green { background: var(--green); }
.b-teal { background: var(--teal); }
.b-brown { background: var(--brown); }
.b-pale { background: var(--tint-2); color: var(--ink); }
.b-pale h2, .b-pale h3, .b-pale strong { color: var(--ink); }
.b-pale p { color: var(--muted); }
.b-pale a { color: var(--oxblood); }
.b-pale .kicker { color: var(--oxblood); }

/* home */
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-list li + li { border-top: 1px solid rgba(246, 239, 224, 0.22); }
.shelf-list a { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; color: var(--cream); text-decoration: none; }
.shelf-list .chip { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--cream); }
.shelf-list .chip img { width: 40px; height: 40px; }
.shelf-list .s-name { display: block; font-family: var(--cond); font-weight: 700; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; }
.shelf-list .s-meta { display: block; color: #d9d1c0; font-size: 0.9rem; }
.shelf-list a:hover .s-name { color: var(--gold-lt); }
.ledger { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.ledger li { position: relative; padding: 0.7rem 0 0.7rem 2.6rem; border-bottom: 1px solid #c9d1e2; color: var(--muted); counter-increment: l; }
.ledger li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 0.55rem; font-family: var(--cond); font-weight: 700; font-size: 1.35rem; color: var(--oxblood); }
.ledger strong { color: var(--ink); }
.band .ledger li { border-color: rgba(246, 239, 224, 0.22); color: #e3dccc; }
.band .ledger li::before { color: var(--gold-lt); }

/* ---------- catalog: each category in its own colored band ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.toc a { font-weight: 700; color: var(--navy); }
.cat { scroll-margin-top: 0.5rem; }
.cat-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.cat-head .chip { width: 60px; height: 60px; flex: none; display: grid; place-items: center; background: var(--cream); }
.cat-head .chip img { width: 46px; height: 46px; }
.cat-head h2 { margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1.4rem; padding: 0.85rem 0; border-top: 1px solid rgba(246, 239, 224, 0.25); }
.items h3 { margin: 0; font-size: 1.28rem; }
.items p { grid-column: 1; margin: 0; font-size: 0.97rem; }
.items .price { grid-column: 2; grid-row: 1 / span 2; align-self: start; color: var(--gold-lt); font-family: var(--cond); font-weight: 700; font-size: 1.55rem; line-height: 1.1; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.items .price.quote { max-width: 10rem; white-space: normal; font-size: 1.1rem; color: var(--cream); }
.items .price.quote a { display: block; margin-top: 0.25rem; font-family: var(--sans); font-size: 0.88rem; white-space: nowrap; }
.deals { list-style: none; margin: 0; padding: 0; }
.deals li { padding: 0.9rem 0; border-top: 2px solid var(--navy); }
.deals h3 { margin-bottom: 0.25rem; color: var(--navy); }
.deals p { margin: 0; color: var(--muted); }
.deals .deal { display: inline-block; margin-top: 0.45rem; padding: 0.1rem 0.6rem; background: var(--gold); color: var(--ink); font-weight: 700; }

/* ---------- about / contact ---------- */
.story p { color: var(--muted); }
.story .tag { color: var(--cream); }
.story .first { color: var(--ink); font-size: 1.14rem; }
.facts, .details { margin: 0; }
.facts div, .details div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.65rem 0; border-top: 1px solid rgba(246, 239, 224, 0.25); }
.b-pale .facts div, .b-pale .details div, .details.on-tint div { border-color: #c4cddf; }
.facts dt, .details dt { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-lt); }
.details.on-tint dt { color: var(--oxblood); }
.facts dd, .details dd { margin: 0; font-weight: 600; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.4rem; font-family: var(--cond); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; color: inherit; }
.hours th, .hours td { padding: 0.55rem 0.4rem 0.55rem 0; text-align: left; border-top: 1px solid rgba(246, 239, 224, 0.25); }
.hours thead th { font-family: var(--cond); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-lt); border-top: 0; }
.hours tbody th { font-weight: 700; padding-right: 1rem; }
.hours td { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.hours td.closed { color: var(--gold-lt); font-weight: 700; }
.map-frame { display: block; width: 100%; height: 360px; border: 0; background: var(--tint-2); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(1.6rem, 4vw, 2.6rem); background: var(--ink); color: #c9cfdd; font-size: 0.95rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-lt); }
.footer-inner { padding-block: 1.8rem 1.2rem; }
.footer-name { margin: 0 0 0.2rem; font-family: var(--cond); font-weight: 700; font-size: 1.8rem; text-transform: uppercase; color: var(--cream); }
.site-footer address { font-style: normal; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.1rem; }
.footer-title { margin: 0 0 0.35rem; color: var(--gold-lt); font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 1.3rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; }

@media (max-width: 600px) {
  .brand img { width: 72px; }
  .main-nav ul { gap: 0.2rem 1.1rem; }
  .items li { grid-template-columns: 1fr; }
  .items .price { grid-column: 1; grid-row: auto; text-align: left; }
  .items .price.quote { max-width: none; }
  .facts div, .details div { grid-template-columns: 1fr; }
  .footer-cols { 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; }
}
