/* ============================================================
   Shared chrome + interior (paper) pages
   ============================================================ */

/* ---------- masthead ---------- */
.masthead{
  position:sticky;top:0;z-index:var(--z-nav);
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule-soft);
}
.masthead--onstage{
  background:color-mix(in srgb, var(--stage) 82%, transparent);
  border-bottom-color:var(--stage-line);
  color:var(--on-stage);
}
/* the chrome follows the story out of the screen and onto paper */
body:has([data-beat="silence"]) .masthead--onstage,
body:has([data-beat="bridge"])  .masthead--onstage{
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color:var(--rule-soft);
  color:var(--ink);
}
body:has([data-beat="silence"]) .masthead--onstage .masthead__by,
body:has([data-beat="bridge"])  .masthead--onstage .masthead__by{ color:var(--muted) }
.masthead--onstage,
.masthead--onstage .masthead__by{ transition:background-color .9s var(--ease-io), color .9s var(--ease-io), border-color .9s var(--ease-io) }

.masthead__in{
  display:flex;align-items:center;gap:var(--s-5);
  min-height:60px;   /* --masthead-h is this + the 1px bottom rule */
}
.masthead__mark{
  display:flex;flex-direction:column;gap:.1rem;
  text-decoration:none;color:inherit;margin-right:auto;
  padding-block:.35rem;
}
.masthead__title{
  font-family:var(--sans);font-weight:700;font-size:.9rem;
  letter-spacing:.03em;line-height:1.1;
}
.masthead__by{
  font-family:var(--mono);font-size:.625rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);
}
.masthead--onstage .masthead__by{color:var(--on-stage-dim)}

.masthead__nav{display:flex;align-items:center;gap:clamp(.75rem,2vw,1.75rem)}
.masthead__link{
  font-family:var(--sans);font-weight:500;font-size:.875rem;
  text-decoration:none;color:inherit;opacity:.72;
  padding:.7rem .1rem;transition:opacity .2s var(--ease-out);
}
.masthead__link:hover,.masthead__link[aria-current="page"]{opacity:1}
.masthead__link[aria-current="page"]{box-shadow:inset 0 -1px 0 0 var(--accent)}
.masthead__cta{
  font-family:var(--sans);font-weight:600;font-size:.8125rem;letter-spacing:.02em;
  text-decoration:none;white-space:nowrap;
  display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1rem;
  background:var(--accent-solid);color:#fff;border-radius:2px;
  transition:background-color .2s var(--ease-out);
}
.masthead__cta:hover{background:var(--accent-deep)}
/* the chrome follows the story out of the screen and onto paper */
.masthead--onstage,
.masthead--onstage .masthead__by{
  transition:background-color .9s var(--ease-io), color .9s var(--ease-io), border-color .9s var(--ease-io);
}
body:has([data-beat="silence"]) .masthead--onstage,
body:has([data-beat="bridge"])  .masthead--onstage{
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color:var(--rule-soft);
  color:var(--ink);
}
body:has([data-beat="silence"]) .masthead--onstage .masthead__by,
body:has([data-beat="bridge"])  .masthead--onstage .masthead__by{ color:var(--muted) }
body:has([data-beat="silence"]) .masthead--onstage .masthead__nav,
body:has([data-beat="bridge"])  .masthead--onstage .masthead__nav{ border-top-color:var(--rule-soft) }

/* Small screens get a second masthead row. Every route stays one tap away —
   no menu button, no drawer, nothing hidden behind a gesture.
   Height is held to two exact 44px rows so --masthead-h stays truthful. */
@media (max-width:47.99rem){
  .masthead__in{
    flex-wrap:wrap; align-items:center; gap:0 var(--s-3);
    padding-block:0; min-height:0;
  }
  .masthead__mark{
    margin-right:auto; padding-block:0;
    min-height:44px; justify-content:center; gap:0;
  }
  .masthead__title{ font-size:.8125rem; line-height:1.15 }
  .masthead__by{ font-size:.5rem; letter-spacing:.14em; line-height:1.3 }
  .masthead__nav{
    order:3; width:100%; gap:0;
    justify-content:flex-start;
    border-top:1px solid var(--stage-line);
    margin-top:0;
  }
  .masthead:not(.masthead--onstage) .masthead__nav{border-top-color:var(--rule-soft)}
  .masthead__link{
    font-family:var(--mono); font-size:.625rem; font-weight:500;
    letter-spacing:.12em; text-transform:uppercase;
    padding:0 .7rem; opacity:.85; white-space:nowrap;
    min-height:44px; display:inline-flex; align-items:center;
  }
  .masthead__link:first-child{ padding-left:0 }
  .masthead__cta{
    order:2; font-size:.6875rem; padding:0 .85rem;
    min-height:44px; align-self:center;
  }
}
@media (max-width:23.5rem){
  .masthead__nav{ justify-content:space-between }
  .masthead__title{font-size:.75rem}
  .masthead__by{font-size:.4375rem;letter-spacing:.1em}
  .masthead__link{font-size:.5625rem;letter-spacing:.04em;padding-inline:.35rem}
  .masthead__cta{font-size:.625rem;padding-inline:.6rem}
}

/* ---------- page head ---------- */
.pagehead{padding-block:clamp(3rem,10vh,7rem) clamp(2rem,5vh,4rem)}
.pagehead__kicker{color:var(--muted);margin-bottom:var(--s-5)}
.pagehead__title{
  font-family:var(--sans);font-weight:800;font-stretch:104%;
  font-size:var(--t-xl);line-height:.96;letter-spacing:-.03em;
  max-width:18ch;
}
.pagehead__lede{
  font-size:var(--t-md);line-height:1.45;color:var(--graphite);
  max-width:38rem;margin-top:var(--s-5);text-wrap:pretty;
}
.pagehead__rule{height:1px;background:var(--rule);margin-top:clamp(2rem,5vh,3.5rem)}

/* ---------- breadcrumb ---------- */
.crumbs{padding-top:var(--s-5)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;list-style:none;padding:0}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs li+li::before{content:"/";margin-right:.5rem;color:var(--faint)}
.crumbs [aria-current="page"]{color:var(--graphite)}

/* ============================================================
   ADVANCE PRAISE — editorial spreads, not a testimonial grid
   ============================================================ */
.praise{border-top:1px solid var(--rule)}

.endorsement{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(1.5rem,4vw,3rem);
  padding-block:clamp(3rem,9vh,7rem);
  border-bottom:1px solid var(--rule-soft);
}
@media (min-width:56rem){
  .endorsement{
    grid-template-columns:minmax(0,7fr) minmax(0,5fr);
    align-items:start;
  }
  /* alternate the spread without ever squeezing the pull quote */
  .endorsement:nth-of-type(even){ grid-template-columns:minmax(0,5fr) minmax(0,7fr) }
  .endorsement:nth-of-type(even) .endorsement__pull{ grid-column:2; grid-row:1 }
  .endorsement:nth-of-type(even) .endorsement__body{ grid-column:1; grid-row:1 }
}

/* the big extracted phrase — the reason to stop scrolling */
.endorsement__pull{
  font-family:var(--sans);font-weight:800;font-stretch:103%;
  font-size:clamp(1.9rem,1rem + 4vw,4rem);
  line-height:.95;letter-spacing:-.032em;
  text-wrap:balance;
  position:sticky;top:calc(60px + 2rem);
}
@media (max-width:55.99rem){.endorsement__pull{position:static}}
.endorsement__pull em{font-style:normal;color:var(--accent-deep)}

.endorsement__body{padding-top:.4rem}
.endorsement__quote{
  font-family:var(--serif);font-size:var(--t-body);
  line-height:1.68;color:var(--graphite);
  max-width:36rem;text-wrap:pretty;
}
.endorsement__quote p+p{margin-top:1em}

.endorsement__who{margin-top:var(--s-5);padding-top:var(--s-4);border-top:1px solid var(--rule);display:flex;gap:1.25rem;align-items:center}
.endorsement__who .face{--face:clamp(4.5rem, 3rem + 3vw, 6rem)}
.endorsement__name{
  font-family:var(--sans);font-weight:700;font-size:1.0625rem;
  letter-spacing:-.005em;line-height:1.25;
}
.endorsement__role{
  font-family:var(--mono);font-size:.6875rem;line-height:1.6;
  letter-spacing:.09em;text-transform:uppercase;color:var(--muted);
  margin-top:.45rem;max-width:34rem;
}

/* ---------- closing rail ---------- */
.closer{
  padding-block:clamp(4rem,12vh,9rem);
  text-align:center;
}
.closer__line{
  font-family:var(--serif);font-size:var(--t-lg);line-height:1.25;
  letter-spacing:-.015em;max-width:22ch;margin-inline:auto;text-wrap:balance;
}
.closer__actions{
  display:flex;flex-wrap:wrap;gap:var(--s-4);justify-content:center;
  margin-top:var(--s-7);
}

/* ---------- footer ---------- */
.foot{
  border-top:1px solid var(--rule);
  padding-block:var(--s-7) var(--s-6);
  font-size:var(--t-sm);
}
.foot__grid{
  display:flex;flex-wrap:wrap;gap:var(--s-6);
  align-items:flex-start;justify-content:space-between;
}
.foot__brand{font-family:var(--sans);font-weight:700;font-size:1rem;letter-spacing:-.01em}
.foot__meta{font-family:var(--mono);font-size:.6875rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);margin-top:.5rem;line-height:1.8}
.foot__nav{display:flex;flex-wrap:wrap;gap:var(--s-5)}
.foot__nav a{color:var(--graphite);text-decoration:none;font-family:var(--sans);font-size:.875rem;display:inline-flex;align-items:center;min-height:44px}
.foot__nav a:hover{color:var(--ink);text-decoration:underline}
.foot__fine{
  margin-top:var(--s-7);padding-top:var(--s-4);border-top:1px solid var(--rule-soft);
  font-family:var(--mono);font-size:.625rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--faint);
}

/* ============================================================
   /book
   ============================================================ */
.bookpage{
  display:grid; gap:clamp(2.5rem,6vw,5rem);
  padding-block:clamp(2rem,6vh,4rem) clamp(3rem,9vh,6rem);
}
@media (min-width:56rem){
  .bookpage{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:start }
  .bookpage__art{ position:sticky; top:calc(var(--masthead-h) + 2.5rem) }
}
.bookpage__art{ justify-self:center; width:min(100%,24rem) }
.bookpage__caption{
  margin-top:var(--s-5); color:var(--muted); line-height:1.9;
  letter-spacing:.1em; text-align:center;
}
.bookpage__text{ max-width:40rem }
.bookpage__text p{ color:var(--graphite); line-height:1.7; margin-bottom:1em; text-wrap:pretty }
.bookpage__h{
  font-family:var(--sans); font-weight:800; font-stretch:102%;
  font-size:clamp(1.15rem,.95rem + .9vw,1.6rem); letter-spacing:-.02em;
  margin-top:clamp(2rem,5vh,3rem); margin-bottom:var(--s-4);
  padding-top:var(--s-4); border-top:1px solid var(--rule);
}
.bookpage__text > .bookpage__h:first-child{ margin-top:0; border-top:0; padding-top:0 }
.bookpage__list{ list-style:none; padding:0; display:grid; gap:.6rem }
.bookpage__list li{
  position:relative; padding-left:1.4rem; color:var(--graphite); line-height:1.55;
}
.bookpage__list li::before{
  content:""; position:absolute; left:0; top:.68em; width:.7rem; height:1px; background:var(--accent);
}

.specs{ margin-top:clamp(2rem,5vh,3rem); border-top:1px solid var(--rule); padding-top:var(--s-5) }
.specs__list{ display:grid; gap:.65rem }
.specs__list > div{ display:grid; grid-template-columns:8.5rem minmax(0,1fr); gap:1rem; align-items:baseline }
.specs__list dt{ color:var(--muted) }
.specs__list dd{ margin:0; font-family:var(--sans); font-size:.9375rem; color:var(--ink) }
@media (max-width:29.99rem){ .specs__list > div{ grid-template-columns:minmax(0,1fr); gap:.15rem } }

/* the questions people search for, answered in plain words */
.faq{ border-top:1px solid var(--rule); padding-block:clamp(2.5rem,7vh,5rem) }
.faq__h{ margin-bottom:var(--s-5) }
.faq__list{ display:grid; gap:0; max-width:44rem }
.faq__item{ padding-block:var(--s-5); border-top:1px solid var(--rule-soft) }
.faq__item:first-child{ border-top:0; padding-top:0 }
.faq__q{ font-family:var(--sans); font-weight:700; font-size:var(--t-md); letter-spacing:-.015em; line-height:1.25; text-wrap:balance }
.faq__a{ margin:.7rem 0 0; font-family:var(--serif); font-size:var(--t-body); line-height:1.65; color:var(--graphite); text-wrap:pretty }
.faq__a p + p{ margin-top:.65em }
.faq__a strong{ font-weight:500; color:var(--ink) }
.faq__q em, .faq__a em{ font-style:italic }
.faq__a .link{ display:inline-block; padding-block:.6rem; margin-block:-.6rem }   /* a 44px tap target without changing the line */

.preorder{
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
  padding-block:clamp(3rem,9vh,6rem);
  text-align:center; scroll-margin-top:calc(var(--masthead-h) + 1rem);
}
.preorder .eyebrow{ justify-content:center }
.preorder .eyebrow::after{ display:none }
.preorder__line{
  font-family:var(--sans); font-weight:800; font-stretch:104%;
  font-size:clamp(1.7rem,1.1rem + 2.6vw,3.25rem);
  line-height:1.05; letter-spacing:-.03em;
}
.preorder__line span{ display:block; font-weight:500; font-size:.44em; letter-spacing:.01em;
  color:var(--muted); margin-top:.6rem }
.preorder__status{ color:var(--accent-deep); letter-spacing:.24em; margin-block:var(--s-5) var(--s-6) }
.preorder__cta{ min-height:56px; padding-inline:2rem; font-size:1.0625rem }
.preorder__fine{ color:var(--faint); margin-top:var(--s-5); letter-spacing:.14em }

/* ============================================================
   /author
   ============================================================ */
.authorpage{
  display:grid; gap:clamp(2rem,5vw,4rem);
  padding-block:clamp(2rem,6vh,4rem) clamp(4rem,10vh,7rem);
}
@media (min-width:48rem){
  .authorpage{ grid-template-columns:minmax(0,4fr) minmax(0,8fr); align-items:start }
  .authorpage__art{ position:sticky; top:calc(var(--masthead-h) + 2.5rem) }
}
.authorpage__img{ width:min(100%,18rem); height:auto; background:var(--paper-2) }
.authorpage__text{ max-width:40rem }
.authorpage__text p{ color:var(--graphite); line-height:1.7; margin-bottom:1em; text-wrap:pretty }
.authorpage__lead{
  font-family:var(--serif); font-size:var(--t-md); line-height:1.45;
  color:var(--ink)!important; margin-bottom:1.2em!important;
}

/* ============================================================
   404 — the empty room. one figure, one line, two ways back.
   ============================================================ */
.notfound{ min-height:calc(100dvh - var(--masthead-h)); display:grid; align-items:center }
.notfound__in{ display:grid; justify-items:center; text-align:center; gap:var(--s-5); padding-block:clamp(3rem,10vh,6rem) }
.notfound__room{
  position:relative; width:100%; height:clamp(5.5rem,12vh,8rem);
  display:grid; justify-items:center; align-items:end; margin-bottom:var(--s-4);
}
.notfound__room svg{ position:relative; z-index:1; fill:var(--ink); margin-bottom:.9rem }
.notfound__floor{
  position:absolute; left:calc(50% - 50vw); right:calc(50% - 50vw); bottom:.9rem;
  height:1px; background:var(--ink); opacity:.12;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
}
.notfound__mark{
  position:absolute; left:50%; bottom:.9rem; translate:-50% 0;
  width:clamp(2.8rem,5.4vw,5rem); height:1px; background:var(--ink); opacity:.55;
}
.notfound__code{ color:var(--accent-deep); letter-spacing:.3em }
.notfound__line{ font-size:clamp(1.5rem,.95rem + 2.5vw,3rem); max-width:24ch; margin:0 }

/* ---------- press kit and privacy ---------- */
.kit{ display:grid; gap:clamp(2.5rem,7vh,5rem); padding-bottom:clamp(3rem,9vh,7rem) }
.kit--narrow{ max-width:44rem }
.kit__sec p{ color:var(--graphite); line-height:1.7; margin-bottom:1em; text-wrap:pretty; max-width:40rem }
.kit__h{ font-family:var(--sans); font-weight:800; font-stretch:104%; font-size:var(--t-lg); letter-spacing:-.03em; line-height:1; margin-bottom:var(--s-5) }
.kit__sub{ font-family:var(--mono); font-size:var(--t-label); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:var(--s-6) 0 var(--s-3) }
.kit__sub:first-child{ margin-top:0 }
.kit__row{ display:grid; gap:clamp(1.5rem,4vw,3rem); align-items:start }
@media (min-width:56rem){ .kit__row{ grid-template-columns:minmax(0,4fr) minmax(0,8fr) } }
.kit__art .bookart{ width:min(100%,18rem) }
.kit__lead{ font-family:var(--serif); font-size:var(--t-md); line-height:1.5; color:var(--ink) }
.kit__facts{ margin:var(--s-5) 0 }
.kit__files{ list-style:none; margin:var(--s-4) 0 0; padding:0; display:grid; gap:.6rem; font-family:var(--serif); font-size:var(--t-body) }
.kit__files .link{ display:inline-block; padding-block:.6rem; margin-block:-.6rem }
.kit__note{ font-family:var(--serif) }
.kit__note .link, .kit__sec p .link{ display:inline-block; padding-block:.6rem; margin-block:-.6rem }
.kit__quotes{ list-style:none; margin:0; padding:0; display:grid; gap:0; border-top:1px solid var(--rule) }
.kit__quotes li{ padding-block:var(--s-5); border-bottom:1px solid var(--rule-soft); display:grid; gap:.5rem }
@media (min-width:56rem){ .kit__quotes li{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:2rem; align-items:baseline } }
.kit__q{ margin:0; font-family:var(--serif); font-size:var(--t-md); line-height:1.35; letter-spacing:-.012em; color:var(--ink) }
.kit__who{ margin:0; display:grid; gap:.25rem }
.kit__name{ font-family:var(--sans); font-weight:700; font-size:.9375rem }
.kit__role{ color:var(--muted); font-size:.6875rem; letter-spacing:.09em; text-transform:uppercase; line-height:1.6 }
