/* Self-hosted fonts — same-origin, no external round-trip. */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 500;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 500;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/fraunces-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* =============================================================
   Yolanda Kinlock — Author Platform
   Design system: deep navy + warm gold, editorial/regal.
   Motion & spacing rules live in /docs/kinetic-motion.md.
   Hand-authored. No framework. Compositor-only animation.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Navy scale */
  --navy-900: #060d1a;
  --navy-850: #081120;
  --navy-800: #0a1526;
  --navy-700: #0f1e36;
  --navy-600: #16294a;
  --navy-500: #1e365e;

  /* Gold */
  --gold:        #c9a24b;
  --gold-light:  #e4c97e;
  --gold-deep:   #a5822f;
  --gold-soft:   rgba(201, 162, 75, 0.14);
  --gold-line:   rgba(201, 162, 75, 0.35);

  /* Light / paper */
  --cream:  #f6f2e9;
  --paper:  #fbf9f4;
  --sand:   #efe9db;

  /* Text */
  --ink:        #0c1626;   /* on light */
  --ink-soft:   #3c4a5f;
  --on-dark:    #f3f1ea;
  --on-dark-mut:#a9b6c9;
  --on-dark-dim:#7e8da3;

  /* Semantic */
  --bg:            var(--navy-800);
  --surface:       var(--navy-700);
  --border-dark:   rgba(255, 255, 255, 0.08);
  --border-light:  rgba(12, 22, 38, 0.12);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 8pt spacing scale */
  --s-1: 0.5rem;   /* 8  */
  --s-2: 1rem;     /* 16 */
  --s-3: 1.5rem;   /* 24 */
  --s-4: 2rem;     /* 32 */
  --s-5: 3rem;     /* 48 */
  --s-6: 4rem;     /* 64 */
  --s-7: 6rem;     /* 96 */
  --s-8: 8rem;     /* 128 */

  --maxw: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --shadow-cover: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-dark);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy-900); }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h2.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.02;
}
p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--on-dark-mut);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.gold { color: var(--gold-light); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-5); } }

.section { padding-block: clamp(var(--s-6), 11vw, var(--s-8)); }
.section-sm { padding-block: var(--s-6); }

/* Alternating grounds */
.bg-navy    { background: var(--navy-800); color: var(--on-dark); }
.bg-navy-d  { background: var(--navy-900); color: var(--on-dark); }
.bg-paper   { background: var(--paper); color: var(--ink); }
.bg-cream   { background: var(--cream); color: var(--ink); }
.bg-paper .lead, .bg-cream .lead { color: var(--ink-soft); }
.bg-paper .eyebrow, .bg-cream .eyebrow { color: var(--gold-deep); }
.bg-paper .eyebrow::before, .bg-cream .eyebrow::before,
.bg-paper .eyebrow.center::after, .bg-cream .eyebrow.center::after { background: var(--gold-deep); }

.divider-gold { width: 56px; height: 3px; background: var(--gold); border: 0; margin: var(--s-3) 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(201,162,75,0.7); }
.btn-gold:active { transform: scale(0.98) translateY(0); }

.btn-ghost {
  --btn-fg: var(--on-dark);
  background: transparent;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(0.98) translateY(0); }

.btn-ink { --btn-fg: var(--paper); background: var(--navy-800); }
.btn-ink:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ink:active { transform: scale(0.98) translateY(0); }

.btn-outline-ink {
  --btn-fg: var(--ink);
  background: transparent;
  border-color: rgba(12,22,38,0.25);
}
.btn-outline-ink:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }
.btn-outline-ink:active { transform: scale(0.98) translateY(0); }

.link-gold {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--gold-light);
  letter-spacing: 0.01em;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.bg-paper .link-gold, .bg-cream .link-gold { color: var(--gold-deep); }
.link-gold svg { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.link-gold:hover { gap: 0.85em; }
.link-gold:hover svg { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 17, 32, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border-dark);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; }
.brand-mark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.02em; color: var(--on-dark);
}
.brand-mark .mono { color: var(--gold-light); }
.nav-links { display: none; align-items: center; gap: var(--s-4); }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--on-dark-mut); position: relative; padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold); transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--on-dark); }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 0; padding: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--on-dark); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: rgba(6, 13, 26, 0.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5) var(--s-3);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav[data-open="true"] + .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--on-dark);
  padding-block: var(--s-1); border-bottom: 1px solid var(--border-dark);
}
.mobile-menu a.gold { color: var(--gold-light); }
.mobile-menu .btn { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ---------- Ambient background glow ----------
   Soft radial gradients, not blurred solid layers. A radial-gradient with a
   transparent falloff is already soft, so we skip the expensive filter:blur
   and the continuous transform animation that made scrolling feel heavy.
   Result: the same regal glow at near-zero rendering cost. */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; }
.blob-1 { width: 52vw; height: 52vw; top: -16vw; right: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(201,162,75,0.26), transparent 62%); }
.blob-2 { width: 50vw; height: 50vw; bottom: -18vw; left: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(30,54,94,0.55), transparent 62%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 132px; padding-bottom: clamp(var(--s-6), 9vw, var(--s-8)); }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero h1 { margin-top: var(--s-3); }
.hero h1 .line2 { color: var(--gold-light); display: block; }
.hero .lead { margin-top: var(--s-3); max-width: 34rem; }
.hero .btn-row { margin-top: var(--s-4); }
.hero-meta {
  margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3);
  font-size: 0.85rem; color: var(--on-dark-mut); letter-spacing: 0.02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.hero-visual { position: relative; justify-self: center; width: min(420px, 82vw); }
.hero-portrait {
  position: relative; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border: 1px solid var(--border-dark);
}
.hero-frame {
  position: absolute; inset: -14px; border: 1px solid var(--gold-line);
  border-radius: 12px; z-index: -1;
}
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; z-index: 3;
  background: var(--navy-900); border: 1px solid var(--gold-line);
  border-radius: 8px; padding: 0.85rem 1.1rem; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 0.8rem; max-width: 220px;
}
.hero-badge img { width: 44px; height: 66px; border-radius: 3px; object-fit: cover; box-shadow: var(--shadow-cover); }
.hero-badge .t { font-size: 0.72rem; color: var(--on-dark-mut); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge .n { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); }
  .hero-visual { justify-self: end; width: min(400px, 40vw); }
}

/* ---------- Marquee / trust strip ---------- */
.trust {
  border-block: 1px solid var(--border-dark);
  background: var(--navy-850);
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-2) var(--s-5); padding-block: var(--s-3);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-mut);
}
.trust-inner strong { color: var(--gold-light); font-weight: 600; }

/* ---------- Featured release ---------- */
.featured-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: center;
}
.featured-cover-wrap { perspective: 1400px; justify-self: center; width: min(340px, 76vw); }
.featured-cover {
  border-radius: 6px; box-shadow: var(--shadow-cover);
  transition: transform 0.4s var(--ease); transform-style: preserve-3d; will-change: transform;
}
.featured-copy .meta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3);
  font-size: 0.85rem; color: var(--on-dark-mut); }
.featured-copy .meta-row b { color: var(--on-dark); font-weight: 600; }
.synopsis { margin-top: var(--s-3); }
.synopsis p + p { margin-top: var(--s-2); }
@media (min-width: 900px) {
  .featured-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-7); }
  .featured-cover-wrap { justify-self: start; }
}

/* ---------- Works grid ---------- */
.works-grid {
  display: grid; gap: var(--s-4) var(--s-3);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--s-6);
}
@media (min-width: 720px) { .works-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(5, 1fr); } }

.book { display: flex; flex-direction: column; }
.book-cover-wrap { perspective: 1000px; }
.book-cover {
  width: 100%; border-radius: 5px; box-shadow: var(--shadow-cover);
  transition: transform 0.35s var(--ease); will-change: transform;
  aspect-ratio: 2 / 3; object-fit: cover;
}
.book:hover .book-cover { transform: translateY(-6px) rotateX(4deg); }
.book-title { font-family: var(--font-display); font-size: 1.15rem; margin-top: var(--s-2); line-height: 1.15; }
.book-sub { font-size: 0.82rem; color: var(--on-dark-mut); margin-top: 0.25rem; }
.bg-paper .book-sub { color: var(--ink-soft); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 760px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex; flex-direction: column;
  background: var(--navy-700); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: var(--s-4);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
  height: 100%;
}
.post:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: var(--shadow-soft); }
.post .cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.post h3 { font-size: 1.4rem; margin-top: var(--s-2); line-height: 1.12; }
.post p { color: var(--on-dark-mut); margin-top: var(--s-2); font-size: 0.98rem; flex: 1; }
.post .link-gold { margin-top: var(--s-3); font-size: 0.9rem; }

/* On paper */
.bg-paper .post, .bg-cream .post { background: #fff; border-color: var(--border-light); }
.bg-paper .post p, .bg-cream .post p { color: var(--ink-soft); }
.bg-paper .post .cat, .bg-cream .post .cat { color: var(--gold-deep); }

/* ---------- Quotes / social proof ---------- */
.quotes-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 820px) { .quotes-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  border-left: 2px solid var(--gold-line); padding: var(--s-1) 0 var(--s-1) var(--s-3);
  position: relative;
}
.quote .mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.5; color: var(--gold);
  position: absolute; top: 0.4rem; left: -0.15rem; opacity: 0.4; }
.quote blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  line-height: 1.35; color: var(--ink); }
.bg-navy .quote blockquote, .bg-navy-d .quote blockquote { color: var(--on-dark); }
.quote cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.bg-navy .quote cite, .bg-navy-d .quote cite { color: var(--gold-light); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
.about-portrait { border-radius: 8px; box-shadow: var(--shadow-soft); aspect-ratio: 4/5;
  object-fit: cover; object-position: center 18%; border: 1px solid var(--border-light); }
.about-portrait-wrap { position: relative; width: min(400px, 82vw); justify-self: center; }
.about-portrait-wrap::before { content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold-line); border-radius: 10px; z-index: -1; }
.about-body p + p { margin-top: var(--s-2); }
.about-body { color: var(--ink-soft); }
.bg-navy .about-body, .bg-navy-d .about-body { color: var(--on-dark-mut); }
.about-cred { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4);
  padding-top: var(--s-4); border-top: 1px solid var(--border-light); }
.bg-navy .about-cred, .bg-navy-d .about-cred { border-top-color: var(--border-dark); }
.cred { }
.cred .k { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-deep); line-height: 1; }
.bg-navy .cred .k, .bg-navy-d .cred .k { color: var(--gold-light); }
.cred .v { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }
.bg-navy .cred .v, .bg-navy-d .cred .v { color: var(--on-dark-mut); }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; color: var(--gold-deep);
  margin-top: var(--s-4); }
.bg-navy .signature, .bg-navy-d .signature { color: var(--gold-light); }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-7); }
  .about-portrait-wrap { justify-self: start; }
}

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--gold-line); border-radius: 16px;
  padding: clamp(var(--s-5), 6vw, var(--s-7));
}
.newsletter .ambient .blob { opacity: 0.28; }
.newsletter-inner { position: relative; z-index: 2; max-width: 640px; }
.newsletter h2 { color: var(--on-dark); }
.newsletter .lead { color: var(--on-dark-mut); margin-top: var(--s-2); }
.signup-form { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 0.95rem 1.1rem; font-size: 1rem; color: var(--on-dark);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.signup-form input::placeholder { color: var(--on-dark-dim); }
.signup-form input:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.signup-note { margin-top: var(--s-2); font-size: 0.82rem; color: var(--on-dark-dim); }
.signup-alt { margin-top: var(--s-3); font-size: 0.9rem; color: var(--on-dark-mut); }
.form-msg { margin-top: var(--s-2); font-size: 0.92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--gold-light); }
.form-msg.err { color: #f0a5a5; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-4); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); border-top: 1px solid var(--border-dark);
  padding-block: var(--s-6) var(--s-4); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand-mark { font-size: 1.5rem; }
.footer p { color: var(--on-dark-mut); font-size: 0.92rem; margin-top: var(--s-2); max-width: 30ch; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-light); font-weight: 600; margin-bottom: var(--s-2); }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { color: var(--on-dark-mut); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer ul a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-size: 0.82rem; color: var(--on-dark-dim); }
.social-row { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.social-row a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dark); border-radius: 50%; color: var(--on-dark-mut);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-row a:hover { color: var(--gold-light); border-color: var(--gold-line); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-top: 148px; padding-bottom: var(--s-6); }
.page-hero h1 { margin-top: var(--s-2); font-size: clamp(2.5rem, 6vw, 4rem); }
.page-hero .lead { margin-top: var(--s-3); max-width: 46rem; }
.breadcrumb { font-size: 0.82rem; color: var(--on-dark-mut); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Book detail rows (books page) ---------- */
.book-row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: center;
  padding-block: var(--s-6); border-bottom: 1px solid var(--border-light); }
.bg-navy .book-row, .bg-navy-d .book-row { border-bottom-color: var(--border-dark); }
.book-row:last-child { border-bottom: 0; }
.book-row .cover-wrap { perspective: 1200px; width: min(280px, 66vw); justify-self: center; }
.book-row .cover-wrap img { border-radius: 6px; box-shadow: var(--shadow-cover); width: 100%; }
.book-row h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.book-row .meta-row { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-2);
  font-size: 0.85rem; color: var(--ink-soft); }
.bg-navy .book-row .meta-row, .bg-navy-d .book-row .meta-row { color: var(--on-dark-mut); }
.book-row .meta-row b { color: var(--gold-deep); }
.bg-navy .book-row .meta-row b, .bg-navy-d .book-row .meta-row b { color: var(--gold-light); }
.book-row .desc { margin-top: var(--s-3); color: var(--ink-soft); }
.bg-navy .book-row .desc, .bg-navy-d .book-row .desc { color: var(--on-dark-mut); }
.book-row .desc h4 { font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--ink); margin-top: var(--s-3); }
.bg-navy .book-row .desc h4, .bg-navy-d .book-row .desc h4 { color: var(--on-dark); }
.book-row .btn-row { margin-top: var(--s-4); }
@media (min-width: 820px) {
  .book-row { grid-template-columns: 0.6fr 1.4fr; gap: var(--s-7); }
  .book-row.reverse { grid-template-columns: 1.4fr 0.6fr; }
  .book-row.reverse .cover-wrap { order: 2; justify-self: end; }
  .book-row .cover-wrap { justify-self: start; }
}

/* ---------- Reveal on scroll (CSS scroll-driven — no JS) ----------
   Content is fully visible by default, so the first paint is complete and
   nothing waits on JavaScript. Where the browser supports scroll-driven
   animations, elements fade/rise in as they enter the viewport, driven
   entirely by the compositor and tied to scroll position (never a timer),
   which removes the blank-then-populate flash and the laggy late reveals.
   Browsers without support (e.g. Safari) simply show content immediately. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      transform: translate3d(0, 22px, 0);
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
    /* Subtle choreography for grouped items (grid cards, columns). */
    .reveal.d1 { animation-range: entry 2% cover 27%; }
    .reveal.d2 { animation-range: entry 4% cover 30%; }
    .reveal.d3 { animation-range: entry 6% cover 33%; }
    .reveal.d4 { animation-range: entry 8% cover 36%; }
  }
}
@keyframes reveal-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.max-46 { max-width: 46rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--gold);
  color: var(--navy-900); padding: 0.6rem 1rem; border-radius: 0 0 6px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Mirrored article (prose) ---------- */
.article { max-width: 44rem; }
.article > *:first-child { margin-top: 0; }
.article p { margin-top: var(--s-3); color: var(--ink-soft); font-size: 1.15rem; line-height: 1.78; }
.article h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15; margin-top: var(--s-5); color: var(--ink); }
.article h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-top: var(--s-4); color: var(--ink); }
.article blockquote { border-left: 3px solid var(--gold); padding: var(--s-1) 0 var(--s-1) var(--s-3);
  margin: var(--s-4) 0; font-family: var(--font-display); font-style: italic; font-size: 1.4rem;
  line-height: 1.4; color: var(--ink); }
.article blockquote p { color: inherit; font-size: inherit; margin-top: 0; }
.article ul, .article ol { margin-top: var(--s-3); padding-left: 1.3em; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }
.article li { margin-top: 0.4rem; }
.article img { border-radius: 10px; margin: var(--s-4) 0; box-shadow: var(--shadow-soft); }
.article a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s var(--ease); }
.article a:hover { color: var(--gold); }
.article strong { color: var(--ink); font-weight: 700; }
.article em { font-style: italic; }
.article hr { border: 0; border-top: 1px solid var(--border-light); margin: var(--s-5) 0; }
.post-lead-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow-soft); margin-bottom: var(--s-4); }
.post .post-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px;
  margin-bottom: var(--s-3); }
.post time { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.bg-navy .post time, .bg-navy-d .post time { color: var(--on-dark-mut); }

/* ---------- Hero inline capture ---------- */
.hero-sub { margin-top: var(--s-2); font-size: 0.85rem; color: var(--on-dark-mut); letter-spacing: 0.01em; }
.hero-sub a { color: var(--gold-light); font-weight: 600; }
.hero-sub a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ambient grain (kills the flat "gradient" look) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reading progress bar (scroll-driven, no JS) ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-progress linear; animation-timeline: scroll(root block); }
}
@keyframes read-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

/* ---------- Blog grid: composed at any count ---------- */
/* Essays fill the row; dispatch cards stay capped so a short feed still
   reads as deliberate cards rather than stretched banners. */
#essay-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
#rss-posts  { grid-template-columns: repeat(auto-fill, minmax(300px, 380px)); justify-content: start; }

/* ---------- Nav: "live" marker on Dispatches ---------- */
.nav-links a.live { position: relative; }
.nav-links a.live::before {
  content: ""; position: absolute; top: 0.15rem; right: -0.7rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,162,75,0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-links a.live::before { animation: live-pulse 2.8s ease-out infinite; }
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,75,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}
.nav-links { gap: var(--s-3); }
@media (min-width: 1000px) { .nav-links { gap: var(--s-4); } }

/* Essay/dispatch card titles keep the serif voice */
.post h3 a { color: inherit; }
.post h3 a:hover { color: var(--gold-deep); }
