:root {
  --navy-950: #071321;
  --navy-900: #091a2f;
  --navy-800: #102744;
  --ivory: #f4eddf;
  --ivory-deep: #e6dbc8;
  --paper: #fbf7ee;
  --ink: #172033;
  --muted: #535965;
  --brass: #b88a3e;
  --brass-light: #d4af69;
  --burgundy: #732f3d;
  --rule: #cbbda5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 4px; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-180%); background: var(--paper); color: var(--navy-900); padding: .7rem 1rem; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: min(100% - 2rem, 76rem); margin-inline: auto; padding-block: 1.15rem; color: var(--ivory); }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark__stars { margin-bottom: .35rem; color: var(--brass-light); font-size: .52rem; letter-spacing: .52em; }
.wordmark__name { font-family: var(--font-display); font-size: clamp(.78rem, 2.7vw, 1.05rem); letter-spacing: .1em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .5rem; color: var(--ivory); font-family: var(--font-data); font-size: .68rem; letter-spacing: .04em; text-decoration: none; text-transform: none; }
.site-nav a:hover { color: var(--brass-light); }

.collection-lead { padding: 7.5rem 1rem 3.5rem; background: var(--navy-950); color: var(--ivory); }
.collection-lead .section-number { color: var(--brass-light); }
.collection-lead .section-heading > p { color: #d5d8dc; }
.collection-lead .bookshelf { margin-top: 2.5rem; }
.collection-lead .bookshelf strong { color: var(--ivory); }
.collection-lead .bookshelf span { color: var(--brass-light); }

.hero { position: relative; overflow: hidden; padding: 4.5rem 1rem 4rem; background: var(--navy-900); color: var(--ivory); }
.hero::before { content: ""; position: absolute; inset: 4.8rem 1rem 1rem; border: 1px solid rgba(184, 138, 62, .5); pointer-events: none; }
.hero::after { content: "4471"; position: absolute; right: -.04em; bottom: -.28em; color: rgba(244, 237, 223, .025); font-family: var(--font-data); font-size: min(38vw, 34rem); line-height: 1; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; width: min(100%, 74rem); margin-inline: auto; display: grid; gap: 3rem; }
.hero__content { align-self: center; }
.eyebrow, .section-number { display: block; margin: 0 0 1rem; color: var(--brass); font-family: var(--font-data); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.case-journey .section-number, .difficulty .section-number, .books-section .section-number, .social-callout .section-number { color: var(--burgundy); }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
h1 { max-width: 10.8ch; margin: 0; font-family: var(--font-display); font-size: clamp(2.8rem, 11vw, 6.6rem); line-height: 1; letter-spacing: -.035em; }
.hero__copy { max-width: 39rem; margin: 1.45rem 0 0; color: #d5d8dc; font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brass); padding: .75rem 1rem; font-family: var(--font-data); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button--primary { background: var(--brass); color: var(--navy-950); }
.button--secondary { color: var(--ivory); }
.button:hover { transform: translateY(-2px); }
.button--primary:hover { background: var(--brass-light); }
.button--secondary:hover { border-color: var(--ivory); background: var(--ivory); color: var(--navy-900); }

.evidence-stack { position: relative; min-height: 29rem; width: min(100%, 33rem); margin-inline: auto; }
.evidence-stack img { position: absolute; border: 1px solid rgba(244, 237, 223, .24); box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, .45); }
.evidence-stack__page { width: 52%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.evidence-stack__page--story { left: 0; top: 14%; transform: rotate(-3deg); }
.evidence-stack__page--clues { right: 0; top: 5%; transform: rotate(3deg); }
.evidence-stack__cover { z-index: 2; width: 42%; left: 29%; top: 18%; aspect-ratio: 2 / 3; object-fit: contain; }

.section__inner { width: min(100%, 72rem); margin-inline: auto; }
.section-heading { max-width: 52rem; }
.section-heading > p, .section-heading--split > p { max-width: 38rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.05rem; }
h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.15rem, 6.5vw, 4.5rem); line-height: 1.08; letter-spacing: -.025em; }
h3 { margin: 0; font-family: var(--font-display); }

/* The daily case, on the second screen. Deliberately quieter than the hero:
   it is the reason to come back, not the reason to buy. */
.daily-promo { padding: clamp(3rem, 6vw, 4.5rem) 1rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
.daily-promo__inner { display: grid; gap: 2rem; align-items: center; }
.daily-promo h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.daily-promo p { max-width: 40rem; margin: .9rem 0 0; color: var(--muted); }
.daily-promo__meta { margin-top: 1.25rem; color: var(--ink); font-family: var(--font-data); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.daily-promo__meta strong { font-weight: 500; }
.daily-promo__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.daily-promo .button--primary { border-color: var(--burgundy); background: var(--burgundy); color: var(--ivory); }
.daily-promo .button--primary:hover { background: var(--navy-900); border-color: var(--navy-900); }
.button--quiet { border-color: var(--rule); color: var(--ink); }
.button--quiet:hover { background: var(--ivory-deep); }

/* The illustration. Hand-drawn, identical every day, and no part of any real
   case: it shows the ONE rule the grid runs on — a confirmed pairing rules
   out the rest of its own row and column. */
.daily-promo__visual { width: min(100%, 20rem); height: auto; margin-inline: auto; }
.daily-promo__visual .v-rule, .daily-promo__visual .v-edge { fill: none; }
.daily-promo__visual .v-rule { stroke: var(--rule); stroke-width: 1; }
.daily-promo__visual .v-edge { stroke: var(--brass); stroke-width: 2; }
.daily-promo__visual .v-label { font-family: var(--font-data); font-size: 9px; letter-spacing: .08em; fill: var(--muted); }
.daily-promo__visual .v-dot { fill: var(--burgundy); }
.daily-promo__visual .v-cross { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.case-journey { padding: clamp(4.75rem, 9vw, 8rem) 1rem; background: var(--ivory); }
.journey-steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.journey-steps li { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 20rem; min-height: 19rem; border-top: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.journey-step__copy { align-self: center; padding: clamp(1.25rem, 4vw, 2.2rem); }
.journey-step__copy > span, .difficulty__copy > span { display: block; margin-bottom: 1.2rem; color: var(--burgundy); font-family: var(--font-data); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.journey-step__copy h3 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
.journey-step__copy p { margin: .7rem 0 0; color: var(--muted); }
.journey-steps img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-top: 1px solid var(--rule); }

.proof-section { padding: clamp(4.5rem, 9vw, 7.5rem) 1rem; background: var(--burgundy); color: var(--ivory); }
.proof-section__inner { display: grid; gap: 3rem; }
.proof-section__statement { align-self: center; max-width: 15ch; margin: 0; color: #f2d9d5; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4.1rem); line-height: 1.16; }
.proof-section__copy .section-number { color: var(--brass-light); }
.proof-section__copy h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.proof-section__copy > p { color: #eadcda; }
.proof-section__copy ul { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(244, 237, 223, .35); }
.proof-section__copy li { padding: .68rem 0; border-bottom: 1px solid rgba(244, 237, 223, .25); font-family: var(--font-data); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }

.difficulty { padding: clamp(4.75rem, 9vw, 8rem) 1rem; background: var(--paper); }
.difficulty-list { margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.difficulty-list article { display: grid; gap: 1.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.difficulty__image { overflow: hidden; background: white; box-shadow: 0 .65rem 1.6rem rgba(23, 32, 51, .11); }
.difficulty__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.difficulty__copy { align-self: center; }
.difficulty__copy > span { margin-bottom: .55rem; }
.difficulty__copy h3 { font-size: clamp(1.9rem, 5vw, 3rem); }
.difficulty__copy p { max-width: 34rem; margin: .7rem 0 0; color: var(--muted); }

.margo { padding: clamp(4.75rem, 9vw, 8rem) 1rem; background: var(--navy-800); color: var(--ivory); }
.margo__inner { display: grid; gap: 3rem; align-items: center; }
.margo__file { min-height: 23rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--brass); padding: 1.5rem; background: linear-gradient(135deg, transparent 49.8%, rgba(184, 138, 62, .2) 50%, transparent 50.2%); color: var(--brass-light); font-family: var(--font-data); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.margo__file strong { align-self: center; color: var(--ivory); font-family: var(--font-display); font-size: clamp(2.8rem, 12vw, 5rem); font-weight: 400; letter-spacing: .08em; }
.margo__copy .section-number { color: var(--brass-light); }
.margo__copy p { max-width: 41rem; color: #d5d8dc; font-size: 1.08rem; }

.books-section { padding: clamp(4.75rem, 9vw, 8rem) 1rem; background: var(--ivory-deep); }
.bookshelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; align-items: end; margin-top: 3.5rem; }
.bookshelf figure { margin: 0; }
.bookshelf__cover-link { display: block; }
.bookshelf img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; box-shadow: 0 1rem 2rem rgba(23, 32, 51, .2); }
.bookshelf figcaption { margin-top: .8rem; }
.bookshelf strong { display: block; font-family: var(--font-display); font-size: clamp(.9rem, 3vw, 1.15rem); font-weight: 400; line-height: 1.3; }
.bookshelf span { display: block; margin-top: .2rem; color: var(--burgundy); font-family: var(--font-data); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }

.editions { padding: clamp(4.5rem, 9vw, 7rem) 1rem; background: var(--navy-900); color: var(--ivory); }
.editions__inner { display: grid; gap: 2.5rem; }
.editions__intro > p { max-width: 42rem; color: #d5d8dc; }
.edition-links { display: grid; gap: .85rem; }
.edition-links > a { min-height: 10.5rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(184, 138, 62, .7); padding: 1.4rem; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.edition-links > a:hover { background: var(--navy-800); transform: translateY(-2px); }
.edition-links span { color: var(--brass-light); font-family: var(--font-data); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.edition-links strong { margin-top: .4rem; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.edition-links small { margin-top: 1rem; color: #d5d8dc; font-family: var(--font-data); font-size: .63rem; letter-spacing: .04em; text-transform: uppercase; }

.social-callout { padding: 4rem 1rem; background: var(--ivory); }
.social-callout__inner { width: min(100%, 72rem); margin-inline: auto; display: grid; gap: 1.5rem; align-items: center; }
.social-callout h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.social-callout p { max-width: 38rem; margin: .5rem 0 0; color: var(--muted); }

.site-footer { padding: 2rem 1rem; background: var(--navy-950); color: #b9bec7; font-family: var(--font-data); font-size: .64rem; letter-spacing: .04em; }
.site-footer__inner { width: min(100%, 72rem); margin-inline: auto; display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a, .site-footer button { color: inherit; }
.site-footer button { border: 0; background: none; padding: .5rem 0; font: inherit; text-decoration: underline; cursor: pointer; }

.consent { position: fixed; inset: auto 1rem 1rem; z-index: 20; border: 1px solid var(--brass); background: var(--paper); color: var(--ink); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28); padding: 1rem; }
.consent[hidden] { display: none; }
.consent__inner { max-width: 55rem; margin-inline: auto; display: grid; gap: 1rem; }
.consent p { margin: 0; font-size: .88rem; }
.consent__actions { display: flex; gap: .65rem; }
.consent button { min-height: 44px; flex: 1; border: 1px solid var(--navy-900); background: transparent; color: var(--navy-900); padding: .6rem .9rem; font-family: var(--font-data); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.consent button:first-child { background: var(--navy-900); color: var(--ivory); }

@media (min-width: 40rem) {
  .bookshelf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem; }
  .journey-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-steps li { grid-template-columns: 1fr; grid-template-rows: auto 17rem; }

  .difficulty-list article { grid-template-columns: minmax(12rem, .65fr) 1fr; gap: clamp(2rem, 6vw, 5rem); }
  .difficulty-list article:nth-child(even) .difficulty__image { order: 2; }
  .difficulty-list article:nth-child(even) .difficulty__copy { order: 1; }
  .edition-links { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48rem) {
  .site-header { padding-block: 1.4rem; }
  .site-nav { gap: 1rem; }
  .hero { min-height: 49rem; padding: 10rem 2rem 6rem; }
  .hero::before { inset: 5.4rem 2rem 2rem; }
  .section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, .72fr); align-items: end; gap: 4rem; }
  .section-heading--split > p { margin: 0; }
  .proof-section__inner { grid-template-columns: 1fr .82fr; gap: 5rem; }
  .margo__inner { grid-template-columns: minmax(20rem, .68fr) 1fr; gap: 5rem; }
  .editions__inner { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: end; }
  .daily-promo__inner { grid-template-columns: minmax(0, 1fr) minmax(14rem, .55fr); gap: 4rem; }
  .social-callout__inner { grid-template-columns: 1fr auto; }
  .consent__inner { grid-template-columns: 1fr auto; align-items: center; }
  .consent__actions button { flex: none; }
}

/* The hero goes two-column only when there is room for both columns.
   The artwork needs 26rem to hold its shape, which at 768px left the text
   column 272px wide — NARROWER than the same text gets on a phone — so the
   headline wrapped to nine lines, the hero grew to 1167px, and the primary
   Amazon button was pushed under the fixed consent notice on a tablet.
   Measured, not guessed: at 1024 the text column is 522px and the hero is
   1006px, which is the width where the split starts paying for itself. */
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(26rem, .85fr); align-items: center; gap: 1rem; }
  .evidence-stack { min-height: 35rem; }
  /* Keep the primary hero action clear of the fixed consent notice at wide, short viewports. */
  body.consent-pending .hero__content { transform: translateY(-2rem); }
}

@media (max-width: 25rem) {
  /* Four links do not fit 320px. The two that survive are the reason to come
     back (the daily) and the reason to buy (the books); the anchor link and
     the social link are both reachable by scrolling the page they point at. */
  .site-nav a:nth-child(2), .site-nav a:nth-child(4) { display: none; }
  .site-nav { gap: 0; }
  .evidence-stack { min-height: 24rem; }
  .hero { padding-top: 5.5rem; }
  .eyebrow { margin-bottom: .6rem; }
  h1 { font-size: 2.35rem; }
  .hero__copy { margin-top: 1rem; }
}

@media (max-width: 46rem) and (max-height: 45rem) {
  body.consent-pending { padding-bottom: 8rem; }
  body.consent-pending .hero__content { transform: translateY(-4rem); }
  .hero__copy { font-size: .95rem; line-height: 1.45; }
  .hero__actions { margin-top: 1rem; }
  .consent { inset: auto .5rem .5rem; padding: .5rem; }
  .consent__inner { gap: .5rem; }
  .consent p { font-size: .75rem; line-height: 1.45; }
}

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