/* Home page sections (index.html, generated by home-page.mjs). Tokens, chrome and the FAQ live in style.css;
   product cards, the trust strip, collections and starting points live in storefront.css.
   Breakpoints: mobile below 768, tablet 768 to 1023, desktop from 1024. */

/* Hero: headline, one sentence and the two prices. Phones get no photo and no buttons, so the first row of
   products starts inside the first screen. From 768 the set photo and the button row join. */
.hero {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 padding: var(--space-5) var(--gutter) var(--space-6);
}
.hero h1 {
 margin: 0 0 var(--space-4);
 padding-bottom: .06em;
 font-size: clamp(34px, 5.4vw, 72px);
 line-height: 1.06;
 letter-spacing: -.024em;
}
.hero h1 em {
 display: block;
 position: relative;
 width: fit-content;
}
.hero-sub {
 max-width: 36ch;
 margin: 0 0 var(--space-2);
 text-wrap: balance;
 font-size: var(--text-m);
 line-height: 1.5;
 color: var(--ink-soft);
}
.hero-price {
 margin: 0;
 font: 400 var(--text-l)/1.4 var(--serif);
 font-variant-numeric: lining-nums;
 color: var(--ink);
}
.hero-actions,
.hero-art {
 display: none;
}

/* The authored moment: an ink redaction bar lifts off the italic line on first load.
   Default state shows no bar: the resting clip hides the overlay, and only the keyframes'
   'from' frame (held through the delay by fill-mode backwards) covers the words.
   The em shrinks to its text, so the sweep maps onto the words; the overlay repeats the same text
   (aria-hidden, data-text written by home-page.mjs), so its per-line bars wrap exactly like the words.
   The side shadows and negative insets cover the italic overhang (the M swash, the r terminal)
   without changing where the overlay wraps. */
.redaction {
 display: none;
}
@media (prefers-reduced-motion: no-preference) {
 @supports (clip-path: inset(0 0 0 100%)) {
  .redaction {
   display: block;
   position: absolute;
   inset: 0;
   color: transparent;
   pointer-events: none;
   -webkit-user-select: none;
   user-select: none;
   clip-path: inset(-.1em -.2em -.1em calc(100% + .2em));
   animation: redaction-lift 650ms var(--ease-out) 350ms backwards;
  }
  .redaction::before {
   content: attr(data-text);
   background: var(--ink);
   box-shadow: -.08em 0 0 var(--ink), .14em 0 0 var(--ink);
   -webkit-box-decoration-break: clone;
   box-decoration-break: clone;
  }
 }
}
@keyframes redaction-lift {
 from {
  clip-path: inset(-.1em -.2em -.1em -.1em);
 }
 to {
  clip-path: inset(-.1em -.2em -.1em calc(100% + .2em));
 }
}

/* The five books: heading row with the format comparison link, then the shared product grid. */
.books {
 padding: var(--space-2) var(--gutter) var(--space-7);
}
.books-head {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 justify-content: space-between;
 gap: 0 var(--space-4);
 margin-bottom: var(--space-3);
}
.books-head h2 {
 margin: 0;
}
.books-head .text-link {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 padding-block: 0;
}
/* Phones: the listing heading steps below the 34px hero H1 and keeps "Compare formats" on its row down to 320px. */
@media (max-width: 767px) {
 .books-head h2 {
  font-size: var(--display-3);
  line-height: 1.1;
 }
}

/* The record: the page's one ink band, run to the window edges, one compact docket row per title. */
.record {
 --on-ink: var(--paper);
 --on-ink-soft: #dcd8cd;
 --on-ink-muted: #aeaba1;
 --on-ink-rule: rgba(244, 241, 233, .18);
 padding: var(--space-8) var(--gutter);
 background: var(--ink);
 color: var(--on-ink);
 box-shadow: 0 0 0 100vmax var(--ink);
 clip-path: inset(0 -100vmax);
}
.record-head {
 margin-bottom: var(--space-6);
}
.record h2 {
 margin: 0 0 var(--space-2);
 color: var(--on-ink);
}
.record-intro {
 max-width: 46ch;
 margin: 0;
 font-size: var(--text-m);
 color: var(--on-ink-muted);
}
.record-list {
 margin: 0;
 padding: 0;
 list-style: none;
 border-bottom: 1px solid var(--on-ink-rule);
}
/* Phones: year and kind on one line, title and author on the next, then the record line and its link. */
.record-entry {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 grid-template-areas: "date" "book" "text" "link";
 padding: var(--space-4) 0 var(--space-2);
 border-top: 1px solid var(--on-ink-rule);
}
.record-date {
 grid-area: date;
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 0 var(--space-3);
}
.record-year {
 margin: 0;
 font: 400 28px/1.1 var(--label);
 letter-spacing: .01em;
 font-variant-numeric: lining-nums tabular-nums;
 color: var(--on-ink);
}
.record .record-kind {
 margin: 0;
 color: var(--on-ink);
}
.record-book {
 grid-area: book;
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 0 var(--space-3);
 margin-top: var(--space-1);
}
.record-title {
 margin: 0;
 font: 400 var(--text-xl)/1.25 var(--serif);
 color: var(--on-ink);
}
.record-author {
 margin: 0;
 font-size: var(--text-s);
 line-height: 1.4;
 color: var(--on-ink-muted);
}
.record-text {
 grid-area: text;
 max-width: 60ch;
 margin: var(--space-2) 0 0;
 font-size: 15px;
 line-height: 1.5;
 color: var(--on-ink-soft);
}
.record-link {
 grid-area: link;
 justify-self: start;
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 font-size: var(--text-s);
 font-weight: 600;
 white-space: nowrap;
 color: var(--on-ink);
 text-decoration: underline;
 text-decoration-color: var(--on-ink-muted);
 text-underline-offset: .32em;
}
.record a:hover {
 color: var(--on-ink);
 text-decoration-color: currentColor;
}
.record :focus-visible {
 outline-color: var(--paper);
}

/* Questions: the shared FAQ (style.css), closed by one route to the full list in Help.
   Once an edition opens, site.js hides "Can I order now?"; the next item takes over the list's top rule. */
.questions details[hidden] + details {
 border-top: 1px solid var(--rule);
}
.questions-more {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 margin-top: var(--space-4);
}

/* Tablet: photo beside the copy, both halves; the button row joins the hero. */
@media (min-width: 768px) {
 .hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--space-6);
  padding: var(--space-6) var(--gutter) var(--space-7);
 }
 /* The italic line breaks after "your" beside the photo; the em hugs that line so the redaction sweep maps onto it. */
 .hero h1 em {
  max-width: 6.2em;
 }
 .hero-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
 }
 .hero-art {
  display: block;
  min-width: 0;
  margin: 0;
 }
 .hero-art picture {
  display: block;
 }
 .hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-deep);
 }
 .hero-art figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
 }
 .record-entry {
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  grid-template-areas: "date book link" "date text text";
  column-gap: var(--space-5);
  padding: var(--space-5) 0;
 }
 .record-date {
  flex-direction: column;
  gap: var(--space-1);
 }
 .record-year {
  font-size: 40px;
  line-height: .95;
 }
 .record-book {
  margin-top: 0;
 }
 .record-link {
  justify-self: end;
 }
}

/* Desktop: copy and photo share the width. At clamp(44px, 4.2vw, 60px) "Make up your own mind." needs 9.4 to
   9.7em, which a 5/12 column never gives it (measured 1024 to 1920), so the halves stay equal from 768 up and
   the italic line holds one line. The photo is cropped to 2:1 (all five books stay in frame), which brings the
   product row's top to about 590 at 1440x900. */
@media (min-width: 1024px) {
 .hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-7);
  padding: var(--space-6) var(--gutter);
 }
 .hero h1 {
  font-size: clamp(44px, 4.2vw, 60px);
 }
 .hero h1 em {
  max-width: none;
 }
 .hero-sub {
  margin-bottom: var(--space-3);
  font-size: var(--text-l);
 }
 .hero-art img {
  aspect-ratio: 2 / 1;
  object-position: 50% 30%;
 }
 .books {
  padding-bottom: var(--space-8);
 }
 .record-entry {
  grid-template-columns: 10rem minmax(0, .8fr) minmax(0, 1.4fr) auto;
  grid-template-areas: "date book text link";
  align-items: baseline;
 }
 .record-book {
  flex-direction: column;
  gap: var(--space-1);
 }
 .record-title {
  font-size: var(--display-4);
 }
 .record-text {
  margin: 0;
  font-size: var(--text-m);
 }
}

/* Tablet: the two hero buttons stack at the copy column's width. From 1024 they sit side by side;
   up to 1279 a tighter inner padding fits both in the 5/12 column, and flex-wrap stacks them again
   if a fallback font runs wider. */
@media (min-width: 1024px) {
 .hero-actions {
  display: flex;
  flex-wrap: wrap;
 }
}
@media (min-width: 1024px) and (max-width: 1279px) {
 .hero-actions .button {
  gap: var(--space-3);
  padding-inline: var(--space-4);
 }
}
