/* ==========================================================================
   Tsunami Reading — Online Bookstore
   Palette and type derived from the printed covers:
   midnight navy grounds, ivory and brass display type, hairline keylines.
   ========================================================================== */

:root {
  /* Ground and paper */
  --ivory:        #F7F2E7;
  --ivory-bright: #FDFAF3;
  --sand:         #EBE1CD;
  --sand-deep:    #DCCDAE;

  /* Ink */
  --ink:          #0E2140;
  --ink-deep:     #071228;
  --ink-soft:     #21406B;

  /* Accents */
  --brass:        #A07733;
  --brass-lit:    #C9A65E;
  --sea:          #3A6A7C;

  /* Text */
  --text:         #17263C;
  --text-muted:   #6A6350;
  --text-on-ink:  #EFE7D5;
  --text-on-ink-muted: #B7B39F;

  /* Lines */
  --rule:         rgba(14, 33, 64, 0.16);
  --rule-soft:    rgba(14, 33, 64, 0.09);
  --rule-on-ink:  rgba(239, 231, 213, 0.22);

  /* Shadows — warm-tinted, book-like */
  --sh-card:  0 1px 2px rgba(14,33,64,.07), 0 10px 24px -12px rgba(14,33,64,.22);
  --sh-book:  0 2px 3px rgba(11,26,50,.14), 0 14px 26px -12px rgba(11,26,50,.38), 0 34px 58px -30px rgba(11,26,50,.34);
  --sh-lift:  0 3px 5px rgba(11,26,50,.16), 0 22px 40px -14px rgba(11,26,50,.42), 0 46px 76px -34px rgba(11,26,50,.38);
  --sh-inset: inset 0 0 0 1px rgba(14,33,64,.06);

  /* Type */
  --f-display: "Marcellus", "Optima", "Palatino Linotype", Georgia, serif;
  --f-text:    "Spectral", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-ui:      "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Shared primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--on-ink { color: var(--brass-lit); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Hairline wave rule — the house divider, drawn from the cover line-art */
.wave-rule {
  display: block;
  width: 100%;
  height: 18px;
  color: var(--rule);
  margin: 0;
}
.wave-rule svg { width: 100%; height: 100%; display: block; }

/* Keyline frame: the double rule used on the printed workbook covers */
.keyline {
  border: 1px solid var(--rule);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--rule-soft);
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--ink-deep);
  color: var(--text-on-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.3);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  min-height: 74px;
  flex-wrap: wrap;
  padding-block: .6rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.brand--foot img { height: 44px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.9rem); flex-wrap: wrap; }
.nav a {
  font-family: var(--f-ui);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-ink);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--brass-lit); border-bottom-color: var(--brass-lit); }
.nav a[aria-current="page"] { color: var(--brass-lit); border-bottom-color: var(--brass-lit); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--f-ui);
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .82rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory-bright);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory-bright); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--brass:hover { background: #8C6729; border-color: #8C6729; }
.btn--sm { padding: .62rem 1.05rem; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--text-muted);
  border-style: dashed;
  border-color: var(--rule);
  cursor: default;
  pointer-events: none;
}

/* ---------- Book cover object ----------
   Every cover is drawn at its true size relative to the widest trim on the
   list (8.5 in), and stands on the bottom of a fixed box, so a mixed row of
   6 × 9 books and 8.5 × 11 workbooks lines up on a shelf instead of floating. */
.figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 8.5 / 11;
}
.cover {
  position: relative;
  display: block;
  width: var(--cw, 100%);
  flex: 0 0 auto;
  background: var(--sand);
  box-shadow: var(--sh-book);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s;
  isolation: isolate;
}
.cover img { width: 100%; height: auto; }
/* Spine shading + page-edge sliver: makes a flat scan read as a physical book */
.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  max-width: 22px;
  background: linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.10) 42%, rgba(255,255,255,.13) 72%, rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
  z-index: 3;
  pointer-events: none;
}
a:hover .cover, a:focus-visible .cover { transform: translateY(-6px); box-shadow: var(--sh-lift); }

/* Typographic stand-in cover for titles whose cover art is still in design.
   Built from the same parts as the printed workbook covers: inset keyline,
   series line at the head, title and rule at the optical centre, imprint at the foot. */
.cover--type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  aspect-ratio: var(--car, 1 / 1.5);
  width: 100%;
  padding: 9% 8%;
  text-align: center;
  background: var(--ink);
  color: var(--text-on-ink);
}
.cover--type.is-planner { background: var(--sand); color: var(--ink); }
.cover--type > * { display: block; width: 100%; }
.ct-frame {
  position: absolute;
  inset: 5%;
  border: 1px solid currentColor;
  opacity: .28;
  width: auto !important;
  pointer-events: none;
}
.ct-mid { display: flex !important; flex-direction: column; align-items: center; gap: 4cqw; }
.ct-series {
  font-family: var(--f-ui);
  font-size: clamp(6px, 2.1cqw, 11px);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--brass-lit);
}
.cover--type.is-planner .ct-series { color: var(--brass); }
.ct-title {
  font-family: var(--f-display);
  font-size: clamp(15px, 9cqw, 34px);
  line-height: 1.18;
  letter-spacing: .01em;
  text-wrap: balance;
}
.ct-rule { width: 26% !important; height: 1px; background: currentColor; opacity: .5; }
.ct-author {
  font-family: var(--f-ui);
  font-size: clamp(7px, 2.7cqw, 13px);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.5;
  opacity: .85;
}
.ct-mark {
  font-family: var(--f-ui);
  font-size: clamp(5px, 1.7cqw, 10px);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .5;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(235,225,205,.9), rgba(247,242,231,0) 60%),
    var(--ivory);
  border-bottom: 1px solid var(--rule-soft);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  margin-block: .7rem 1.1rem;
  color: var(--ink);
}
.hero__title em { font-style: normal; color: var(--brass); }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* The shelf: covers standing on a hairline, as they sit in print */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 2vw, 1.4rem);
  align-items: end;
  position: relative;
  padding-bottom: 1.4rem;
}
.shelf::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
}
.shelf > * { container-type: inline-size; }
.shelf > :nth-child(1) { transform: translateY(14px) rotate(-1.1deg); }
.shelf > :nth-child(3) { transform: translateY(9px) rotate(1.3deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink-deep); color: var(--text-on-ink); }
.section--ink .section__title { color: var(--text-on-ink); }
.section--ink .lede { color: var(--text-on-ink-muted); }

.section__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-block: .55rem .6rem;
}
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.tile {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--ivory-bright);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--sh-card);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--rule); }
.tile__count { font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.tile__name { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }
.tile__desc { font-size: .95rem; color: var(--text-muted); }
.tile__more { margin-top: .5rem; font-family: var(--f-ui); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }

/* ---------- Series shelves ---------- */
.series { padding-block: clamp(1.8rem, 4vw, 2.6rem); border-top: 1px solid var(--rule-soft); }
.series:first-of-type { border-top: 0; }
.series__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.series__name { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--ink); }
.series__note { font-family: var(--f-ui); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.series__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.series__row > * { container-type: inline-size; }

/* ---------- Book card ---------- */
.card { display: flex; flex-direction: column; gap: .7rem; height: 100%; container-type: inline-size; }
.card__link { text-decoration: none; color: inherit; display: block; }
.card__body { display: flex; flex-direction: column; gap: .28rem; }
.card__series { font-family: var(--f-ui); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.card__title { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.card__sub {
  font-family: var(--f-text); font-style: italic; font-size: .84rem; line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: .07em;
  color: var(--text-muted);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.card__meta .dot { opacity: .45; }
.card__price { color: var(--ink); font-weight: 500; }
.card__formats {
  font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.card__actions { margin-top: auto; padding-top: .5rem; }

.badge {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border: 1px solid var(--rule);
  color: var(--text-muted);
}
.badge--soon { border-color: var(--brass); color: var(--brass); }

/* ---------- Catalogue grid ---------- */
.pagehead {
  background: var(--ink-deep);
  color: var(--text-on-ink);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.pagehead__title {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin-block: .6rem .8rem;
  color: var(--ivory-bright);
}
.pagehead .lede { color: var(--text-on-ink-muted); }

.subnav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.8rem; }
.subnav a {
  font-family: var(--f-ui);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .55rem 1.05rem;
  border: 1px solid var(--rule-on-ink);
  color: var(--text-on-ink);
  transition: background .2s, color .2s, border-color .2s;
}
.subnav a:hover { border-color: var(--brass-lit); color: var(--brass-lit); }
.subnav a[aria-current="page"] { background: var(--brass); border-color: var(--brass); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(1.6rem, 3.2vw, 2.6rem);
}

/* ---------- Detail page ---------- */
.crumbs { font-family: var(--f-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding-block: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--text-muted); border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; margin-inline: .45rem; }

.detail { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); align-items: start; }
.detail__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.6rem; container-type: inline-size; }
.detail__aside .figure { aspect-ratio: auto; }
.detail__aside .cover { width: 100%; }
.detail__hook {
  font-family: var(--f-text);
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
  margin-bottom: 1.4rem;
}
.detail__title { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; color: var(--ink); margin-block: .5rem .6rem; }
.detail__sub { font-family: var(--f-text); font-style: italic; font-size: 1.08rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 1.8rem; }
.detail__blurb { font-size: 1.02rem; line-height: 1.72; max-width: 64ch; }
.detail__closing { margin-top: 1.5rem; font-style: italic; color: var(--text-muted); max-width: 64ch; }

.inside { margin-top: 2.6rem; }
.inside__title { font-family: var(--f-ui); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.inside ul { display: flex; flex-direction: column; gap: .8rem; max-width: 66ch; }
.inside li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: start; line-height: 1.6; }
.inside li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: .62rem;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}

/* Buy box */
.buybox { border: 1px solid var(--rule); background: var(--ivory-bright); box-shadow: var(--sh-card); }
.buybox__head { font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule-soft); }
.edition { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem; border-bottom: 1px solid var(--rule-soft); }
.edition:last-child { border-bottom: 0; }
.edition__row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.edition__name { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); }
.edition__price { font-family: var(--f-ui); font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.edition__spec { font-family: var(--f-ui); font-size: 11px; letter-spacing: .06em; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.specs { margin-top: 2.8rem; border-top: 1px solid var(--rule); }
.specs dl { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; margin: 0; }
.specs dt, .specs dd { padding: .72rem 0; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.specs dt { font-family: var(--f-ui); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.specs dd { font-size: .95rem; font-variant-numeric: tabular-nums; }

/* Companion cross-sell */
.companion {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.3rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--sand);
  border: 1px solid var(--rule-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.companion:hover { transform: translateY(-2px); box-shadow: var(--sh-card); }
.companion > div:first-child { container-type: inline-size; }
.companion .figure { aspect-ratio: auto; }
.companion .cover { width: 100%; }

/* ---------- Author cards ---------- */
.authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.authorcard {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--rule-on-ink);
  text-decoration: none;
  color: var(--text-on-ink);
  transition: border-color .25s, background .25s, transform .25s;
}
.authorcard:hover { border-color: var(--brass-lit); background: rgba(255,255,255,.035); transform: translateY(-3px); }
.authorcard__name { font-family: var(--f-display); font-size: 1.5rem; color: var(--ivory-bright); line-height: 1.2; }
.authorcard__role { font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lit); }
.authorcard__line { font-size: .93rem; color: var(--text-on-ink-muted); line-height: 1.55; }
.authorcard__count { margin-top: .4rem; font-family: var(--f-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-ink-muted); }

.authorhead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.authorhead__bio { display: flex; flex-direction: column; gap: 1.1rem; max-width: 62ch; line-height: 1.75; }
.authorhead__bio p { color: var(--text-on-ink-muted); }
.authorhead__bio p:first-child { color: var(--text-on-ink); font-size: 1.06rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink-deep); color: var(--text-on-ink-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 4px solid var(--brass); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); }
.foot__blurb { font-size: .95rem; line-height: 1.7; max-width: 42ch; margin-top: 1.2rem; }
.foot h4 { font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lit); margin-bottom: 1rem; }
.foot ul { display: flex; flex-direction: column; gap: .6rem; }
.foot a { color: var(--text-on-ink); text-decoration: none; font-size: .93rem; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--brass-lit); border-bottom-color: var(--brass-lit); }
.foot__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-on-ink);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: .8rem;
  line-height: 1.6;
}
.foot__base p { max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; max-width: 420px; }
  .authorhead { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead__inner { min-height: 0; }
  .nav { margin-left: 0; width: 100%; gap: .9rem 1.1rem; padding-bottom: .3rem; }
  .nav a { font-size: 11.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem; }
  .series__row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.1rem; }
  .specs dl { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 0; border-bottom: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .companion { grid-template-columns: 76px 1fr; gap: 1rem; }
}
