/* The Poetry Society (India) — site stylesheet */

:root {
  --paper: #faf6ee;
  --surface: #fffdf7;
  --surface-2: #f1e8da;
  --ink: #291c21;
  --muted: #635457;
  --line: #ded0c3;
  --brand: #652d41;
  --brand-strong: #491e2d;
  --brand-soft: #f3e7e7;
  --accent: #af5e39;
  --accent-ink: #884126;
  --on-brand: #ffffff;
  --night: #301822;
  --gold: #f1bd87;
  --cream: #fff5e7;
  --heading-edge: #e4c1b8;
  --heading-glow: rgb(238 176 117 / .36);
  --shadow: 0 18px 48px -32px rgb(48 24 34 / .42);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #21171b;
    --surface: #2c1e25;
    --surface-2: #291b21;
    --ink: #fbf0e4;
    --muted: #d2bec2;
    --line: #534048;
    --brand: #f2c3d1;
    --brand-strong: #f8d4de;
    --brand-soft: #402834;
    --accent: #e19e74;
    --accent-ink: #ffc39d;
    --on-brand: #301822;
    --night: #211119;
    --heading-edge: #543442;
    --heading-glow: rgb(198 126 88 / .18);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
::selection { background: var(--accent); color: #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 92px); }
.section--tint { background: var(--surface-2); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.home main > .section { padding-block: clamp(34px, 4.8vw, 68px); }
.home main > .home-programmes { padding-top: clamp(25px, 3.2vw, 44px); }
.home .split { gap: clamp(22px, 4.4vw, 60px); }
.home .cta-band { padding: clamp(22px, 3.7vw, 46px); gap: 22px; }
.home .verse { margin-block: 0; }

.eyebrow { display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.25em; border-radius: var(--radius-sm); min-height: 44px;
  font: 600 .925rem/1.3 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--accent { background: var(--brand); color: var(--on-brand); }
.btn--accent:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--white { background: var(--cream); color: #491e2d; }
.btn--white:hover { background: var(--gold); color: #491e2d; }
.btn--ghost { border-color: currentColor; color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn--light { border-color: rgb(255 255 255 / .6); color: #fff; }
.btn--light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 5px 22px -18px var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--brand); }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text span { margin-top: 4px; font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
@media (prefers-color-scheme: dark) { .brand img { filter: brightness(0) invert(1); opacity: .92; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm);
  font: 500 .95rem/1 var(--font-body); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-toggle { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.nav-toggle .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0;
  width: max-content; min-width: 280px; max-width: 320px; padding: 8px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-toggle[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.dropdown a strong { display: block; font-weight: 600; font-size: .95rem; }
.dropdown a span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-cta { margin-left: 10px; }
.menu-button { display: none; }

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .menu-button svg { width: 22px; height: 22px; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; z-index: 49;
    max-height: calc(100dvh - var(--header-h)); overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 16px var(--gutter) 24px; overflow-y: auto;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.1rem; border-radius: 0; }
  .nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: none; }
  .dropdown {
    position: static; translate: none; transform: none; width: auto; min-width: 0; max-width: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 12px;
    display: none; opacity: 1; visibility: visible;
  }
  .nav-toggle[aria-expanded="true"] + .dropdown { display: block; }
  .nav-cta { margin: 24px 0 0; justify-content: center; padding: 1em; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .header-inner { gap: 12px; } }

html:not(.js) .menu-button { display: none; }
html:not(.js) .nav-item:focus-within > .dropdown,
html:not(.js) .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 980px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { height: auto; padding-block: 12px; flex-wrap: wrap; }
  html:not(.js) .nav { position: static; flex-basis: 100%; max-height: none; opacity: 1; visibility: visible; padding: 0; transform: none; box-shadow: none; }
  html:not(.js) .dropdown { display: block; }
  html:not(.js) { scroll-padding-top: 16px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 12%, rgb(199 112 71 / .26), transparent 57%),
    linear-gradient(122deg, var(--night) 6%, #402032 57%, #602d44 100%);
  color: var(--cream);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(28px, 4vw, 62px);
  padding-block: clamp(28px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(3rem, 6.35vw, 5.8rem); line-height: .98; letter-spacing: -.055em;
  margin-bottom: .15em; color: var(--cream); text-wrap: initial;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle { color: var(--gold); font: italic 400 clamp(1.85rem, 3.2vw, 3.1rem)/1.1 var(--font-display); margin: 0 0 .7em; }
.hero .lede { color: #eddae0; max-width: 39ch; font-size: clamp(1rem, 1.45vw, 1.125rem); margin-bottom: 1.65rem; }
.hero .btn--primary { background: var(--gold); color: #361925; }
.hero .btn--primary:hover { background: var(--cream); }
.hero .btn--ghost { color: var(--cream); border-color: #a67e89; }
.hero .btn--ghost:hover { background: rgb(255 255 255 / .1); }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 28px 56px -28px #160b11; }
.hero-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-media::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgb(255 234 210 / .3); border-radius: 5px; pointer-events: none; }
.hero-lettering { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-lettering.is-playing {
    position: absolute; inset: 0; display: block; pointer-events: none;
  }
  .hero-lettering span {
    position: absolute; left: var(--x); top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--tilt));
    font: 600 clamp(1.85rem, 4.65vw, 4.3rem)/1.15
      "Nirmala UI", "Kohinoor Devanagari", "Kohinoor Bangla", "Kohinoor Gurmukhi",
      "Gujarati Sangam MN", "Oriya Sangam MN", "Tamil Sangam MN", "Telugu Sangam MN",
      "Kannada Sangam MN", "Malayalam Sangam MN", sans-serif;
    color: #fff1c7;
    text-shadow: 0 2px 4px #4b1b25, 0 0 15px #e08a4c, 0 0 30px rgb(238 146 76 / .65);
    animation: hero-letter-rise 1.8s ease-in-out var(--delay) both;
  }
}
@keyframes hero-letter-rise {
  0% { opacity: 0; translate: 0 27px; scale: .72; }
  28% { opacity: 1; }
  64% { opacity: .92; }
  100% { opacity: 0; translate: 0 -26px; scale: 1.06; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { text-wrap: balance; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-break { display: none; }
}
@media (max-width: 420px) { .hero h1 { font-size: clamp(2.6rem, 12vw, 3.1rem); } }

/* ---------- Homepage entrance ---------- */
@keyframes home-enter {
  from {
    opacity: .15;
    translate: var(--entrance-offset, 0 40px);
    scale: var(--entrance-scale, 1);
  }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .home .hero-copy { --entrance-offset: -36px 0; }
  .home .hero-copy > *, .home .hero-media, .home .has-entered {
    animation: home-enter .9s cubic-bezier(.21, .68, .28, 1) backwards;
  }
  .home .hero-subtitle { animation-delay: .12s; }
  .home .hero .lede { animation-delay: .23s; }
  .home .hero .btn-row { animation-delay: .34s; }
  .home .hero-media {
    --entrance-offset: 60px 0;
    --entrance-scale: .93;
    animation-delay: .12s;
    animation-duration: 1.05s;
  }
  .home .awaiting-entrance:not(:focus-within) { opacity: .15; translate: 0 40px; }
  .home .has-entered:nth-child(2) { animation-delay: .09s; }
  .home .has-entered:nth-child(3) { animation-delay: .18s; }
  .home .has-entered:nth-child(4) { animation-delay: .27s; }
  .home .hero .btn-row:focus-within, .home .has-entered:focus-within { animation: none; }
}
@media (max-width: 760px) {
  .home .hero-copy { --entrance-offset: 0 30px; }
  .home .hero-media { --entrance-offset: 0 42px; }
}

/* ---------- Stats ---------- */
.home-stats { padding-block: clamp(14px, 2vw, 24px); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px);
  list-style: none; margin: 0; padding: 0;
}
.stat {
  padding: clamp(12px, 1.65vw, 22px);
  background:
    radial-gradient(ellipse at top right, rgb(218 130 84 / .32), transparent 68%),
    linear-gradient(142deg, #692e48 0%, #492137 55%, #2a1927 100%);
  color: var(--cream); border: 1px solid #753f52; border-radius: var(--radius);
}
.stat-value {
  display: block; margin-bottom: 7px; color: var(--gold);
  font: 600 clamp(2.1rem, 4.1vw, 3.65rem)/1 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat span { display: block; font-size: .9rem; line-height: 1.35; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 2vw, 20px); }
.home-programmes .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-programmes .card h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.home-programmes .section-head { max-width: none; margin-bottom: clamp(16px, 2vw, 28px); }
.home-programmes .section-head h2 { margin: 0; }
@media (max-width: 960px) { .home-programmes .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-programmes .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card h3 { margin-bottom: .4em; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .link-arrow { margin-top: 8px; }
.card--link:hover, .card--link:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.card--link a.stretched::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--illustrated { padding: 0; box-shadow: var(--shadow); }
.card-media {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media--reading { object-position: 50% 58%; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2.2vw, 28px); }
.card-copy .eyebrow { margin-bottom: .75rem; }

.panel.image-panel { padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.image-panel > img { width: 100%; aspect-ratio: 2.45; object-fit: cover; }
.image-panel-copy { padding: clamp(18px, 3vw, 28px); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.founder-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.founder-feature img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: center top; }
.founder-feature figcaption { display: grid; align-content: center; gap: 14px; padding: clamp(14px, 3vw, 38px); }
.founder-feature blockquote { margin: 0; color: var(--brand); font: italic 400 clamp(1.05rem, 2.15vw, 1.7rem)/1.35 var(--font-display); }
.founder-feature span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */
.verse {
  max-width: 760px; margin-inline: auto; text-align: center;
  font: italic 400 clamp(1.35rem, 2.6vw, 1.9rem)/1.5 var(--font-display); color: var(--ink);
}
.verse::before { content: "“"; display: block; font: 400 4.5rem/0.6 var(--font-display); color: var(--accent); margin-bottom: 16px; }
.verse cite { display: block; margin-top: 20px; font: normal 500 .9rem/1.4 var(--font-body); letter-spacing: .06em; color: var(--muted); }

/* Verse band */
.section--night { background: var(--night); color: #fff; }
.section--night .verse { color: #fff; }
.section--night .verse cite { color: #eddae0; }
.section--night .verse::before { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent); color: #fff; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  background-image: linear-gradient(112deg, #411f2c, #702f46);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgb(255 255 255 / .9); margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero {
  padding-block: clamp(24px, 4.5vw, 58px) clamp(28px, 4vw, 52px);
  background:
    radial-gradient(ellipse at 90% 12%, var(--heading-glow), transparent 60%),
    linear-gradient(118deg, var(--paper) 0%, var(--surface-2) 43%, var(--heading-edge) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.55rem); letter-spacing: -.04em; margin-bottom: .25em; text-wrap: initial; }
.page-hero .lede:last-child { margin-bottom: 0; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .875rem; font-weight: 600; text-decoration: none; }
.page-links a:hover { border-color: currentColor; }
.page-links a::after { content: "\2193"; }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
}
.page-hero-grid h1 { text-wrap: balance; }
.page-visual {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.page-visual img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.page-visual:not(.page-visual--founder)::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgb(255 245 231 / .4);
  border-radius: 4px; pointer-events: none;
}
.page-visual--founder {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch;
}
.page-visual--founder img { aspect-ratio: 1; height: 100%; object-position: 50% 20%; }
.page-visual--founder figcaption { align-self: center; padding: clamp(12px, 3vw, 36px); }
.page-visual--founder strong {
  display: block; color: var(--brand); font: 500 clamp(1.25rem, 2.3vw, 1.8rem)/1.15 var(--font-display);
  margin-bottom: 6px;
}
.page-visual--founder span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.page-visual--founder span + span { margin-top: 8px; }
@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid h1 { text-wrap: normal; }
  .page-visual--compact img { aspect-ratio: 5 / 2; }
  .page-visual--founder img { max-height: 190px; }
}

/* ---------- Prose & layout with sidebar ---------- */
.prose { max-width: 68ch; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font: italic 400 1.2rem/1.6 var(--font-display); }
.prose .pull-quote {
  background: linear-gradient(120deg, #482333, var(--night)); color: var(--cream);
  padding: clamp(22px, 4vw, 44px); border: 0; border-radius: var(--radius);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem); line-height: 1.35;
}
.pull-quote::before { content: "\201C"; display: block; color: var(--gold); font-size: 3.35rem; line-height: .7; }
.aims-list { padding-left: 2.25em; }
.aims-list li { padding: 0 0 .65rem .4rem; border-bottom: 1px solid var(--line); }
.aims-list li::marker { color: var(--brand); font-family: var(--font-display); }
.dropcap::first-letter { float: left; font: 500 4.2rem/.85 var(--font-display); color: var(--brand); margin: .08em .12em 0 0; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.with-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
  .with-aside, .with-toc { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 1.1rem; margin-bottom: .6em; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel--brand { background: var(--brand-soft); border-color: transparent; }
.panel--accent { border-top: 3px solid var(--accent); box-shadow: var(--shadow); }

.toc { font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc p { font: 600 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="location"] { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
@media (min-width: 961px) {
  .toc { max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding: 0 0 32px 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
}
.timeline time, .timeline .when { display: block; font: 600 .82rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: .35em; }
.timeline p { color: var(--muted); margin-bottom: .5em; }
.timeline--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.timeline--cards::before, .timeline--cards > li::before { content: none; }
.timeline--cards > li, .timeline--cards > li:last-child {
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); border-radius: var(--radius);
}
.timeline--cards p:last-child { margin-bottom: 0; }

/* ---------- Lectures list ---------- */
.lecture-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.lecture-list li { display: flex; gap: 18px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.lecture-list b { font: 500 1.5rem/1 var(--font-display); color: var(--brand); flex-shrink: 0; }
.lecture-list li:first-child { background: var(--brand-soft); border-color: var(--brand); }

/* ---------- Award cards ---------- */
.award { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.award + .award { margin-top: 20px; }
.award-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(120deg, #482333, var(--night));
}
.award-head h3 { flex: 1 1 14ch; margin: 0; color: var(--cream); }
.award-year { font: 500 clamp(2rem, 4vw, 3.1rem)/1 var(--font-display); color: var(--gold); }
.award-body { padding: clamp(18px, 3vw, 30px); }
.winner { padding: 16px 18px; border-inline-start: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--brand-soft); margin-bottom: 20px; }
.winner small, .award h4 { display: block; font: 600 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.winner p { margin: 0; }
.winner .poem { font-size: 1.2em; color: var(--brand); }
.poem { font-family: var(--font-display); font-style: italic; }
.award ul { list-style: none; padding: 0; margin: 0; }
.award ul li { padding: 10px 0; border-top: 1px solid var(--line); }
.award ul li:first-child { border-top: 0; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font: 500 1.15rem/1 var(--font-display);
}
.person--lead .avatar { background: var(--brand); color: var(--on-brand); }
.person--lead { border-top: 1px solid var(--line); box-shadow: 0 2px 10px rgb(41 28 33 / .08), 0 1px 2px rgb(41 28 33 / .06); background: color-mix(in srgb, var(--surface) 69%, var(--brand-soft)); }
.person--lead .avatar { border: 3px double var(--surface); }
.person h3 { font: 600 1rem/1.3 var(--font-body); margin: 0 0 4px; }
.person span { font-size: .88rem; color: var(--muted); }
.name-list { columns: 2 220px; column-gap: 32px; list-style: none; padding: 0; }
.name-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.name-list small { display: block; color: var(--muted); font-size: .85rem; }
.name-list--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-block: 0; }
.name-list--cards li { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Committee table ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 540px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lang-grid li { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 15px 18px; }
.lang-grid small { display: block; font: 500 1.24rem/1.1 var(--font-display); color: var(--brand); margin-bottom: 6px; }

.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.5em; }
.values li { padding: 8px 16px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .95rem; }
.values--themes li { background: var(--surface); border: 1px solid var(--line); font: 500 1.16rem/1.25 var(--font-display); }
.values--themes li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); margin-inline: 2px 10px; vertical-align: .17em; }

/* ---------- Fees ---------- */
.fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fee { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.fee--featured { background: linear-gradient(120deg, #482333, var(--night)); color: var(--cream); }
.fee h3 { font: 600 1rem/1.3 var(--font-body); margin-bottom: 12px; }
.fee .price { font: 500 clamp(2rem, 3.5vw, 3rem)/1 var(--font-display); color: var(--brand); }
.fee--featured .price { color: var(--gold); }
.fee .price small { font: 400 .85rem var(--font-body); color: var(--muted); }
.fee p { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.fee--featured h3, .fee--featured p { color: var(--cream); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 600 .95rem/1 var(--font-body);
}
.steps--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.steps--cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.steps--cards li::before { position: static; margin-bottom: 16px; }
.steps--cards li > strong { display: block; font: 600 1.3rem/1.2 var(--font-display); color: var(--ink); margin-bottom: .5rem; }
.steps--cards li > br { display: none; }
.submission-options li::before { content: none; }
.subscription-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.subscription-prices > div { border-radius: var(--radius-sm); background: var(--brand-soft); padding: 10px; }
.subscription-prices dt { font-size: .78rem; color: var(--muted); }
.subscription-prices dd { margin: 4px 0 0; font: 500 clamp(1.25rem, 2vw, 1.7rem)/1.15 var(--font-display); color: var(--brand); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand); border-radius: 50%; }
.feature-icon svg { width: 22px; height: 22px; }
.contact-card h2 { font: 500 1.42rem/1.1 var(--font-display); margin-bottom: 12px; }
.contact-card p, .contact-card address { font-size: 1.05rem; margin: 0; }
.contact-card a { word-break: break-word; }
.map-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.map-panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; }
.map-panel-header h2 { margin: 0; font-size: 1.3rem; }
.map { border: 0; width: 100%; height: clamp(260px, 42vw, 420px); background: var(--surface-2); display: block; }

/* ---------- Constitution ---------- */
.clause { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: clamp(16px, 3.5vw, 36px); }
.clause + .clause { margin-top: 22px; }
.clause > :last-child { margin-bottom: 0; }
.clause h2 { margin-top: 0; }
.clause h3 { font: 600 1.05rem/1.4 var(--font-body); margin: 1.6em 0 .5em; }
.clause ol.alpha { list-style: lower-alpha; }
.clause ol.roman { list-style: lower-roman; }
.clause dl { margin: 0; }
.clause dt { font-weight: 600; margin-top: 1em; }
.clause dd { margin: 0; color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #e1d2df; padding-block: 64px 32px; font-size: .95rem; }
.site-footer a { color: #f1e4ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 52px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; color: #cdbbd1; }
.site-footer h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #cdbbd1; }
.site-footer { border-top: 4px solid var(--accent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---------- Forms ---------- */
.form { display: block; }
.form-section { border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 0 clamp(14px, 3vw, 26px) clamp(16px, 3vw, 26px); margin: 0 0 30px; min-width: 0; }
.form-section:focus-within { box-shadow: var(--shadow); }
.form-section legend { display: flex; align-items: center; gap: 10px; font: 600 1.35rem/1.2 var(--font-display); color: var(--ink); margin-bottom: 16px; padding-inline: 6px; }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 .9rem/1 var(--font-body); flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.hint { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.req { color: var(--accent-ink); font-weight: 600; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--field-line, #a9948d); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
@media (prefers-color-scheme: dark) { :root { --field-line: #937b85; } }
.form textarea { resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--brand); }
.form input:not([type="radio"]):not([type="checkbox"]):focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form [aria-invalid="true"] { border-color: var(--accent-ink) !important; }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(224 69 43 / .18); }
.field-error { color: var(--accent-ink); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-2:has(> .field--sm) { grid-template-columns: 140px 1fr; }
.grid-3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-2:has(> .field--sm) { grid-template-columns: 1fr; } }
.signature { font-family: var(--font-display) !important; font-style: italic; font-size: 1.25rem !important; }

.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1.5px solid var(--field-line, #a9948d); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice-body strong { font-size: 1rem; }
.choice-body::before { content: ""; width: 17px; height: 17px; border: 1px solid var(--muted); border-radius: 50%; margin-bottom: 3px; }
.choice-card input:checked + .choice-body::before { border: 5px solid var(--brand); }
.choice-body .price { font: 500 1.6rem/1.1 var(--font-display); color: var(--brand); }
.choice-body .price em { font: 400 .85rem var(--font-body); color: var(--muted); font-style: normal; }
.choice-body small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.choice-card:hover .choice-body { border-color: var(--brand); }
.choice-card input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-card input:focus-visible + .choice-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.has-error .choice-body { border-color: var(--accent-ink); }

.repeater { display: grid; gap: 10px; margin: 6px 0 12px; }
.repeater-row { display: grid; grid-template-columns: 2fr 1.5fr 90px 40px; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .repeater-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
  .repeater-row > :first-child { grid-column: 1 / -1; }
}
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.icon-btn[hidden] { display: none; }
.btn--sm { padding: .6em 1.1em; font-size: .88rem; align-self: flex-start; }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn[hidden] { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-summary { border: 2px solid var(--accent-ink); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); outline: none; }
.form-summary h2 { font: 600 1.15rem/1.3 var(--font-body); margin-bottom: 10px; color: var(--accent-ink); }
.form-summary ul { margin: 0; padding-left: 1.2em; }
.form-summary a { color: var(--accent-ink); font-weight: 600; }
.form-error { color: var(--accent-ink); font-weight: 600; }
.form-ok { color: #1d7a46; font-weight: 600; }

.done { text-align: center; max-width: 640px; margin-inline: auto; outline: none; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #e3f4ea; color: #1d7a46; }
.done-icon svg { width: 36px; height: 36px; }
.done .lede { margin-inline: auto; margin-bottom: 8px; }
.ref { font: 500 clamp(2rem, 5vw, 2.8rem)/1.1 var(--font-display); color: var(--brand); letter-spacing: .02em; margin-bottom: 32px; }

/* ---------- Admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-filters input[type="search"] { min-width: min(280px, 100%); font: 400 .95rem var(--font-body); padding: 10px 14px; border: 1.5px solid #c9cde3; border-radius: 999px; background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip.is-on b { color: inherit; opacity: .8; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; font: 600 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status--new { background: var(--brand-soft); color: var(--brand); }
.status--awaiting_payment { background: #fff1d6; color: #8a5300; }
.status--approved { background: #e3f4ea; color: #1d7a46; }
.status--rejected { background: #fde7e3; color: #a3301b; }
.detail dt { font: 600 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.detail dt:first-child { margin-top: 0; }
.detail dd { margin: 6px 0 0; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: clamp(40px, 6vw, 72px); }
.center { text-align: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .cta-band, .menu-button { display: none !important; }
  body { background: #fff; color: #000; }
  .with-toc, .with-aside { display: block; }
}
.name-list--cards:has(.founder-bio) { grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.name-list--cards:has(.founder-bio) li { padding: 24px 28px; font: 600 1.2rem/1.25 var(--font-display); color: var(--ink, inherit); border-top: 3px solid var(--gold); }
.name-list--cards:has(.founder-bio) small { order: -1; margin-bottom: .5rem; font: 600 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.name-list--cards:has(.founder-bio) li { display: flex; flex-direction: column; }
.name-list--cards .founder-bio p { margin: .9em 0 0; font: 400 .95rem/1.7 var(--font-body); color: var(--muted); }
@media (max-width: 760px) { .name-list--cards:has(.founder-bio) { grid-template-columns: 1fr; } }

/* People cards: portrait on top, details below */
.people .person { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.people .person > div:last-child { padding: 16px 18px 20px; }
.people .person h3 { font: 600 1.05rem/1.3 var(--font-body); }
.people .person span { color: var(--muted); font-size: .9rem; }
.people .person--lead span { color: var(--accent-ink); font-weight: 600; }
.people .avatar { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; border: 0; font-size: 3.25rem; overflow: hidden; }
.people .person--lead .avatar { border: 0; }
.people .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }

/* Expandable biography on people cards */
.people .bio { margin-top: 12px; font-size: .9rem; }
.people .bio summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.people .bio p { margin: .8em 0 0; line-height: 1.65; color: var(--muted); }
.people .person:has(.bio[open]) { grid-column: 1 / -1; }
.people .person:has(.bio[open]) .bio p { max-width: 70ch; }
.people .person:has(.bio[open]) { flex-direction: row; align-items: flex-start; }
.people .person:has(.bio[open]) .avatar { width: 240px; flex-shrink: 0; }
@media (max-width: 640px) { .people .person:has(.bio[open]) { flex-direction: column; } .people .person:has(.bio[open]) .avatar { width: 100%; } }

/* Shared subtle card shadow */
.person, .name-list--cards li { box-shadow: 0 2px 10px rgb(41 28 33 / .08), 0 1px 2px rgb(41 28 33 / .06); }
