/* New Dawn Heritage Press — site styles
   Authored by echo, cycle 1.
   Source of truth: ~/ndhp/design/DESIGN-TOKENS.md
   Aesthetic: Fitzcarraldo typography + TCI restraint + one signature accent.
*/

/* ----------------------------------------------------------------
   @font-face — self-hosted Libre Caslon (OFL)
---------------------------------------------------------------- */
@font-face {
  font-family: "Libre Caslon Display";
  src: url("/assets/fonts/libre-caslon-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/assets/fonts/libre-caslon-text-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------
   Tokens
---------------------------------------------------------------- */
:root {
  /* palette */
  --paper:     #f3ece0;
  --paper-2:   #ece3d2;
  --paper-3:   #e6dcc8;
  --ink:       #1c1a17;
  --ink-2:     #4a443c;
  --ink-3:     #6a5f50;
  --rule:      #bfb39b;
  --rule-soft: #d6cbb5;

  /* Warm dawn accent system — replaces prior Fitzcarraldo cool-blue.
     Pulled from the Pichler crepuscular-rays photograph that anchors
     the home hero: deep storm-blue clouds, dawn-amber light burst,
     aged-gilt for sacred-moment hairlines. */
  --accent:    #c9863b;   /* dawn amber — primary; the light through clouds */
  --accent-2:  #a85643;   /* twilight rose — secondary; the warmth at horizon */
  --shadow:    #1a2440;   /* deep storm-blue — depth/dark backgrounds only */
  --gilt:      #b8995a;   /* aged gilt — hairlines + drop caps at sacred moments */

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2.25rem;
  --s-7: 3.5rem;
  --s-8: 5.5rem;
  --s-9: 8rem;

  /* type */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", "Adobe Caslon Pro", "Hoefler Text", Georgia, serif;
  --font-body:    "Libre Caslon Text", "Libre Caslon Display", "Adobe Caslon Pro", "Hoefler Text", Georgia, serif;

  /* layout */
  --measure-prose: 64ch;
  --max-wide:      74rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
}
a:hover,
a:focus { color: var(--ink); text-decoration-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip link (a11y) */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  z-index: 100;
  font-family: var(--font-body);
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ----------------------------------------------------------------
   Layout containers
---------------------------------------------------------------- */
.wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.prose {
  max-width: var(--measure-prose);
}

/* ----------------------------------------------------------------
   Masthead (editorial, not SaaS nav)
---------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--s-6) 0 var(--s-5);
}
.masthead {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: end;
}
@media (min-width: 720px) {
  .masthead {
    grid-template-columns: auto 1fr;
    gap: var(--s-6);
  }
}
.brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  line-height: 1.05;
}
.brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.brand a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.005em;
  font-weight: 400;
}
.brand a:hover { color: var(--accent); }
.brand .tagline {
  font-style: italic;
  color: var(--ink-2);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------
   Press mark — flat hand-authored sigil used in masthead + footer.
   The SVG (assets/press-mark.svg) is single-colour; we paint it
   via CSS mask-image so the same file can render as ink on cream
   (default) or cream on the deep-blue band (inverted) without
   shipping a second file. No paper texture, no frame — a SIGIL,
   not an illustration.
---------------------------------------------------------------- */
.press-mark {
  display: inline-block;
  flex: 0 0 auto;
  background-color: var(--ink);
  -webkit-mask-image: url("/assets/press-mark.svg");
          mask-image: url("/assets/press-mark.svg");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  line-height: 0;
}
.press-mark--brand {
  width: 48px;
  height: 48px;
}
@media (max-width: 540px) {
  .press-mark--brand { width: 38px; height: 38px; }
}
.press-mark--footer {
  width: 56px;
  height: 56px;
}
/* Inverted variant on the deep-blue band — repaint to paper cream. */
.site-header--on-band .press-mark {
  background-color: var(--paper);
}

.site-nav { justify-self: end; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  padding: var(--s-1) 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* The signature thin rule under the masthead — a single accent stripe */
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  width: 6rem;
  margin: var(--s-5) 0 0;
}

/* ----------------------------------------------------------------
   Main + headings
---------------------------------------------------------------- */
main { padding: var(--s-7) 0 var(--s-8); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 var(--s-4);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: var(--s-5);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
}
h3 {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.3;
  margin-top: var(--s-5);
  font-weight: 700;
  letter-spacing: 0.01em;
}
p { margin: 0 0 var(--s-4); }
p + p { text-indent: 0; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin: 0 0 var(--s-2); }
strong { font-weight: 700; }
em { font-style: italic; }

/* ----------------------------------------------------------------
   Blockquote / pull-quote (about page mission)
---------------------------------------------------------------- */
blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 50ch;
}
blockquote p { margin: 0; }

/* ----------------------------------------------------------------
   Ornament — the press's own sigil (assets/press-mark.svg), small and
   quiet at the centre of a hairline rule. ::before knocks the rule out
   behind the mark; ::after paints the sigil via mask so it can be
   tinted with the accent token.
---------------------------------------------------------------- */
hr.ornament {
  border: 0;
  margin: var(--s-7) 0;
  overflow: visible;
  height: 1px;
  background: var(--rule-soft);
  position: relative;
}
hr.ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 26px;
  background: var(--paper);
}
hr.ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-color: var(--accent);
  -webkit-mask: url("/assets/press-mark.svg") center / contain no-repeat;
          mask: url("/assets/press-mark.svg") center / contain no-repeat;
}

/* ----------------------------------------------------------------
   Home — editorial masthead hero (NOT centered+two-CTA)
---------------------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding: var(--s-5) 0 var(--s-7);
}
@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
    /* Align lede top with H1 cap-height — at 1440 with multi-line H1,
       `align-items: end` stranded the H1 above ~160px of dead cream.
       Top-align keeps the left column anchored to its own H1. */
    align-items: start;
  }
  .home-hero .lede {
    /* Optical kick: nudge lede down so its x-height meets the H1's
       cap-line rather than the H1's top metric line. */
    margin-top: 0.55em;
  }
}
.home-hero .eyebrow {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
  display: block;
}
.home-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.005em;
}
.home-hero .lede {
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 32ch;
  margin: 0;
}
.home-hero .lede::first-letter {
  font-family: var(--font-display);
  font-size: 2.4em;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.08em 0 0;
  color: var(--accent);
  font-style: normal;
}

/* Two-column section under hero */
.home-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin: var(--s-7) 0 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule-soft);
}
@media (min-width: 720px) {
  .home-cols { grid-template-columns: 3fr 4fr; gap: var(--s-8); }
}
.home-cols .col h2 {
  margin-top: 0;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
}
.home-cols .col h2 .index {
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-right: var(--s-2);
}

/* ----------------------------------------------------------------
   Books page — asymmetric index list (not symmetric 2-col grid)
---------------------------------------------------------------- */
.catalog {
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.catalog .entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 720px) {
  .catalog .entry {
    grid-template-columns: 180px 1fr auto;
    column-gap: var(--s-6);
    align-items: start;
  }
  .catalog .entry__head {
    display: contents;
  }
}
.catalog .entry__cover {
  margin: 0;
  width: 180px;
  height: 270px;
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.10) inset,
    0 8px 18px -8px rgba(0, 0, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.10);
  flex: 0 0 auto;
}
@media (max-width: 719px) {
  .catalog .entry__cover { margin: 0 auto var(--s-3); }
}
.catalog .entry__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Editorial flat cover variant — no image, type-only on deep-blue.
   Matches the index forthcoming cover-1 treatment at the smaller
   180x270 books-page size. */
.catalog .entry__cover--editorial {
  background: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: var(--s-5) var(--s-3);
  color: var(--paper);
}
.catalog .entry__cover-press {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(243, 236, 224, 0.88);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(243, 236, 224, 0.28);
  width: 65%;
}
.catalog .entry__cover-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.18;
  color: var(--paper);
  padding: 0 var(--s-1);
  max-width: 14ch;
}
.catalog .entry__cover-status {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  color: rgba(243, 236, 224, 0.88);
  padding-top: var(--s-2);
  border-top: 1px solid rgba(243, 236, 224, 0.28);
  width: 45%;
}
.catalog .entry .title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
}
.catalog .entry .meta-stack {
  text-align: left;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.5;
}
@media (min-width: 720px) {
  .catalog .entry .meta-stack { text-align: right; }
}
.catalog .entry .meta-stack .kind {
  display: block;
  color: var(--ink-2);
}
.catalog .entry .meta-stack .status {
  display: inline-block;
  color: var(--accent);
  /* The accent border-bottom is the editorial mark; kill any inherited
     link underline (defensive — `.status` is currently a <span> but if
     it ever wraps to <a> the underline would double-decorate). */
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.catalog .entry .blurb {
  grid-column: 1 / -1;
  max-width: 60ch;
  margin: var(--s-3) 0 0;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .catalog .entry .blurb {
    grid-column: 2 / -1;
    margin-top: var(--s-4);
  }
}

/* ----------------------------------------------------------------
   Contact form — hairline rules, no rounded boxes
---------------------------------------------------------------- */
form.contact {
  max-width: var(--measure-prose);
  margin: var(--s-6) 0 0;
}
form.contact .field { margin-top: var(--s-5); }
form.contact label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  font-size: 0.8rem;
  margin-bottom: var(--s-2);
}
form.contact input,
form.contact textarea,
form.contact select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: var(--s-2) 0;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
form.contact select {
  padding-right: var(--s-5);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:
    right 8px center,
    right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
form.contact textarea {
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--rule);
  padding: var(--s-3);
}
form.contact input:focus,
form.contact textarea:focus,
form.contact select:focus {
  outline: 0;
  border-color: var(--accent);
}
form.contact .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form.contact .submit-row {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--s-5);
}
.note {
  color: var(--ink-3);
  font-size: 0.88rem;
  font-style: italic;
  margin: var(--s-3) 0 0;
}

/* ----------------------------------------------------------------
   Buttons — set in caps, no rounded corners, no shadow
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: var(--s-3) var(--s-5);
  border: 0;
  font: inherit;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover, .btn:focus {
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
}
.btn[disabled],
.btn.disabled {
  background: transparent;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-1) 0;
  cursor: not-allowed;
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

/* ----------------------------------------------------------------
   About — index sidebar layout (desktop variety)
---------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 960px) {
  .about-layout {
    grid-template-columns: 14rem 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}
.about-index {
  position: sticky;
  top: var(--s-5);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink-3);
  /* No top rule — the orphaned hairline above the H1 read as leftover
     nav cruft on 1440. The column is quiet metadata; the list itself
     carries the visual weight. */
  padding-top: var(--s-1);
}
.about-index ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: idx;
}
.about-index li {
  counter-increment: idx;
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.about-index li::before {
  content: counter(idx, decimal-leading-zero);
  color: var(--accent);
  flex: 0 0 auto;
}
.about-index a {
  color: var(--ink-2);
  text-decoration: none;
}
.about-index a:hover { color: var(--accent); }

/* ----------------------------------------------------------------
   404 — centered ornament
---------------------------------------------------------------- */
.notfound {
  text-align: center;
  padding: var(--s-9) 0 var(--s-8);
}
.notfound__mark {
  /* Single statement — the press sigil as the page's anchor mark, scaled
     to ~7rem on desktop and clamped down on mobile. */
  display: block;
  width: clamp(72px, 12vw, 112px);
  height: clamp(72px, 12vw, 112px);
  background-color: var(--accent);
  margin: 0 auto var(--s-6);
}
.notfound h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: var(--s-4);
}
.notfound p { max-width: 40ch; margin: 0 auto var(--s-4); }

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: var(--s-6) 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.site-footer .wrap {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  align-items: baseline;
}
@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    gap: var(--s-6);
  }
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-2); text-decoration-color: var(--rule); }
.site-footer a:hover { color: var(--accent); }
.site-footer .footnav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.site-footer .colophon {
  margin-top: var(--s-4);
  grid-column: 1 / -1;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--s-3);
}

/* ----------------------------------------------------------------
   Scroll-driven reveals (subtle — Fitzcarraldo quiet motion)
---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Fallback: no-JS, no scroll-timeline — content visible by default. */
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* CSS scroll-timeline path (Chromium 115+). Targets the same .reveal class
     and overrides JS path when supported. */
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      transform: translateY(12px);
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
      transition: none;
    }
    .reveal.is-in {
      /* no-op — scroll-timeline drives it */
    }
    @keyframes rise-in {
      to { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
}

/* Home main wrap — hero manages its own spacing; sections manage theirs. */
.home main { padding-top: 0; padding-bottom: 0; }

/* ----------------------------------------------------------------
   Shared section headings
---------------------------------------------------------------- */
.section-eyebrow {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

/* The book-cover figure: 300×450, art as background, overlaid title */
.cover {
  margin: 0;
  position: relative;
  width: 300px;
  height: 450px;
  background: var(--ink);
  overflow: hidden;
  /* Realistic cover shadow */
  box-shadow:
    0 1px 0 rgba(0,0,0,0.10) inset,
    0 12px 24px -10px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 300ms ease, box-shadow 300ms ease;
  flex: 0 0 auto;
  justify-self: start;
}
@media (max-width: 759px) {
  .cover { width: 240px; height: 360px; margin: 0 auto; }
}
.cover:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.10) inset,
    0 18px 32px -10px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.18);
}
.cover__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cover__caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--paper);
  /* A subtle dark scrim only at top and bottom so the overlaid type
     reads while the painted middle of the cover stays untouched. */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.0) 22%,
    rgba(0, 0, 0, 0.0) 78%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.cover__press {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(243, 236, 224, 0.88);
  line-height: 1.3;
}
.cover__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--paper);
  padding: 0 var(--s-3);
  max-width: 16ch;
}
.cover__status {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: rgba(243, 236, 224, 0.88);
}
/* Cover variant: editorial flat deep-blue field, no image — used for
   cover-1 (forthcoming__entry--a) because the title is genuinely
   unannounced and a generated illustration is dishonest. The Caslon
   typography carries the cover by itself, in the Fitzcarraldo
   monochrome-jacket tradition. */
.cover--editorial {
  background: var(--shadow);
}
.cover--editorial .cover__caption {
  /* No image underneath — drop the dark scrim, distribute the type
     across the full height with proper editorial breathing room. */
  background: none;
  padding: var(--s-7) var(--s-5);
}
.cover--editorial .cover__title {
  /* The title carries more weight when it is the cover. */
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
/* A single hairline rule under the press name + above the status to
   anchor the centred type. */
.cover--editorial .cover__press {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(243, 236, 224, 0.28);
  width: 60%;
}
.cover--editorial .cover__status {
  padding-top: var(--s-3);
  border-top: 1px solid rgba(243, 236, 224, 0.28);
  width: 40%;
}

/* ----------------------------------------------------------------
   Mission — a quiet coda. The book is the peak of the page now; the
   mission line closes it in a low voice under the press's own sigil.
---------------------------------------------------------------- */
.mission {
  background: var(--paper);
  padding: var(--s-8) 0;
}
.mission__panel {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--s-5);
}
.mission__mark {
  width: 30px;
  height: 30px;
  background-color: var(--gilt);
  margin: 0 0 var(--s-5);
}
.mission__quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-2);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  text-align: center;
  margin: 0;
  border: 0;
  padding: 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.mission__quote p { margin: 0; }
.mission__quote em {
  color: var(--ink);
  font-style: italic;
}

/* ----------------------------------------------------------------
   Notify — quiet email opt-in
---------------------------------------------------------------- */
.notify {
  background: var(--paper-2);
  border-top: 1px solid var(--rule-soft);
  padding: var(--s-8) 0;
}
.notify__panel {
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
}
.notify__line {
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 var(--s-5);
}
.notify__form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  max-width: 32rem;
  margin: 0 auto;
}
.notify__form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0; /* flex: let the field shrink on narrow phones instead of pushing the button off-screen */
  background: transparent;
  border: 0;
  padding: var(--s-3) 0;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.notify__form input[type="email"]:focus {
  outline: 0;
}
.notify__form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.notify__btn {
  flex: 0 0 auto;
  margin-left: var(--s-3);
}
.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;
}

/* ----------------------------------------------------------------
   Footer press mark — centered, with colophon below it
---------------------------------------------------------------- */
.site-footer .wrap {
  /* Override the earlier two-column grid to make room for the centered mark */
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: var(--s-3);
}
.site-footer__mark {
  display: inline-flex;
  margin: 0 0 var(--s-3);
}
.site-footer .footnav { justify-content: center; }
@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ----------------------------------------------------------------
   About page — scroll-timeline embellishments (optional, gracefully
   no-op on browsers without animation-timeline support).
   The mission blockquote scales/fades as it crosses the viewport;
   the asterism dividers rotate slowly.
---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    body:not(.home) main blockquote {
      animation: about-mission-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
      transform-origin: left center;
    }
    @keyframes about-mission-rise {
      from { opacity: 0; transform: scale(0.92); }
      to   { opacity: 1; transform: scale(1); }
    }
    /* The sigil is directional (a star over a horizon) — it settles in,
       it does not spin. */
    body:not(.home) hr.ornament::after {
      animation: about-ornament-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes about-ornament-settle {
      from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.82); }
      to   { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
    }
  }
}

/* ----------------------------------------------------------------
   Print
---------------------------------------------------------------- */
@media print {
  .site-header, .site-nav, .site-footer, .btn { display: none; }
  .hero { display: none; }
  .cover { box-shadow: none; }
  .mission__quote { color: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}

/* ================================================================
   HOME — "the heavens opening" WebGL hero (assets/hero.js).
   The scene renders ALL of its own light (sun halo, glow core,
   sun-lit clouds, bloom). CSS here contributes only darkness —
   scrims for type legibility — and layout. Kill-test safe.
================================================================ */
.hero {
  position: relative;
  background: #10141f;   /* dim enclosure before first frame / while loading */
  color: var(--paper);
}
.hero__track { height: 100svh; position: relative; }
html.hero-webgl .hero__track { height: 460svh; }
.hero__stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
html.hero-webgl .hero__stage { position: sticky; top: 0; }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.hero__canvas.is-ready { opacity: 1; }
html:not(.hero-webgl) .hero__canvas { display: none; }
/* Resume visit (Home link / back): show the resolved luminous still instantly
   as the stage backdrop, so the image is there from the first paint and the
   live canvas simply crossfades over the same scene — no dark second, no
   "adjusting into place" while WebGL warms up. */
html.hero-resume .hero { background: #d7c2a0; }
html.hero-resume .hero__stage {
  background-image: url(/assets/hero-static.jpg);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
html.hero-resume .hero__canvas { transition: opacity 260ms ease; }
/* The resume class is set pre-paint by the head script, so the FIRST frame
   must already be the resolved end-state — hero.js drives these same values
   via inline styles once the module loads, and its inline styles win from
   then on (scrolling up still replays the full ascent). */
html.hero-webgl.hero-resume .hero__verse,
html.hero-webgl.hero-resume .hero__cue { opacity: 0; }
html.hero-webgl.hero-resume .hero__scrim { opacity: 1; }
html.hero-webgl.hero-resume .hero__credit { opacity: 0.85; }
html.hero-webgl.hero-resume .hero__resolve {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Static fully-resolved luminous frame — reduced-motion / no-WebGL / no-JS */
.hero__static {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: none;
}
html:not(.hero-webgl) .hero__static { display: block; }
html:not(.hero-webgl) .hero__stage::before {
  /* dark top scrim for masthead legibility over the static frame */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 24%;
  background: linear-gradient(to bottom, rgba(13, 15, 22, 0.55), rgba(13, 15, 22, 0));
  z-index: 1;
}

/* Opening verse — the journey's epigraph */
.hero__verse {
  position: absolute;
  left: 50%; top: 33%;
  transform: translateX(-50%);
  width: min(36ch, 84vw);
  margin: 0; padding: 0; border: 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.75;
  color: rgba(233, 227, 214, 0.85);
  z-index: 3;
}
.hero__verse p { margin: 0 0 var(--s-3); }
.hero__verse cite {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(233, 227, 214, 0.6);
}
html:not(.hero-webgl) .hero__verse { display: none; }

/* Legibility scrim — darkness only, never light */
.hero__scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(to top, rgba(46, 40, 32, 0.30) 0%, rgba(46, 40, 32, 0.10) 55%, rgba(46, 40, 32, 0) 100%);
  pointer-events: none;
}
html:not(.hero-webgl) .hero__scrim { opacity: 1; }

/* Wordmark + headline resolve in the light */
.hero__resolve {
  position: absolute;
  left: 50%; bottom: 10%;
  transform: translateX(-50%);
  width: min(52rem, 92vw);
  text-align: center;
  z-index: 4;
  opacity: 0;
}
html:not(.hero-webgl) .hero__resolve { opacity: 1; }
.hero__wordmark {
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: rgba(58, 52, 44, 0.85);
  margin: 0 0 var(--s-3);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: rgba(58, 52, 44, 0.92);
  max-width: 54ch;
  margin: 0 auto var(--s-5);
}
.hero__cta {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.88rem;
  padding: var(--s-3) var(--s-6);
  border: 1px solid rgba(58, 52, 44, 0.55);
  transition: border-color 300ms ease, background-color 300ms ease;
}
.hero__cta:hover, .hero__cta:focus {
  color: var(--ink);
  border-color: rgba(58, 52, 44, 0.95);
  background: rgba(243, 236, 224, 0.25);
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%; bottom: var(--s-5);
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: rgba(233, 227, 214, 0.6);
  text-align: center;
}
.hero__cue::after {
  content: "";
  display: block;
  width: 1px; height: 34px;
  margin: var(--s-2) auto 0;
  background: linear-gradient(to bottom, rgba(233, 227, 214, 0.55), rgba(233, 227, 214, 0));
}
@media (prefers-reduced-motion: no-preference) {
  html.hero-webgl .hero__cue::after { animation: cue-drift 2.6s ease-in-out infinite; }
  @keyframes cue-drift {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(7px); opacity: 0.55; }
  }
}
html:not(.hero-webgl) .hero__cue { display: none; }

/* Curatorial credit — appears with the vista */
.hero__credit {
  position: absolute;
  right: var(--s-5); bottom: var(--s-4);
  z-index: 3;
  margin: 0;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(74, 68, 60, 0.9);
  text-align: right;
  max-width: 30ch;
  opacity: 0;
}
html:not(.hero-webgl) .hero__credit { opacity: 0.8; }

/* Plate mode — clean frame for the static/og captures */
html.hero-plate .site-header--fixed,
html.hero-plate .hero__verse,
html.hero-plate .hero__resolve,
html.hero-plate .hero__cue,
html.hero-plate .hero__credit,
html.hero-plate .hero__scrim { display: none !important; }

/* ----------------------------------------------------------------
   Fixed masthead on home — cream over the heavens, ink over paper
---------------------------------------------------------------- */
.site-header--fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  padding: var(--s-4) 0;
  transition: background-color 400ms ease, border-color 400ms ease;
}
.site-header--fixed::after { display: none; }
.site-header--fixed .masthead { align-items: center; }
.site-header--fixed .brand a {
  color: rgba(243, 236, 224, 0.95);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.site-header--fixed .brand a:hover { color: #fff; }
.site-header--fixed .site-nav a { color: rgba(243, 236, 224, 0.78); }
.site-header--fixed .site-nav a:hover,
.site-header--fixed .site-nav a:focus,
.site-header--fixed .site-nav a[aria-current="page"] {
  color: rgba(243, 236, 224, 1);
  border-bottom-color: rgba(243, 236, 224, 0.9);
}
.site-header--fixed.is-solid {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header--fixed.is-solid .brand a { color: var(--ink); }
.site-header--fixed.is-solid .site-nav a { color: var(--ink-2); }
.site-header--fixed.is-solid .site-nav a:hover,
.site-header--fixed.is-solid .site-nav a:focus,
.site-header--fixed.is-solid .site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
/* Static hero modes: header sits at the top of the page, not fixed */
html:not(.hero-webgl) .site-header--fixed { position: absolute; z-index: 5; }
@media (max-width: 719px) {
  .site-header--fixed .masthead { grid-template-columns: 1fr; gap: var(--s-2); }
  .site-header--fixed .site-nav ul { gap: var(--s-2) var(--s-4); }
}

/* ----------------------------------------------------------------
   Intro — Truth Worth Preserving
---------------------------------------------------------------- */
.intro {
  background: var(--paper);
  padding: var(--s-9) 0 var(--s-8);
}
.intro__panel {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}
.intro__panel .section-heading { margin-bottom: var(--s-5); }
.intro__lede {
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

/* ----------------------------------------------------------------
   The arrival — The Day Charlie Kept.
   The ascent ends in light; this section is what the light was for.
   Staged on the hero's centre axis: a warm dawn field falling from
   the top of the section, a gilt plumb line descending to the cover,
   the cover held in a soft diffuse warmth (a field, never rays),
   then title / byline / hook landing as scroll beats, and the prose
   narrowing to a reading column. All colour comes from the tokens.
---------------------------------------------------------------- */
.arrival {
  position: relative;
  background: var(--paper-2);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
/* dawn wash — the hero's amber entering from above, settling into paper */
.arrival::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(120rem, 170vw);
  height: min(75vh, 46rem);
  background: radial-gradient(ellipse at 50% 0%,
    rgba(201, 134, 59, 0.17) 0%,
    rgba(201, 134, 59, 0.07) 46%,
    rgba(201, 134, 59, 0) 72%);
  pointer-events: none;
}
.arrival > .wrap { position: relative; }
.arrival__header { margin: 0; text-align: center; }
/* the plumb line — a gilt hairline descending from the light to the book */
.arrival__header::after {
  content: "";
  display: block;
  width: 1px;
  height: var(--s-8);
  margin: var(--s-5) auto 0;
  background: linear-gradient(to bottom, rgba(184, 153, 90, 0), var(--gilt));
}
.arrival__coverwrap {
  position: relative;
  width: min(400px, 76vw);
  margin: var(--s-6) auto 0;
  perspective: 1400px;
}
/* soft in-scene warmth held behind the cover — diffuse, low, no geometry */
.arrival__coverwrap::before {
  content: "";
  position: absolute;
  inset: -16% -30% -20%;
  background: radial-gradient(closest-side at 50% 44%,
    rgba(201, 134, 59, 0.22) 0%,
    rgba(184, 153, 90, 0.10) 55%,
    rgba(201, 134, 59, 0) 78%);
  pointer-events: none;
}
/* grounded contact shadow — stays put while the book turns above it */
.arrival__coverwrap::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6.5%;
  height: 11%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(28, 26, 23, 0.32) 0%,
    rgba(28, 26, 23, 0.12) 52%,
    rgba(28, 26, 23, 0) 74%);
  pointer-events: none;
}
/* The book itself is a real (shallow) 3D slab: the flat cover art on the
   front, honest paper edges on the sides. At rest it sits a few degrees
   off square; book.js rights it as it arrives and turns it toward the
   pointer. No-JS / reduced-motion simply hold this rest pose. */
.arrival__book {
  --book-depth: 30px;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(2deg) rotateY(-4deg);
  will-change: transform;
}
.arrival__cover {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  transform: translateZ(calc(var(--book-depth) / 2));
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1) inset,
    0 14px 30px -14px rgba(28, 26, 23, 0.4),
    0 2px 6px rgba(28, 26, 23, 0.12);
}
.arrival__edge {
  position: absolute;
  background: var(--paper-3);
}
.arrival__edge--fore {
  top: 3px;
  bottom: 3px;
  right: calc(var(--book-depth) / -2);
  width: var(--book-depth);
  transform: rotateY(90deg);
  background:
    repeating-linear-gradient(to bottom,
      rgba(28, 26, 23, 0.06) 0 1px,
      rgba(28, 26, 23, 0) 1px 3px),
    var(--paper-3);
}
.arrival__edge--top {
  left: 3px;
  right: 3px;
  top: calc(var(--book-depth) / -2);
  height: var(--book-depth);
  transform: rotateX(90deg);
}
.arrival__edge--bottom {
  left: 3px;
  right: 3px;
  bottom: calc(var(--book-depth) / -2);
  height: var(--book-depth);
  transform: rotateX(90deg);
  background:
    linear-gradient(rgba(28, 26, 23, 0.22), rgba(28, 26, 23, 0.22)),
    var(--paper-3);
}
.arrival__edge--spine {
  top: 0;
  bottom: 0;
  left: calc(var(--book-depth) / -2);
  width: var(--book-depth);
  transform: rotateY(90deg);
  background: var(--ink);
}
.arrival__naming { text-align: center; margin: var(--s-7) 0 0; }
.arrival__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 var(--s-3);
}
.arrival__byline {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
}
.arrival__hook {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.42;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  max-width: 30ch;
  margin: var(--s-7) auto 0;
}
.arrival__body {
  max-width: 58ch;
  margin: var(--s-8) auto 0;
}
.arrival__call {
  font-style: italic;
  color: var(--ink-2);
}
.arrival__scripture {
  margin: var(--s-5) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--gilt);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}
.arrival__scripture p { margin: 0 0 var(--s-1); }
.arrival__scripture cite {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.arrival__row {
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  margin: var(--s-5) 0 0;
}
.arrival__status {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.arrival__more {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .arrival { padding-top: var(--s-8); }
  .arrival__header::after { height: var(--s-7); }
  .arrival__coverwrap { width: min(300px, 82vw); }
  .arrival__book { --book-depth: 23px; }
  .arrival__naming { margin-top: var(--s-6); }
  .arrival__hook { margin-top: var(--s-6); }
  .arrival__body { margin-top: var(--s-7); }
}

/* ----------------------------------------------------------------
   Second title — Marked for Eternity
---------------------------------------------------------------- */
.second {
  background: var(--paper);
  padding: var(--s-8) 0;
}
.second__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .second__grid { grid-template-columns: auto 1fr; gap: var(--s-7); }
}
.cover--small { width: 220px; height: 330px; }
@media (max-width: 759px) {
  .cover--small { margin: 0 auto; }
}
.cover--small .cover__caption { padding: var(--s-5) var(--s-4); }
.cover--small .cover__title { font-size: 1.35rem; }
.second__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 var(--s-2);
}
.second__byline {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}
.second__meta p:last-child { max-width: 52ch; margin-bottom: 0; }

/* Footer additions */
.site-footer__tagline {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0;
}
.site-footer__line {
  font-style: italic;
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0 0 var(--s-3);
}

/* Masthead over the bright break: ink type, still no background.
   .is-solid (paper background, past the hero) always wins. */
.site-header--fixed.is-ink:not(.is-solid) .brand a { color: var(--ink); }
.site-header--fixed.is-ink:not(.is-solid) .brand a:hover { color: var(--ink-2); }
.site-header--fixed.is-ink:not(.is-solid) .site-nav a { color: var(--ink-2); }
.site-header--fixed.is-ink:not(.is-solid) .site-nav a:hover,
.site-header--fixed.is-ink:not(.is-solid) .site-nav a:focus,
.site-header--fixed.is-ink:not(.is-solid) .site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Mobile: the masthead scrolls away with the top of the page (a fixed
   three-row header would eat a third of a phone screen). Footer nav +
   scroll-to-top serve navigation. */
@media (max-width: 719px) {
  .site-header--fixed { position: absolute; }
}

/* Initial CSS state matches the JS-driven one (translate keeps centering) */
html.hero-webgl .hero__resolve { transform: translate(-50%, 26px); }

/* Mobile resolve: lift text clear of the credit line */
@media (max-width: 500px) {
  .hero__resolve { bottom: 15%; }
  .hero__credit { font-size: 0.62rem; max-width: 24ch; right: var(--s-4); bottom: var(--s-3); }
}

/* Books page: closing scripture line inside a blurb */
.catalog .entry .blurb .scripture-line {
  font-style: italic;
  color: var(--ink-2);
  border-left: 3px solid var(--gilt);
  padding-left: var(--s-4);
  margin-top: var(--s-4);
}
.catalog .entry .blurb .scripture-cite {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Books page: tall entries — cover spans title + blurb rows */
@media (min-width: 720px) {
  .catalog .entry__cover { grid-row: 1 / span 2; }
}
