/* ==========================================================================
   HALF A KNIFE — book launch site
   Brand system per the Integrated Marketing Launch Plan, Figure 1.
   Palette, type hierarchy and visual rules are locked; edit with care.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Brand palette (Figure 1, "Half a Knife — Brand System") */
  --paper-cream:       #E9DDC9;
  --archive-parchment: #DED1B9;
  --reckoning-navy:    #202350;
  --archive-blue:      #4383C0;
  --witness-blue:      #91B7D4;
  --signal-red:        #E3343E;

  /* Text-safe darkenings of the two accent colours.
     Archive Blue and Signal Red are display colours: at label size on cream they
     fall below 4.5:1. These keep the same hue and clear WCAG AA, and are used for
     small text only. The originals stay in use for rules, dots, and display type. */
  --label-blue: #2F5C86;   /* 5.2:1 on cream, 4.7:1 on parchment */
  --label-red:  #AA272E;   /* 5.2:1 on cream, 4.6:1 on parchment */

  /* Derived neutrals */
  --cream-lift:  #F3EBDD;   /* lighter cream for cards on cream */
  --navy-soft:   #34386F;
  --ink:         #1B1D3A;
  --ink-muted:   #55577A;
  --rule:        rgba(32, 35, 80, 0.16);
  --rule-soft:   rgba(32, 35, 80, 0.09);

  /* Type */
  --font-display: "Noto Sans Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:    "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-quote:   "Noto Serif", Georgia, "Times New Roman", serif;
  /* Menbere — a contemporary Ethiopic face; larger x-height and open counters
     read as modern beside the Noto Sans Ethiopic it replaces. Google-served. */
  --font-ethiopic:"Menbere", "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", serif;

  /* Rhythm */
  --measure:   68ch;
  --shell:     1180px;
  --shell-tight: 780px;
  --gap:       clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius:    4px;

  --shadow-card: 0 1px 2px rgba(32,35,80,.06), 0 8px 24px rgba(32,35,80,.07);
  --shadow-book: 0 2px 6px rgba(32,35,80,.14), 0 26px 60px rgba(32,35,80,.26);
}

/* --- 2. Reset / base ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--reckoning-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--label-blue); }

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--gap) 0;
}

/* --- 3. Type scale ------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 0.45em;
  color: var(--reckoning-navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.55vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  color: var(--label-blue);
  margin: 0 0 1.1rem;
}
.eyebrow--red { color: var(--label-red); }

/* Keep each half of the campaign line together in narrow footer columns. */
.brandline > span { display: inline-block; }

.small { font-size: 0.875rem; color: var(--ink-muted); }

.ge-ez {
  font-family: var(--font-ethiopic);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.94em;      /* Menbere runs large; match the Latin it sits beside */
  line-height: 1.5;
}

/* --- 4. Shell & sections ------------------------------------------------- */

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--tight { width: min(100% - 2.5rem, var(--shell-tight)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section--parchment { background: var(--archive-parchment); border-top-color: transparent; }
.section--navy {
  background: var(--reckoning-navy);
  color: var(--cream-lift);
  border-top-color: transparent;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--witness-blue); }
.section--navy .eyebrow { color: var(--witness-blue); }
.section--navy .small { color: rgba(233, 221, 201, .72); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--ink-muted); }
.section--navy .section-head p { color: rgba(233, 221, 201, .82); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--reckoning-navy); color: #fff;
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* --- 5. Archive motif ---------------------------------------------------- */
/* Circles-and-lines, used sparingly per the brand rules — never wallpaper. */

.motif { position: relative; isolation: isolate; }
.motif::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Two line periods (89px and 137px) overlay into an irregular rhythm, and the
     dots sit on a 437 x 353 tile so the field never reads as a printed grid. */
  background-image:
    repeating-linear-gradient(to right, rgba(145,183,212,.34) 0 1px, transparent 1px 89px),
    repeating-linear-gradient(to right, rgba(145,183,212,.26) 0 1px, transparent 1px 137px),
    radial-gradient(circle at  22px  38px, rgba(67,131,192,.30) 3.5px, transparent 4px),
    radial-gradient(circle at 111px 214px, rgba(67,131,192,.20) 9px,   transparent 9.5px),
    radial-gradient(circle at 200px  96px, rgba(145,183,212,.42) 5px,  transparent 5.5px),
    radial-gradient(circle at 289px 302px, rgba(32,35,80,.13) 4px,     transparent 4.5px),
    radial-gradient(circle at 378px 150px, rgba(67,131,192,.24) 6.5px, transparent 7px),
    radial-gradient(circle at  67px 330px, rgba(145,183,212,.34) 2.5px,transparent 3px),
    radial-gradient(circle at 333px  26px, rgba(67,131,192,.18) 3px,   transparent 3.5px);
  background-size: auto, auto,
    437px 353px, 437px 353px, 437px 353px, 437px 353px, 437px 353px, 437px 353px, 437px 353px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 92%);
  opacity: .85;
}
.section--navy.motif::before { opacity: .3; }

/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 0.9375rem;
  padding: .95rem 1.6rem;
  min-height: 48px;
  border: 2px solid var(--reckoning-navy);
  border-radius: var(--radius);
  background: var(--reckoning-navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--reckoning-navy); }
.btn--ghost:hover { background: rgba(32,35,80,.07); color: var(--reckoning-navy); border-color: var(--reckoning-navy); }

.section--navy .btn { background: var(--paper-cream); border-color: var(--paper-cream); color: var(--reckoning-navy); }
.section--navy .btn:hover { background: #fff; border-color: #fff; }
.section--navy .btn--ghost { background: transparent; color: var(--paper-cream); border-color: rgba(233,221,201,.55); }
.section--navy .btn--ghost:hover { background: rgba(233,221,201,.12); color: #fff; border-color: var(--paper-cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

/* --- 7. Header / nav ----------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(32, 35, 80, .97);          /* Reckoning Navy */
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(145, 183, 212, .22);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.wordmark {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.3rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.wordmark .dot { color: var(--signal-red); }
.red-e { color: var(--signal-red); }  /* the cover's red E — wordmark, buybox title */

.nav ul { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  font-size: .8125rem; text-decoration: none; color: var(--paper-cream);
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--witness-blue); border-bottom-color: var(--witness-blue); }
/* The selected tab sits in a highlighted white box. */
.nav a[aria-current="page"] {
  background: #fff; color: var(--reckoning-navy);
  padding: .45rem .95rem; border-radius: var(--radius); border-bottom: 0;
}
.nav a[aria-current="page"]:hover { color: var(--reckoning-navy); border-bottom-color: transparent; }

/* On the homepage the white box follows the section in view (scroll-spy in
   site.js): The Book, The Archive and Get the Book are sections, not pages,
   so they take .is-active instead of aria-current. While a section owns the
   box, the Home tab drops back to a plain link. */
.nav a.is-active {
  background: #fff; color: var(--reckoning-navy);
  padding: .45rem .95rem; border-radius: var(--radius); border-bottom: 0;
}
.nav a.is-active:hover { color: var(--reckoning-navy); border-bottom-color: transparent; }
.nav[data-spy="true"] a[aria-current="page"]:not(.is-active) {
  background: none; color: var(--paper-cream); padding: .35rem 0; border-radius: 0;
}
.nav[data-spy="true"] a[aria-current="page"]:not(.is-active):hover { color: var(--witness-blue); border-bottom-color: var(--witness-blue); }
.nav a.nav-cta.is-active { background: #fff; }

.nav a.nav-cta {
  background: var(--paper-cream); color: var(--reckoning-navy);
  padding: .45rem .95rem; border-radius: var(--radius); border-bottom: 0;
}
.nav a.nav-cta:hover { background: #fff; color: var(--reckoning-navy); border-bottom-color: transparent; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--paper-cream);
  border-radius: var(--radius); color: var(--paper-cream);
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem;
  padding: .5rem .85rem; min-height: 48px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--reckoning-navy);
    border-bottom: 1px solid rgba(145,183,212,.25);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav li { border-top: 1px solid rgba(233,221,201,.12); }
  .nav a { display: block; padding: .95rem 0; font-size: .95rem; border-bottom: 0; }
  .nav a.nav-cta { display: inline-block; margin: .8rem 0; padding: .7rem 1.1rem; }
  .nav a[aria-current="page"] { display: inline-block; margin: .5rem 0; padding: .55rem .95rem; }
  .nav a.is-active { display: inline-block; margin: .5rem 0; padding: .55rem .95rem; }
  .nav[data-spy="true"] a[aria-current="page"]:not(.is-active) { display: block; margin: 0; padding: .95rem 0; }
}

/* --- 8. Hero ------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .42em; font-size: 3.35rem; }
.hero h1 .turn { display: block; color: var(--signal-red); }
.hero .lede { max-width: 36ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); }
.hero__promise {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: .875rem; color: var(--label-blue);
}

.book-shot { display: flex; justify-content: center; }
.book-shot img {
  width: min(100%, 370px);
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-book);
  transform: rotate(-1.25deg);
}

@media (max-width: 880px) {
  /* Single column reads in argument order: headline, what the book is,
     then the object and its three charges. No reordering. */
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .book-shot img { width: min(72%, 300px); transform: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero .lede { max-width: var(--measure); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
}

/* --- 9. The three charges ------------------------------------------------ */

.charges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.charge {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(145,183,212,.28);
}
.charge:first-child { border-left: 0; }
.charge__ge-ez {
  font-family: var(--font-ethiopic);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  color: var(--witness-blue);
  line-height: 1.5;
  margin: 0 0 .6rem;
}
.charge__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1; color: #fff; margin: 0 0 .5rem;
}
.charge:last-child .charge__word { color: var(--signal-red); }
/* Note: this must NOT be `.charge p` — that would out-specify the two rules
   above and shrink the Ge'ez line and the charge word back to body size. */
.charge__desc { color: rgba(233,221,201,.8); font-size: .95rem; margin: 0; }

.charges-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(145,183,212,.22);
}
.charges-note p { color: rgba(233,221,201,.82); max-width: 62ch; }

@media (max-width: 720px) {
  .charges { grid-template-columns: 1fr; }
  .charge { border-left: 0; border-top: 1px solid rgba(145,183,212,.24); }
  .charge:first-child { border-top: 0; }
}

/* --- 10. Cards / grids --------------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
/* 420px floor keeps grid--2 to a true two-up on desktop rather than collapsing
   a set of four cards into an orphaned 3 + 1. */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

.card {
  background: var(--cream-lift);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.section--parchment .card { background: #F0E7D6; }
.section--navy .card {
  background: rgba(255,255,255,.055);
  border-color: rgba(145,183,212,.24);
  box-shadow: none;
}
.section--navy .card p { color: rgba(233,221,201,.85); }

/* The is / is-not contrast pair */
.contrast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.contrast__col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); }
.contrast__col--is  { background: var(--cream-lift); border: 1px solid var(--rule-soft); }
.contrast__col--not { background: transparent; border: 1px dashed var(--rule); }
.contrast h3 { display: flex; align-items: baseline; gap: .6rem; }

.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-list li {
  padding: .9rem 0 .9rem 1.75rem;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.stack-list li:first-child { border-top: 0; padding-top: 0; }
.stack-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.45rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--archive-blue);
}
.stack-list li:first-child::before { top: .55rem; }
.stack-list--red li::before { background: var(--signal-red); }
.stack-list b { font-weight: 900; }

/* --- 11. Pull quotes ----------------------------------------------------- */

.pull {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem);
  line-height: 1.34;
  color: var(--reckoning-navy);
  max-width: 24ch;
  margin: 0;
  border-left: 3px solid var(--signal-red);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}
.pull--wide { max-width: 34ch; }
.section--navy .pull { color: #fff; border-left-color: var(--signal-red); }

.pull-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }

.attrib {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .8125rem; color: var(--ink-muted); margin-top: 1.2rem;
}
.section--navy .attrib { color: var(--witness-blue); }

/* --- 12. Archive notes --------------------------------------------------- */

.archive-note {
  background: var(--cream-lift);
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--archive-blue);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .9rem;
}
.archive-note__source {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .75rem; color: var(--label-blue);
}
.archive-note__excerpt {
  font-family: var(--font-quote); font-style: italic;
  font-size: 1.0625rem; line-height: 1.5; margin: 0;
  padding-left: 1rem; border-left: 2px solid var(--witness-blue);
}
.archive-note__reckon { margin: 0; font-size: .9375rem; }
.archive-note__reckon b { color: var(--label-red); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; display: block; margin-bottom: .3rem; }

/* --- 13. FAQ ------------------------------------------------------------- */

.faq { max-width: var(--measure); }
.faq details {
  border-top: 1px solid var(--rule);
  padding: .35rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; font-size: 1.0625rem;
  color: var(--reckoning-navy);
  text-transform: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--label-blue); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--label-blue); }
.faq__answer { padding: 0 2.5rem 1.3rem 0; }
.faq__answer p { font-size: .9875rem; }

/* --- 14. Signup ---------------------------------------------------------- */

.signup-form { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; max-width: 34rem; }

/* Launch-list signup band (homepage Get-the-book section + launch page card) */
.launch-signup {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream-lift);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.launch-signup h3 { margin-bottom: .4em; }
.subscribe-status { margin-top: .75rem; }
.subscribe-status:empty { display: none; }
.signup-form input[type="email"] {
  flex: 1 1 15rem;
  min-height: 48px;
  padding: .8rem 1rem;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  background: var(--cream-lift);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
}
.signup-form input[type="email"]::placeholder { color: var(--ink-muted); }
.signup-form input[type="email"]:focus { border-color: var(--archive-blue); outline: none; }
.section--navy .signup-form input[type="email"] {
  background: rgba(255,255,255,.08); border-color: rgba(145,183,212,.4); color: #fff;
}
.section--navy .signup-form input[type="email"]::placeholder { color: rgba(233,221,201,.6); }
.form-note { margin-top: 1rem; font-size: .8125rem; }
.form-status { margin-top: 1rem; font-size: .9375rem; font-weight: 700; }
.form-status:empty { margin: 0; }

/* --- 15. Retail ---------------------------------------------------------- */

.retail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.retail__item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.retail__format {
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .8125rem; color: var(--label-blue);
}
.retail__item p { font-size: .9375rem; flex: 1; }

/* --- 16. Author ---------------------------------------------------------- */

.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.author-grid img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.06);
  box-shadow: var(--shadow-card);
}
@media (max-width: 700px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-grid img { max-width: 220px; }
}

/* --- 17. Placeholders ---------------------------------------------------- */
/* Marker style for an unresolved launch decision. Unused since 2026-08-28 — every blank is
   filled — but kept so a new one can be flagged on the page the same way. */

.tofill {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .02em;
  color: var(--label-red);
  background: rgba(227, 52, 62, .07);
  border: 1px dashed var(--label-red);
  border-radius: 3px;
  padding: .2rem .5rem;
  text-transform: none;
}
.section--navy .tofill { color: #FF8A91; border-color: #FF8A91; background: rgba(227,52,62,.16); }

.slot {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: rgba(255,255,255,.32);
  color: var(--ink-muted);
}
.slot h3 { color: var(--ink-muted); }

/* --- 18. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--reckoning-navy);
  color: rgba(233,221,201,.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.site-footer a { color: var(--witness-blue); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(145,183,212,.22);
}
.footer-grid h3 { font-size: .875rem; letter-spacing: .12em; color: var(--witness-blue); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid p { font-size: .9375rem; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8125rem; color: rgba(233,221,201,.6);
}
.footer-bottom p { margin: 0; max-width: none; }

/* --- 19. Reading pages (introduction, policy) ---------------------------- */

.reading { padding-block: clamp(3rem, 6vw, 5rem); }
.reading p, .reading li { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.72; }
.reading p { max-width: 62ch; }
.reading em { font-style: italic; }
.reading .signoff {
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-top: 2.5rem; color: var(--ink-muted);
}
/* Where the published excerpt stops and the book takes over */
.reading .reading__more {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 2px solid var(--archive-blue);
  font-style: italic; color: var(--ink-muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
}
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem); }
.page-hero .lede { max-width: 52ch; }

.crumb {
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .75rem; color: var(--label-blue); margin-bottom: 1rem;
}
.crumb a { text-decoration: none; }

/* Numbered run-of-show / step lists */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.25rem;
  border-top: 1px solid var(--rule-soft);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.15rem;
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; font-size: 1rem; color: var(--label-red);
  letter-spacing: .05em;
}
.steps li:first-child::before { top: .25rem; }

/* Simple data table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .9375rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th {
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  font-size: .75rem; color: var(--label-blue);
  border-bottom-color: var(--rule);
}

/* --- 20. Utilities ------------------------------------------------------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.center p, .center .pull { margin-inline: auto; }

@media print {
  .site-header, .nav-toggle, .btn-row, .signup-form { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* --- 21. r43 additions ---------------------------------------------------- */

/* Fact strip under the hero — the book's hard numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 130px), 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.stat__n {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1;
  color: var(--reckoning-navy);
  margin: 0 0 .3rem;
}
.stat__l {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .7rem; color: var(--label-blue); margin: 0;
}
.section--navy .stat__n { color: #fff; }
.section--navy .stat__l { color: var(--witness-blue); }
.section--navy .stats { border-top-color: rgba(145,183,212,.24); }

/* Table of contents */
.toc { list-style: none; margin: 0; padding: 0; }
.toc li {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.toc__n {
  flex: 0 0 2.1rem;
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; font-size: .8125rem; color: var(--label-blue);
  letter-spacing: .06em;
}
.toc__t { flex: 1 1 auto; }
.toc__p { flex: 0 0 auto; font-size: .8125rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.toc--front .toc__n, .toc--back .toc__n { color: var(--ink-muted); }
.toc li.is-part {
  border-bottom: 0; padding-top: 1.6rem; padding-bottom: .4rem;
}
.toc li.is-part .toc__t {
  font-family: var(--font-display); font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; color: var(--label-red);
}

/* Figure with caption — the archive chart */
figure.plate { margin: 0; }
/* The archive chart is a tall portrait plate; unconstrained it swallows the
   section. Cap the width and centre it so it reads as a figure, not a banner. */
figure.plate img {
  max-width: 620px;
  margin-inline: auto;
  width: 100%;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--paper-cream);
}
figure.plate figcaption {
  margin-top: .9rem;
  margin-inline: auto;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 56ch;
}
.section--navy figure.plate figcaption { color: rgba(233,221,201,.75); }

/* Reader-response quotes (proof section) */
figure.response { margin: 0; display: flex; flex-direction: column; }
.response blockquote {
  margin: 0 0 1rem; flex: 1;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.58;
  color: var(--reckoning-navy);
}
.response blockquote p { margin: 0; }

/* Photographic mockups — transparent renders that sit directly on the page
   field with their own shadows; every card affordance must stay off. */
.book-shot--photo img {
  /* The author's own stack render (0.90:1, one upright on two flat) carries its
     own tilt and shadow, so it needs no rotation here — only room to stand. */
  width: min(100%, 430px);
  max-width: 100%;
  margin: 0 auto;
  transform: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 880px) {
  .book-shot--photo img { width: min(74%, 340px); }
}
figure.plate--photo img {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  max-width: 420px;   /* the stack is a supporting visual, not a hero */
}

/* --- 22. Buy panel layout (homepage) -------------------------------------- */
/* Left: a sticky buy box. Right: the page scrolls. Collapses below 1080px,
   where a fixed bottom bar takes over the always-visible purchase action. */

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.layout > main { min-width: 0; overflow-x: clip; }  /* the hero book bleeds; clip at the column */

.buybox {
  position: sticky;
  top: 3.6rem;                       /* clear the sticky header */
  max-height: calc(100vh - 3.6rem);
  min-height: calc(100vh - 3.6rem);  /* the panel reads as a full column */
  overflow-y: auto;
  padding: clamp(1.5rem, 3vh, 2.5rem) 1.75rem 2rem;
  background: var(--reckoning-navy);
  text-align: center;
  isolation: isolate;
}
/* the archive motif, quiet, behind the panel content */
.buybox::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(145,183,212,.30) 0 1px, transparent 1px 67px),
    radial-gradient(circle at  26px  44px, rgba(145,183,212,.35) 3.5px, transparent 4px),
    radial-gradient(circle at 118px 190px, rgba(67,131,192,.30) 8px,   transparent 8.5px),
    radial-gradient(circle at 205px  96px, rgba(145,183,212,.28) 5px,  transparent 5.5px),
    radial-gradient(circle at  70px 300px, rgba(67,131,192,.22) 4px,   transparent 4.5px),
    radial-gradient(circle at 250px 260px, rgba(145,183,212,.32) 2.5px,transparent 3px);
  background-size: auto, 296px 344px, 296px 344px, 296px 344px, 296px 344px, 296px 344px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 55%, #000 100%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 55%, #000 100%);
}
.buybox__cover {
  /* The author's open-spread render is transparent and carries its own baked
     shadow, so it sits directly on the navy — no frame, no CSS shadow. */
  width: 100%;
  margin: 0 auto .9rem;
  transform: none;
  border-radius: 0;
  box-shadow: none;
}
.buybox__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700; text-transform: uppercase;
  font-size: 1.45rem; line-height: 1.05;
  color: #fff;
  margin: 0 0 .25rem;
}
.buybox__sub {
  font-size: .8125rem; color: rgba(233,221,201,.75);
  margin: 0 0 1.1rem; line-height: 1.4;
}
.buybox__avail {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .7rem; color: var(--witness-blue);
  margin: 0 0 1rem;
}
.buybox__actions { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.buybox__actions .btn { width: 100%; padding-inline: 1rem; }
.buybox .btn { background: var(--paper-cream); border-color: var(--paper-cream); color: var(--reckoning-navy); }
.buybox .btn:hover { background: #fff; border-color: #fff; }
.buybox .btn--ghost { background: transparent; color: var(--paper-cream); border-color: rgba(233,221,201,.55); }
.buybox .btn--ghost:hover { background: rgba(233,221,201,.12); color: #fff; border-color: var(--paper-cream); }
.buybox .tofill { color: #FF8A91; border-color: #FF8A91; background: rgba(227,52,62,.16); }
.buybox__quote {
  margin: 0 0 1.25rem; padding: 1rem 0 0;
  border-top: 1px solid rgba(145,183,212,.24);
  font-family: var(--font-quote); font-style: italic;
  font-size: .9rem; line-height: 1.5;
  color: rgba(233,221,201,.88);
}
.buybox__links { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(145,183,212,.24); }
.buybox__links li { margin-bottom: .55rem; }
.buybox__links a { font-size: .875rem; color: var(--witness-blue); }
.buybox__links a:hover { color: #fff; }

/* Mobile bottom bar */
.buybar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  gap: .6rem;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(233, 221, 201, .95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--rule);
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.buybar .btn { flex: 1 1 0; min-height: 48px; padding: .6rem .5rem; font-size: .8125rem; }

@media (max-width: 1080px) {
  .layout { display: block; }
  .buybox { display: none; }
  .buybar { display: flex; }
  .buybar[data-visible="false"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
    visibility: hidden;
  }
  body.has-panel { padding-bottom: 4.6rem; }  /* keep the bar off the footer */
}

@media (max-width: 860px) {
  .wordmark { min-height: 48px; }
  .footer-grid a { display: inline-flex; align-items: center; min-height: 48px; }
  .footer-grid li { margin-bottom: .1rem; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 48px; }
}

/* --- 23. Tab headers, hero charges, author+quote (2026-08-05 restructure) -- */

/* Section tab: a navy plate with a rule running from its bottom-right corner
   to the page edge — the archive-folder label, used as the header device. */
.section-tab { display: flex; align-items: flex-end; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-tab > span, .section-tab > h2 {
  margin: 0;
  background: var(--reckoning-navy);
  color: #fff;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9375rem;
  line-height: 1.25;
  padding: .7rem 1.1rem .6rem;
}
.section-tab::after { content: ""; flex: 1 1 0; height: 2px; background: var(--reckoning-navy); }
.section--navy .section-tab > span, .section--navy .section-tab > h2 {
  background: var(--paper-cream); color: var(--reckoning-navy);
}
.section--navy .section-tab::after { background: var(--paper-cream); }
.section-tab .tofill { color: #FF8A91; border-color: #FF8A91; background: rgba(227,52,62,.16); }

/* The three charges as a compact strip at the base of the hero */
.hero-charges {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.hero-charge .hc-ge {
  font-family: var(--font-ethiopic);
  font-size: .9375rem; color: var(--label-blue);
  margin: 0 0 .35rem; line-height: 1.4;
}
.hero-charge .hc-word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62.5;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1; color: var(--reckoning-navy);
  margin: 0 0 .4rem;
}
.hero-charge:nth-child(3) .hc-word { color: var(--signal-red); }
.hero-charge .hc-desc { font-size: .8125rem; color: var(--ink-muted); margin: 0; line-height: 1.5; }
.hero .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero-charges__line {
  grid-column: 1 / -1;
  font-size: .8125rem; color: var(--ink-muted);
  margin: 0; padding-top: .25rem;
}
@media (max-width: 760px) {
  .hero-charges { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* The is / is-not pair on navy */
.contrast__col--is { color: var(--ink); }
.section--navy .contrast__col--is .eyebrow { color: var(--label-blue); }
.section--navy .contrast__col--not { border-color: rgba(233,221,201,.45); }
.section--navy .eyebrow--red { color: #FF8A91; }
.section--navy .stack-list li { border-top-color: rgba(233,221,201,.16); }
.section--navy .contrast__col--is .stack-list li { border-top-color: var(--rule-soft); }

/* Author + the one sentence, side by side */
.author-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.author-left img {
  width: 100%; max-width: 240px;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.06);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.author-pull {
  margin: 0 0 1.1rem;
  font-family: var(--font-quote); font-style: italic;
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.05rem);
  line-height: 1.4; color: var(--reckoning-navy);
}
.author-pull::before {
  content: "\201C";
  display: block;
  font-family: var(--font-quote);
  font-size: 4.5rem; line-height: .55;
  color: var(--signal-red);
  margin-bottom: .6rem;
}
@media (max-width: 880px) {
  .author-quote-grid { grid-template-columns: 1fr; }
}

/* --- 24. Hero right panel + is/is-not parity (2026-08-05, round 2) -------- */

/* Right panel of the hero: the mockup, with the charges stacked beneath it */
.hero-right { min-width: 0; display: flex; flex-direction: column; }
/* A rotation does not change the layout box, so the figure carries the extra
   room the turned render needs and the charges below stay clear of it. */
.hero-right .book-shot--photo { padding-block: 0; }
.hero-right .book-shot--photo img {
  /* A 4:3 studio plate whose ground has been recoloured to the page field, so
     it needs no rotation, no frame and no shadow of its own — it already has
     one, and it already blends into the cream. */
  width: 106%;
  max-width: none;
  margin: 0 -3%;
  transform: none;
}
@media (max-width: 880px) {
  .hero-right .book-shot--photo img { width: 100%; margin: 0; }
}
.hero-charges--stack {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0;
  padding-top: 1.1rem;
}
.hero-charges--stack .hc-word {
  font-size: 1.2rem;
  display: flex; align-items: baseline; gap: .6rem;
  margin-bottom: .25rem;
}
.hero-charges--stack .hc-ge { font-size: .8125rem; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hero-charges--stack .hc-desc { font-size: .8125rem; }
.hero-charges--stack .hero-charges__line { padding-top: .4rem; font-size: .78rem; }
/* The narrow-screen size for this render is set with the rest of its rules
   above; a second, later override here used to defeat it. */

/* "It is not" carries the same card background as "It is"; the red accents
   alone mark the difference. */
.section--navy .contrast__col--not {
  background: var(--cream-lift);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
}
.section--navy .contrast__col--not .stack-list li { border-top-color: var(--rule-soft); }
.section--navy .contrast__col--not .eyebrow--red { color: var(--label-red); }

/* Red final beat in large display headings (passes contrast at heading size only) */
.accent-red { color: var(--signal-red); }


/* --- author bio + endorsement quote styling (index) ---------------------- */
.author-name { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-top: 1.2rem; }
.author-left p {
  font-family: 'EB Garamond', Georgia, serif; font-style: italic;
  font-size: 1.1rem; line-height: 1.7;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
/* Media kit: the description paragraphs are set justified, like the printed sheet. */
[aria-labelledby="desc-h"] p,
[aria-labelledby="bio-h"] p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.endorse p { quotes: "\201C" "\201D"; }
.endorse p:first-of-type::before {
  content: open-quote;
  color: var(--signal-red);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.9em; font-weight: 700; line-height: 0;
  vertical-align: -0.28em; margin-right: .06em;
}
.endorse p:last-of-type::after { content: close-quote; }
