/* ==========================================================================
   Calvin Robbins: design system
   ========================================================================== */

/* Self-hosted so no visitor data is sent to a font provider (SIL Open Font Licence). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f8faf4;
  --bg-elev: #ffffff;
  --bg-soft: #eef3e5;
  --ink: #131a10;
  --ink-2: #2f3a2a;
  --muted: #58644f;
  --line: rgb(19 26 16 / 0.09);
  --line-strong: rgb(19 26 16 / 0.17);
  --accent: #2f6d1a;
  --accent-ink: #ffffff;
  --accent-soft: rgb(47 109 26 / 0.1);
  --tone-1: #d43a3b;
  --tone-2: #3f8a22;
  --tone-3: #1b7fc2;
  --danger: #b42f2f;
  --success: #2f6d1a;
  --glow-1: rgb(130 183 85 / 0.32);
  --glow-2: rgb(185 218 125 / 0.4);
  --glow-3: rgb(97 201 230 / 0.24);
  --disc: radial-gradient(circle at 32% 28%, #f3faea 0%, #dcefc3 55%, #c4e2a0 100%);
  --portrait-bg: linear-gradient(160deg, #e8f4d8 0%, #d6ecbd 55%, #d5eef6 100%);
  --logo-filter: none;
  --shadow-sm: 0 1px 2px rgb(19 26 16 / 0.06);
  --shadow-md: 0 14px 36px -18px rgb(19 26 16 / 0.28);
  --shadow-lg: 0 40px 80px -32px rgb(30 60 15 / 0.4);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --shell: min(1180px, 100% - 2.5rem);
  --wide: min(1040px, 100% - 2.5rem);
  --narrow: min(720px, 100% - 2.5rem);
  --header-h: 4.25rem;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0f09;
    --bg-elev: #111810;
    --bg-soft: #172116;
    --ink: #ebf2e5;
    --ink-2: #c6d2bd;
    --muted: #9aa991;
    --line: rgb(235 242 229 / 0.09);
    --line-strong: rgb(235 242 229 / 0.17);
    --accent: #a3d572;
    --accent-ink: #0a0f09;
    --accent-soft: rgb(163 213 114 / 0.13);
    --tone-1: #ff8582;
    --tone-2: #a3d572;
    --tone-3: #6fcff0;
    --danger: #ff8a7a;
    --success: #a3d572;
    --glow-1: rgb(130 183 85 / 0.18);
    --glow-2: rgb(163 213 114 / 0.12);
    --glow-3: rgb(97 201 230 / 0.12);
    --disc: radial-gradient(circle at 32% 28%, #2b4520 0%, #1d3116 55%, #142410 100%);
    --portrait-bg: linear-gradient(160deg, #1f3318 0%, #263f1c 55%, #15303a 100%);
    --logo-filter: invert(1);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 14px 36px -18px rgb(0 0 0 / 0.75);
    --shadow-lg: 0 40px 80px -32px rgb(0 0 0 / 0.85);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f09;
  --bg-elev: #111810;
  --bg-soft: #172116;
  --ink: #ebf2e5;
  --ink-2: #c6d2bd;
  --muted: #9aa991;
  --line: rgb(235 242 229 / 0.09);
  --line-strong: rgb(235 242 229 / 0.17);
  --accent: #a3d572;
  --accent-ink: #0a0f09;
  --accent-soft: rgb(163 213 114 / 0.13);
  --tone-1: #ff8582;
  --tone-2: #a3d572;
  --tone-3: #6fcff0;
  --danger: #ff8a7a;
  --success: #a3d572;
  --glow-1: rgb(130 183 85 / 0.18);
  --glow-2: rgb(163 213 114 / 0.12);
  --glow-3: rgb(97 201 230 / 0.12);
  --disc: radial-gradient(circle at 32% 28%, #2b4520 0%, #1d3116 55%, #142410 100%);
  --portrait-bg: linear-gradient(160deg, #1f3318 0%, #263f1c 55%, #15303a 100%);
  --logo-filter: invert(1);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 14px 36px -18px rgb(0 0 0 / 0.75);
  --shadow-lg: 0 40px 80px -32px rgb(0 0 0 / 0.85);
}

/* Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
h1 { font-size: clamp(2.75rem, 5vw + 1.25rem, 5rem); }
h2 { font-size: clamp(2.125rem, 2.5vw + 1.25rem, 3.25rem); line-height: 1.05; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
h1 em, h2 em, .gradient-text {
  font-style: italic;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--tone-2), var(--tone-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0; text-wrap: pretty; }

/* Utilities
   ========================================================================== */

.shell { width: var(--shell); margin-inline: auto; }
.wide { width: var(--wide); }
.narrow { width: var(--narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.65rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "";
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--tone-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone-1) 18%, transparent);
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.pill {
  display: inline-flex; align-items: center;
  height: 1.625rem; padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* Buttons & links
   ========================================================================== */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.875rem; padding: 0 1.3rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.9375rem; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn .icon { width: 1rem; height: 1rem; transition: translate 0.25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:hover .icon { translate: 2px 0; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn-sm { height: 2.25rem; padding: 0 0.95rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.link-arrow .icon { width: 1rem; height: 1rem; transition: translate 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { translate: 3px 0; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.icon-btn .icon { width: 1.125rem; height: 1.125rem; }

/* Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 96px;
  }
}
@keyframes header-edge {
  from { border-bottom-color: transparent; background-color: transparent; }
}

.header-inner { display: flex; align-items: center; gap: 0.75rem; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand-logo {
  width: auto; height: 2.1rem;
  filter: var(--logo-filter);
  transition: rotate 0.4s var(--ease);
}
.brand:hover .brand-logo { rotate: -2deg; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.125rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle-bars { position: relative; width: 1rem; height: 0.75rem; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars::before { top: 1.5px; }
.nav-toggle-bars::after { top: calc(100% - 3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Hero backdrops (shared by home hero and page heroes)
   ========================================================================== */

.hero,
.page-hero { position: relative; isolation: isolate; }

.hero::before,
.page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(var(--header-h) * -1) 0 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 70%);
}

.hero::after,
.page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(var(--header-h) * -1) 0 auto;
  height: 560px;
  background:
    radial-gradient(38% 60% at 12% 0%, var(--glow-1), transparent 70%),
    radial-gradient(34% 55% at 88% 6%, var(--glow-3), transparent 70%),
    radial-gradient(40% 50% at 52% 0%, var(--glow-2), transparent 70%);
}
.page-hero::after { height: 420px; opacity: 0.8; }

/* Home hero
   ========================================================================== */

.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 7vw + 0.5rem, 7rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero-tagline {
  max-width: 22ch;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
  line-height: 1.2;
  color: var(--ink-2);
}
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.hero-byline {
  display: flex; align-items: center; gap: 0.85rem;
  max-width: 30rem; margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.35;
  color: var(--muted); text-decoration: none;
}
.hero-byline strong { display: block; color: var(--ink); font-weight: 600; transition: color 0.2s; }
.hero-byline:hover strong { color: var(--accent); }

.avatar {
  position: relative; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  overflow: hidden;
  background: var(--portrait-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Book mockup */
.book-stage {
  position: relative;
  display: grid; place-items: center;
  padding-block: clamp(1rem, 3vw, 2rem);
  isolation: isolate;
}
.book-stage::before {
  content: ""; position: absolute; z-index: -1;
  width: min(92%, 500px); aspect-ratio: 1; border-radius: 50%;
  background: var(--disc);
  box-shadow: 0 0 0 1px var(--line), 0 0 120px 20px var(--glow-2);
}
.book-stage::after {
  content: ""; position: absolute; z-index: -1;
  width: min(118%, 640px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  opacity: 0.6;
}

.book-float { width: min(100%, 520px); perspective: 1400px; }

.mockup {
  width: 100%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
}

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem; line-height: 1.25; white-space: nowrap;
}
.float-chip strong { display: block; font-weight: 600; color: var(--ink); }
.float-chip span span { color: var(--muted); }
.chip-icon {
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f05a5b, #d43a3b);
}
.chip-icon .icon { width: 1rem; height: 1rem; }
.chip-a { top: 14%; left: -2%; }
.chip-b { bottom: 24%; right: -3%; }
.chip-b .chip-icon { background: linear-gradient(135deg, #61c9e6, #1b7fc2); }
.chip-bars { width: 2.25rem; height: 1.25rem; margin-left: 0.25rem; color: var(--accent); }

/* Sections
   ========================================================================== */

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-top: clamp(1rem, 3vw, 2rem); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head > div { max-width: 40rem; }
.section-head .eyebrow { margin-bottom: 1rem; }

/* Topics */
.topic-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.topic-grid > li:nth-child(3n + 1) { --tone: var(--tone-1); }
.topic-grid > li:nth-child(3n + 2) { --tone: var(--tone-2); }
.topic-grid > li:nth-child(3n + 3) { --tone: var(--tone-3); }

.topic-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.topic-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.25rem; }
.topic-icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  transition: transform 0.35s var(--ease);
}
.topic-card:hover .topic-icon { transform: rotate(-6deg) scale(1.06); }
.topic-num { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.topic-card h3 { margin-bottom: 0.5rem; }
.topic-card p { font-size: 0.96875rem; color: var(--muted); }

/* Author */
.author {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.author-photos { position: relative; width: 100%; padding: 0 12% 16% 0; }
.author-photo-main {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.author-photo-main img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.author-photo-alt {
  position: absolute; right: 0; bottom: 0;
  width: 55%; margin: 0; aspect-ratio: 3 / 2; overflow: hidden;
  border: 5px solid var(--bg); border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  rotate: 3deg;
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}
.author-photo-alt img { width: 100%; height: 100%; object-fit: cover; }
.author-photos:hover .author-photo-alt { rotate: 0deg; scale: 1.03; }
.author-chip { top: 7%; left: -5%; margin: 0; }
.author-chip .chip-icon { background: linear-gradient(135deg, #8fc95f, #2f6d1a); }
.author-role { margin-top: 0.75rem; font-weight: 500; color: var(--accent); }
.author-bio { max-width: 40rem; margin-top: 1.25rem; font-size: 1.0625rem; color: var(--ink-2); }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem;
  margin: 2rem 0; padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}
.facts dt { margin-bottom: 0.3rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 0.9375rem; font-weight: 600; }

/* Post cards */
.post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}
.post-card { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.post-card-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease); }
.post-card:hover .post-card-media img { scale: 1.04; }
.post-card-body { display: flex; flex-direction: column; gap: 0.7rem; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--muted);
}
.post-card-title {
  font-family: var(--font-sans);
  font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em;
}
.post-card-title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.post-card:hover .post-card-title a { background-size: 100% 1px; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.post-card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.96875rem; color: var(--muted);
}
.post-card-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.post-card-more .icon { width: 1rem; height: 1rem; transition: translate 0.25s var(--ease); }
.post-card:hover .post-card-more { color: var(--accent); }
.post-card:hover .post-card-more .icon { translate: 3px 0; }

@supports selector(:has(*)) {
  .post-card-title a:focus-visible { outline: none; }
  .post-card:has(.post-card-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
}

.post-card.is-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.post-card.is-featured .post-card-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 2vw + 1.25rem, 3rem); line-height: 1.05; letter-spacing: -0.01em;
}
.post-card.is-featured .post-card-excerpt { -webkit-line-clamp: 4; font-size: 1.0625rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filter {
  display: inline-flex; align-items: center;
  height: 2.375rem; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { background: var(--bg-soft); }
.filter[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.empty-state {
  display: grid; justify-items: start; gap: 1rem;
  padding: 2.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted);
}

/* Call to action: the cover's green, in both themes */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgb(19 26 16 / 0.08); border-radius: 32px;
  background: linear-gradient(135deg, #c3e08c 0%, #a2cc6a 45%, #82b755 100%);
  color: #12200c;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(28% 38% at 22% 30%, rgb(255 255 255 / 0.45), transparent 70%),
    radial-gradient(28% 38% at 80% 72%, rgb(97 201 230 / 0.4), transparent 70%),
    radial-gradient(34% 44% at 60% 30%, rgb(47 109 26 / 0.22), transparent 70%);
  filter: blur(40px);
}
.cta :focus-visible { outline-color: #12200c; }
.cta h2 { max-width: 18ch; margin-inline: auto; color: inherit; }
.cta h2 em { background: none; color: #1f4d10; }
.cta p:not(.eyebrow) { max-width: 34rem; margin: 1.25rem auto 2rem; color: rgb(18 32 12 / 0.8); font-size: 1.0625rem; }
.cta .eyebrow { background: rgb(255 255 255 / 0.5); border-color: rgb(19 26 16 / 0.1); color: #12200c; box-shadow: none; }
.cta .hero-actions { justify-content: center; }
.cta .btn { --btn-bg: #12200c; --btn-fg: #f3f8ec; }
.cta .btn-ghost { --btn-bg: transparent; --btn-fg: #12200c; border-color: rgb(18 32 12 / 0.3); }
.cta .btn-ghost:hover { background: rgb(255 255 255 / 0.3); }

/* Page hero & articles
   ========================================================================== */

.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 1.25rem; }

.photo-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.photo-grid figure {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid figure:first-child img { position: absolute; inset: 0; object-position: 60% 30%; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: scale 0.6s var(--ease); }
.photo-grid figure:hover img { scale: 1.03; }
.photo-grid figcaption {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; color: #fff;
  background: rgb(10 15 9 / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.photo-grid figcaption .icon { width: 0.875rem; height: 0.875rem; }

.speaking { margin-inline: auto; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.speaking h2 { font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem); }
.speaking-intro { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--muted); }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0 0 1.75rem 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 0.45rem;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-when {
  padding-top: 0.15rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.timeline-event { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.timeline-detail { margin-top: 0.15rem; font-size: 0.9375rem; color: var(--muted); }

.page-body { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-promo { margin-inline: auto; padding-bottom: clamp(3rem, 6vw, 5rem); }

.progress {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--tone-1), var(--tone-2), var(--tone-3));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 1rem; height: 1rem; transition: translate 0.25s var(--ease); }
.crumbs a:hover .icon { translate: -3px 0; }

.article-header h1 { max-width: none; font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); line-height: 1.02; }
.article-dek { margin-top: 1.25rem; font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.5; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 2rem; font-size: 0.9375rem; line-height: 1.35; }
.byline strong { display: block; font-weight: 600; }
.byline-meta { font-size: 0.875rem; color: var(--muted); }

.article-figure { margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.article-figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.article-end { margin-inline: auto; padding-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Prose */
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose h1,
.prose h2 {
  margin-top: 2.2em; margin-bottom: -0.35em;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.02em;
}
.prose h3 { margin-top: 1.9em; margin-bottom: -0.5em; font-size: 1.1875rem; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose blockquote {
  margin-inline: 0; padding: 1.1rem 1.35rem;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  font-size: 1rem; color: var(--ink-2);
}
.prose blockquote > * + * { margin-top: 0.75em; }
.prose blockquote p { margin: 0; }
.prose hr { margin-block: 3em; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--bg-soft); font-size: 0.875em; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Book promo */
.book-promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
}
.book-promo::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; z-index: -1;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
}
.book-promo img {
  width: clamp(130px, 22vw, 180px);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}
.book-promo:hover img { rotate: -2deg; scale: 1.04; }
.book-promo .eyebrow { margin-bottom: 0.85rem; }
.book-promo-title { font-family: var(--font-serif); font-size: 2rem; line-height: 1.05; color: var(--ink); }
.book-promo-text { margin: 0.5rem 0 1.25rem; color: var(--muted); }

/* Contact
   ========================================================================== */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.contact-aside h2 { font-size: clamp(1.75rem, 1.5vw + 1.25rem, 2.25rem); }
.check-list { list-style: none; display: grid; gap: 0.85rem; margin: 1.5rem 0 2rem; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--ink-2); }
.check-list .icon {
  width: 1.5rem; height: 1.5rem; padding: 0.25rem;
  border-radius: 50%; color: var(--accent); background: var(--accent-soft);
}
.contact-alt {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.9375rem; color: var(--muted);
}
.contact-alt a { color: var(--ink); font-weight: 500; }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
}
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field input:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.field input:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--danger); }
.field-error .icon { width: 1rem; height: 1rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.25rem; }
.form-note { max-width: 24rem; font-size: 0.8125rem; color: var(--muted); }
.form-note a { color: inherit; }

.alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1.5rem; padding: 1rem 1.15rem;
  border: 1px solid; border-radius: 14px;
  font-size: 0.9375rem;
}
.alert .icon { margin-top: 0.1rem; }
.alert-success { color: var(--success); background: color-mix(in srgb, var(--success) 9%, transparent); border-color: color-mix(in srgb, var(--success) 28%, transparent); }
.alert-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 404 */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.error-page .shell { display: grid; justify-items: center; }
.error-code {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(6rem, 18vw, 11rem); line-height: 0.9;
}
.error-page h1 { margin-top: 1rem; font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); }
.error-page .lede { margin: 1.25rem auto 2rem; }
.error-page .hero-actions { justify-content: center; }

/* Footer
   ========================================================================== */

.site-footer {
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2.5rem; }
.footer-about p { max-width: 22rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-heading { margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; font-size: 0.9375rem; }
.footer-links a,
.linkish {
  padding: 0; border: 0; background: none;
  font: inherit; text-align: left; text-decoration: none;
  color: var(--muted); cursor: pointer;
  transition: color 0.2s;
}
.footer-links a:hover,
.linkish:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.to-top { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.to-top:hover { color: var(--ink); }
.to-top .icon { width: 1rem; height: 1rem; transition: translate 0.25s var(--ease); }
.to-top:hover .icon { translate: 0 -2px; }
.footer-wordmark-wrap { container-type: inline-size; }
.footer-wordmark {
  margin-bottom: -0.14em;
  font-family: var(--font-serif);
  font-size: 13vw;
  font-size: 16.5cqi;
  line-height: 0.85; letter-spacing: -0.03em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--line-strong), transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* Consent banner
   ========================================================================== */

.consent-banner {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 80;
  width: min(26rem, 100% - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}
.consent-title { margin-bottom: 0.35rem; font-weight: 600; }
.consent-text { font-size: 0.875rem; color: var(--muted); }
.consent-text a { color: var(--ink); }
.consent-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.consent-actions .btn { flex: 1; }

/* Motion
   ========================================================================== */

@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes unhide { to { opacity: 1; } }
@keyframes float { 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @view-transition { navigation: auto; }

  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.3s; }
  .book-stage { animation: rise 1s var(--ease) 0.15s both; }
  .book-float { animation: float 7s ease-in-out infinite; }
  .float-chip { animation: float 6s ease-in-out infinite; }
  .chip-b { animation-delay: -3s; }

  .js [data-reveal]:not(.is-visible) { opacity: 0; }
  .js:not(.reveal-ready) [data-reveal] { animation: unhide 0s 2.5s forwards; }
  .js [data-reveal].is-visible { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

  .consent-banner:not([hidden]) { animation: rise 0.5s var(--ease) both; }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .topic-grid,
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 0.75rem; }

  .js .site-nav {
    position: absolute; inset: 100% 0 auto;
    padding: 0.75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; translate: 0 -0.5rem;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .js .site-nav a { padding: 0.85rem 1rem; border-radius: 14px; font-size: 1.0625rem; }

  .hero-grid,
  .author,
  .contact-grid,
  .footer-top,
  .post-card.is-featured { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-top: clamp(2rem, 6vw, 3rem); }
  .author-photos { max-width: 480px; }
}

@media (max-width: 600px) {
  .topic-grid,
  .post-grid,
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .facts > div { display: flex; justify-content: space-between; gap: 1rem; }
  .facts dt { margin: 0; }
  .facts dd { text-align: right; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-promo { grid-template-columns: minmax(0, 1fr); }
  .float-chip { font-size: 0.75rem; padding: 0.45rem 0.7rem 0.45rem 0.45rem; }
  .chip-icon { width: 1.75rem; height: 1.75rem; }
  .chip-bars { display: none; }
  .topic-top { margin-bottom: 1.5rem; }
  .author-chip { left: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .consent-banner { left: 0.75rem; bottom: 0.75rem; width: calc(100% - 1.5rem); }
}

@media (max-width: 420px) {
  .brand-logo { height: 1.7rem; }
  .header-buy { padding-inline: 0.75rem; }
  .header-actions { gap: 0.35rem; }
}
