/* ==========================================================================
   Chancellor Aven — site stylesheet
   Palette and type carried over from the original brand:
   charcoal #0F1113 · bone #F3F0EA · Cormorant Garamond · Inter
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f1113;
  --ink-2: #16181b;
  --ink-3: #1e2125;
  --bone: #f3f0ea;
  --bone-86: rgba(243, 240, 234, 0.86);
  --bone-72: rgba(243, 240, 234, 0.72);
  --bone-56: rgba(243, 240, 234, 0.58);
  --line: rgba(243, 240, 234, 0.14);
  --line-strong: rgba(243, 240, 234, 0.32);
  --graphite: #484949;
  --stone: #6b6a66;
  --error: #f0a898;

  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 144px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--bone); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; 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: var(--gutter); top: -100px; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 10px 16px; font-size: 0.875rem;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-56);
}
.display, h1, .h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.55rem + 3.9vw, 4.9rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.45rem + 2.1vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--bone-86);
  font-weight: 350;
}
.muted { color: var(--bone-72); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-fg: var(--bone);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--btn-bd);
  color: var(--btn-fg);
  font-size: 0.875rem; font-weight: 450; letter-spacing: 0.06em;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid:hover { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.8125rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 450; letter-spacing: 0.04em;
  padding-block: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.link-arrow:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow:hover svg { transform: translateX(4px); }

.prose a, .text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .3s;
}
.prose a:hover, .text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
/* Blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 17, 19, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
body.nav-open .site-header::before { background: var(--ink); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); list-style: none; padding: 0; }
.nav-list a:not(.btn) {
  position: relative;
  font-size: 0.875rem; letter-spacing: 0.04em; color: var(--bone-72);
  padding-block: 6px;
  transition: color .3s;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-list a:not(.btn):hover, .nav-list a[aria-current="page"] { color: var(--bone); }
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  align-items: center; gap: 12px;
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  min-height: 44px; padding: 0 2px;
}
.nav-toggle__icon { position: relative; width: 22px; height: 10px; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--ink);
    padding: 40px var(--gutter) 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
    overflow-y: auto;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list li { border-bottom: 1px solid var(--line); }
  .js .nav-list a:not(.btn) {
    display: block; padding: 20px 0;
    font-family: var(--serif); font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1.1; color: var(--bone);
  }
  .js .nav-list a:not(.btn)::after { display: none; }
  .js .nav-list li:last-child { border: 0; padding-top: 32px; }
  .js .nav-list .btn { width: 100%; }
  .site-nav__meta { display: block !important; margin-top: 40px; font-size: 0.8125rem; color: var(--bone-56); }
  /* No-JS fallback: nav wraps under the wordmark */
  .no-js .site-header { height: auto; position: static; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: 16px; }
  .no-js .nav-list { flex-wrap: wrap; gap: 8px 20px; }
}
.site-nav__meta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--raised { background: var(--ink-2); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { text-align: center; justify-items: center; }
.section-head p { max-width: 58ch; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.hero__content {
  padding: clamp(36px, 9vw, 96px) var(--gutter) clamp(56px, 9vw, 96px);
  display: grid; align-content: center; gap: 28px;
  max-width: calc(var(--wrap) / 2 + var(--gutter));
}
.hero__content .display { font-size: clamp(2.75rem, 1.4rem + 3.4vw, 4.5rem); }
.hero__copy { display: grid; gap: 18px; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 12px; }
.hero__media { position: relative; order: -1; background: var(--ink-2); height: min(92vw, 540px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,17,19,0) 60%, rgba(15,17,19,.55) 100%);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(calc(100svh - var(--header-h)), 900px);
  }
  .hero__content { justify-self: end; width: 100%; padding-right: clamp(32px, 5vw, 80px); }
  .hero__media { order: 0; height: 100%; min-height: 620px; }
  .hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__media img { object-position: 50% 72%; }
  .hero__media::after { background: linear-gradient(90deg, rgba(15,17,19,.9) 0%, rgba(15,17,19,0) 22%); }
}

/* Portrait placeholder (shown only until a headshot file exists) */
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 60% 30%, #25282c 0%, #121416 60%, #0b0c0d 100%);
  font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); color: rgba(243,240,234,.08); letter-spacing: -0.04em;
}

/* ---------- Industries ---------- */
.industries { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .industries { grid-template-columns: 5fr 7fr; align-items: start; } }
.industries__head { display: grid; gap: 20px; }
.industry-groups { display: grid; gap: 40px; }
@media (min-width: 560px) { .industry-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.group-label { display: block; margin-bottom: 16px; line-height: 1.4; }
.industry-list { display: grid; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.industry-list li { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 350; }

/* ---------- Principle cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bone); color: var(--ink);
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3vw, 40px);
  min-height: 100%;
}
@media (min-width: 900px) { .card { min-height: 420px; } }
.card h3 { color: var(--ink); }
.card p { color: var(--graphite); font-size: 0.975rem; line-height: 1.65; font-weight: 400; }
.card .link-arrow { color: var(--ink); margin-top: auto; padding-top: 12px; align-self: flex-start; }
.card .link-arrow::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card:has(.link-arrow:hover) { box-shadow: 0 0 0 1px var(--bone), 0 30px 60px -30px rgba(0,0,0,.8); }
.card { transition: box-shadow .45s var(--ease), transform .45s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .card:has(.link-arrow:hover) { transform: translateY(-4px); } }

/* ---------- Quote / thesis ---------- */
.thesis { display: grid; gap: 36px; justify-items: start; max-width: 1040px; }
.thesis blockquote p {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.thesis blockquote p::before { content: "\201C"; margin-left: -0.42em; color: var(--bone-56); }
.thesis blockquote p::after { content: "\201D"; color: var(--bone-56); }
.thesis figure { display: grid; gap: 28px; }
.thesis figcaption { font-size: 0.875rem; color: var(--bone-72); letter-spacing: 0.02em; }
.thesis figcaption cite { font-style: normal; color: var(--bone); }

/* ---------- CTA band ---------- */
.cta { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: 7fr 5fr; } .cta__actions { justify-self: end; } }
.cta h2 { max-width: 16ch; }
.cta p { max-width: 48ch; margin-top: 20px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head__inner { display: grid; gap: 24px; justify-items: start; }
.page-head__inner > * { max-width: 900px; }
.page-head .lead { max-width: 52ch; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 0.8125rem; color: var(--bone-56); letter-spacing: 0.02em; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--bone); }
.breadcrumbs [aria-current="page"] { color: var(--bone-72); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.sticky-col { align-self: start; }
@media (min-width: 900px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 40px); } }

/* ---------- About ---------- */
.about-portrait { position: relative; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.stack { display: grid; gap: 22px; }
.stack-lg { display: grid; gap: clamp(40px, 5vw, 64px); }
.stack-lg > .section-head { margin-bottom: 0; }

.def-list { display: grid; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.def-list > li { display: grid; gap: 10px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .def-list > li { grid-template-columns: 4fr 8fr; gap: 40px; } }
.def-list h3 { font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.8rem); }
.def-list p { color: var(--bone-72); }
.about-quote { margin-top: clamp(40px, 5vw, 56px); padding-left: 24px; border-left: 1px solid var(--line-strong); display: grid; gap: 14px; }
.about-quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--bone); }
.about-quote figcaption { font-size: 0.8125rem; color: var(--bone-56); letter-spacing: 0.02em; }

/* ---------- Philosophy page ---------- */
.principle { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.principle:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .principle { grid-template-columns: 1fr 7fr 4fr; gap: 48px; } }
.principle__num { font-family: var(--serif); font-style: italic; color: var(--bone-56); font-size: 1.25rem; line-height: 1.4; }
.principle__body { display: grid; gap: 20px; }
.principle__body p { color: var(--bone-86); font-size: 1.0625rem; max-width: 56ch; }
.principle__aside { border-left: 1px solid var(--line); padding-left: 24px; align-self: start; }
.principle__aside p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--bone); }
.principle__aside figcaption { display: block; margin-top: 14px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-56); }

.framework { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .framework--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .framework--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.framework__item { border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; background: var(--ink); }
.framework__item p { color: var(--bone-72); font-size: 0.975rem; }
.framework__item .eyebrow { color: var(--bone-56); }

/* ---------- Insights list ---------- */
.post-list { list-style: none; padding: 0; border-top: 1px solid var(--line); margin-bottom: 40px; }
.post-item { position: relative; display: grid; gap: 18px; padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .post-item { grid-template-columns: 3fr 7fr 2fr; gap: 48px; align-items: start; } }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8125rem; color: var(--bone-56); letter-spacing: 0.02em; }
.post-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.post-item h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); }
.post-item h2 a::after { content: ""; position: absolute; inset: 0; }
.post-item p { color: var(--bone-72); margin-top: 16px; max-width: 60ch; }
.post-item .link-arrow { justify-self: start; }
@media (min-width: 900px) { .post-item .link-arrow { justify-self: end; margin-top: 12px; } }
.post-item:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; text-decoration-color: var(--line-strong); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(48px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.article-head__inner { max-width: 880px; display: grid; gap: 28px; }
@media (min-width: 1080px) { .article-head__inner { margin-left: 336px; } }
.byline { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; color: var(--bone-72); }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ink-3); flex: none; }
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.byline__text { display: grid; gap: 2px; line-height: 1.4; }
.byline__name { color: var(--bone); font-weight: 500; }

.article-layout { display: grid; gap: 48px; padding-bottom: var(--section); }
@media (min-width: 1080px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 96px; } }
.article-frame { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }

.toc { font-size: 0.875rem; }
.toc .eyebrow { margin-bottom: 18px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--bone-56); transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--bone); }
.toc a.is-active { color: var(--bone); border-left-color: var(--bone); }
@media (max-width: 1079px) { .toc { border: 1px solid var(--line); padding: 24px; } }

.prose { max-width: 68ch; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.78; color: var(--bone-86); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  margin-top: 2.4em; margin-bottom: -0.2em;
  color: var(--bone);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 .anchor { opacity: 0; margin-left: 0.3em; font-size: 0.6em; color: var(--bone-56); text-decoration: none; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h2 .anchor:focus-visible { opacity: 1; }
.prose strong { color: var(--bone); font-weight: 550; }
.prose em { font-family: var(--serif); font-size: 1.14em; font-weight: 500; letter-spacing: -0.005em; color: var(--bone); }
.prose .first::first-line { color: var(--bone); }
.prose .closing {
  margin-top: 2.2em; padding-top: 1.6em; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--bone);
}

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--bone-72); }
.share__label { margin-right: 8px; }
.share button[data-copied="true"] { background: var(--bone); color: var(--ink); }

.author-card { display: grid; gap: 24px; margin-top: 56px; padding: clamp(28px, 4vw, 44px); background: var(--bone); color: var(--ink); max-width: 68ch; }
@media (min-width: 640px) { .author-card { grid-template-columns: 96px 1fr; align-items: start; } }
.author-card__img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #d9d4ca; }
.author-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.author-card h2 { font-size: 1.75rem; color: var(--ink); }
.author-card p { color: var(--graphite); margin-top: 10px; font-size: 0.975rem; }
.author-card .link-arrow { color: var(--ink); margin-top: 18px; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 28px; }
.form-row { display: grid; gap: 28px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; }
.field label, .field legend { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--bone-72); }
.field .req { color: var(--bone-56); }
.field .hint { font-size: 0.8125rem; color: var(--bone-56); }
.input {
  width: 100%;
  min-height: 52px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0;
  font-size: 1.0625rem; font-weight: 350;
  color: var(--bone);
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(243, 240, 234, 0.34); }
.input:hover { border-bottom-color: var(--bone-56); }
.input:focus { outline: none; border-bottom-color: var(--bone); }
.input:focus-visible { outline: 1px solid var(--bone); outline-offset: 6px; }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.6; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath stroke='%23F3F0EA' stroke-opacity='.7' d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px;
}
select.input option { background: var(--ink); color: var(--bone); }
.field[data-invalid="true"] .input { border-bottom-color: var(--error); }
.field__error { font-size: 0.8125rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.form-footer p { font-size: 0.8125rem; color: var(--bone-56); max-width: 40ch; }
.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.contact-aside { display: grid; gap: 40px; }
.contact-portrait { max-width: 320px; }
@media (max-width: 899px) { .contact-portrait { display: none; } }
.contact-aside ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.contact-aside li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--bone-72); }
.contact-aside li strong { color: var(--bone); font-weight: 500; }

/* ---------- Legal / simple prose pages ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.1rem); margin-top: 2.2em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.5em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); background: var(--ink); }
.footer-grid { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 6fr 3fr 3fr; } }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand .footer-wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); letter-spacing: -0.02em; line-height: 1; }
.footer-brand p { max-width: 42ch; color: var(--bone-72); font-size: 0.9375rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 450; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-56); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 0.9375rem; color: var(--bone-86); transition: color .3s; display: inline-flex; align-items: center; gap: 10px; }
.footer-col a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.footer-col svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--bone-56); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }
.footer-bottom a:hover { color: var(--bone); }

/* ---------- 404 ---------- */
.not-found { min-height: calc(80vh - var(--header-h)); display: grid; align-content: center; gap: 28px; padding-block: var(--section); }
.not-found .display { max-width: 14ch; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal-delay="1"] { transition-delay: .08s; }
  .js [data-reveal-delay="2"] { transition-delay: .16s; }
  .js [data-reveal-delay="3"] { transition-delay: .24s; }
}

/* ---------- Print ---------- */
@media print {
  :root { --ink: #fff; --bone: #111; --bone-86: #222; --bone-72: #333; --bone-56: #555; --line: #ccc; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .toc, .share, .skip-link, .cta, .author-card .link-arrow { display: none !important; }
  .prose { max-width: none; font-size: 11pt; }
  a { text-decoration: underline; }
}
