:root {
  --ink: #18312e;
  --ink-soft: #49605c;
  --paper: #f8f8f4;
  --surface: #ffffff;
  --surface-tint: #e8f3ec;
  --line: #d8e4dd;
  --accent: #e75f43;
  --accent-dark: #b84631;
  --green: #3d986e;
  --green-deep: #22664a;
  --yellow: #f5c764;
  --link: #236e52;
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 76rem;
  --gutter: clamp(1.1rem, 3vw, 3.5rem);
  --shadow: 0 1rem 3rem rgba(24, 49, 46, .09);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

html[data-theme="dark"], html.dark {
  --ink: #edf4ee;
  --ink-soft: #b5c8be;
  --paper: #14221f;
  --surface: #1c302b;
  --surface-tint: #203d31;
  --line: #365349;
  --accent: #f27b5b;
  --accent-dark: #ff9877;
  --green: #78c99d;
  --green-deep: #9be0b8;
  --yellow: #f2cf70;
  --link: #9ce0b7;
  --shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.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; }

button { cursor: pointer; }

.site-header {
  width: min(var(--measure), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 2.55rem; height: 2.55rem; flex: 0 0 auto; }
.brand-word { font-family: var(--font-display); font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: -.045em; }
.brand-word em { color: var(--accent); font-style: normal; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { color: var(--ink-soft); font-size: .84rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
[data-theme-toggle], .menu-toggle { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 2.55rem; height: 2.55rem; display: inline-grid; place-items: center; }
[data-theme-toggle] { font-size: 1.1rem; }
.menu-toggle { display: none; }

.page-wrap { width: min(var(--measure), calc(100% - (var(--gutter) * 2))); margin: 0 auto; }
.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.rail-layout:has([data-side-links][hidden]), .rail-layout:has([data-side-links]:empty) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden], .side-links:empty { display: none; }
.side-links { border-left: 2px solid var(--accent); padding: .3rem 0 0 1rem; margin-top: 4rem; position: sticky; top: 2rem; }
.side-links h2 { margin: 0 0 .8rem; font-family: var(--font-mono); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.side-links ol { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .78rem; }
.side-links a { text-decoration: none; }
.side-links a:hover { color: var(--accent); }

main { min-width: 0; }
.eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 6.3rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.lede { color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 38rem; }

.hero { margin: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-copy { padding: 1rem 0; }
.hero h1 { margin: .7rem 0 1.4rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lede { margin-bottom: 2rem; }
.hero-photo { position: relative; min-height: 31rem; border-radius: 3rem 1rem 3rem 1rem; overflow: hidden; background: var(--green-deep); box-shadow: var(--shadow); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(34,102,74,.05) 40%, rgba(16,39,32,.48)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-note { position: absolute; z-index: 1; right: 1.2rem; bottom: 1.2rem; max-width: 13rem; padding: .85rem 1rem; border-radius: 1rem; background: rgba(255,255,255,.9); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--surface); }

.section { margin: 0 0 clamp(4.5rem, 9vw, 8rem); }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.section-head p { color: var(--ink-soft); max-width: 28rem; font-size: .94rem; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.theme-card { min-height: 15rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .2s ease, transform .2s ease; }
.theme-card:hover { border-color: var(--accent); transform: translateY(-.25rem); }
.theme-card:nth-child(2) { background: var(--surface-tint); }
.theme-card:nth-child(3) { background: #fff4df; }
html[data-theme="dark"] .theme-card:nth-child(3), html.dark .theme-card:nth-child(3) { background: #443a25; }
.theme-number { font-family: var(--font-mono); color: var(--accent); font-size: .68rem; }
.theme-card h3 { margin: 2rem 0 .5rem; }
.theme-card p { color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.arrow { color: var(--accent); font-size: 1.4rem; align-self: end; }

.feed-section { padding: clamp(2rem, 4vw, 3.5rem); border-radius: 1.5rem; background: var(--surface-tint); }
.news-grid, .archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1.3rem; }
.story-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.story-image { display: block; position: relative; aspect-ratio: 1.25 / 1; overflow: hidden; background: var(--green); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card > :not(.story-image) { margin-left: 1.1rem; margin-right: 1.1rem; }
.story-meta { display: flex; gap: .5rem .8rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .63rem; text-transform: uppercase; letter-spacing: .05em; }
.category-label { color: var(--accent); }
.story-card h3 { margin-top: .5rem; line-height: 1.15; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--accent); }
.story-card p { padding-bottom: 1.2rem; margin-top: .55rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.empty-state { color: var(--ink-soft); font-size: .9rem; }

.split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.split-band h2 { margin: .7rem 0 1rem; max-width: 12ch; }
.split-band p { color: var(--ink-soft); max-width: 34rem; }
.photo-panel { min-height: 23rem; border-radius: 1rem 3rem 1rem 3rem; overflow: hidden; background: var(--green-deep); }
.photo-panel img { width: 100%; height: 100%; min-height: 23rem; object-fit: cover; }
.value-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.value-item { display: grid; grid-template-columns: 2.25rem 1fr; gap: .8rem; align-items: start; }
.value-icon { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--font-mono); font-size: .75rem; }
.value-item strong { display: block; font-size: .92rem; }
.value-item span { color: var(--ink-soft); font-size: .82rem; }

.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); gap: 2rem; align-items: center; padding: clamp(1.8rem, 4vw, 3.5rem); background: var(--ink); color: var(--paper); border-radius: 1.2rem; }
.newsletter .eyebrow { color: var(--yellow); }
.newsletter h2 { margin: .5rem 0 .7rem; max-width: 12ch; }
.newsletter p { color: #b7cbc1; font-size: .9rem; }
.newsletter-form { display: grid; gap: .65rem; }
.newsletter-form label { color: #c6d5ce; font-size: .75rem; font-weight: 700; }
.newsletter-form .form-row { display: flex; gap: .5rem; }
.newsletter-form input, .archive-form input, select { width: 100%; min-height: 3rem; border: 1px solid var(--line); border-radius: .55rem; padding: .75rem .9rem; background: var(--surface); color: var(--ink); }
.newsletter-form input { border-color: #597269; background: #29423a; color: #fff; }
.newsletter-form input::placeholder { color: #a2b8ad; }
.form-message { min-height: 1.2rem; color: var(--yellow); font-size: .75rem; }

.page-intro { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.page-intro h1 { margin: .65rem 0 1rem; max-width: 14ch; }
.page-intro .lede { max-width: 44rem; }
.archive-tools { margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.archive-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; }
.filter-list { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.filter-list a { padding: .35rem .65rem; border-radius: 999px; background: var(--surface-tint); color: var(--link); font-size: .75rem; text-decoration: none; }
.archive-results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.program-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.program-card .tag { display: inline-block; padding: .3rem .55rem; border-radius: 999px; background: var(--surface-tint); color: var(--green-deep); font-family: var(--font-mono); font-size: .63rem; text-transform: uppercase; }
.program-card h3 { margin: 1.5rem 0 .6rem; }
.program-card p { color: var(--ink-soft); font-size: .85rem; }
.program-meta { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.4rem; color: var(--accent); font-size: .75rem; font-weight: 700; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.3rem; }
.filter-bar button { border: 1px solid var(--line); border-radius: 999px; padding: .5rem .85rem; background: transparent; color: var(--ink-soft); font-size: .78rem; }
.filter-bar button[aria-pressed="true"], .filter-bar button:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.about-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.2rem; background: var(--surface); border: 1px solid var(--line); }
.about-card.accent { background: var(--accent); color: #fff; border-color: transparent; }
.about-card p { color: var(--ink-soft); font-size: .92rem; }
.about-card.accent p { color: #fff0ea; }
.about-card h2, .about-card h3 { margin-bottom: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; }
details p { padding: .8rem 2rem 0 0; color: var(--ink-soft); font-size: .9rem; }

.article-shell { padding: 4rem 0 6rem; }
.byline { display: grid; grid-template-columns: 3rem 1fr; gap: .7rem; align-items: center; margin: 0 auto 2rem; max-width: 52rem; }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: var(--surface-tint); }
.byline strong { font-size: .85rem; }
.byline p { grid-column: 2; color: var(--ink-soft); font-size: .78rem; margin-top: -.5rem; }
.article-reader { max-width: 52rem; margin: 0 auto; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { max-width: 18ch; margin: .7rem 0 1rem; }
.article-deck { color: var(--ink-soft); font-size: 1.1rem; }
.article-cover { width: 100%; max-height: 30rem; object-fit: cover; border-radius: 1rem; margin: 2rem 0; }
.prose { font-family: var(--font-body); font-size: 1.06rem; line-height: 1.8; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.35rem; }
.prose h2 { font-size: 2rem; margin: 2.5rem 0 .8rem; }
.prose h3 { margin: 2rem 0 .6rem; }
.prose a { color: var(--link); text-decoration-thickness: .1em; text-underline-offset: .15em; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--accent); background: var(--surface-tint); font-family: var(--font-display); font-size: 1.35rem; }
#category-title { margin-bottom: .8rem; }
#category-description { color: var(--ink-soft); max-width: 42rem; margin-bottom: 2rem; }

.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.not-found h1 { margin: .7rem auto 1rem; max-width: 12ch; }
.not-found p { max-width: 30rem; margin: 0 auto 1.5rem; color: var(--ink-soft); }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; }
.footer-inner { width: min(var(--measure), calc(100% - (var(--gutter) * 2))); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.footer-brand p { max-width: 20rem; color: var(--ink-soft); font-size: .8rem; margin-top: .7rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .7rem 1.2rem; max-width: 28rem; }
.footer-nav a { color: var(--ink-soft); font-size: .8rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { width: min(var(--measure), calc(100% - (var(--gutter) * 2))); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .7rem; }

@media (max-width: 850px) {
  .site-header { min-height: 4.6rem; }
  .menu-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); top: 4.6rem; padding: .8rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem; }
  .hero, .split-band, .newsletter, .about-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 2.5rem; gap: 2rem; }
  .hero-photo { min-height: 24rem; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .side-links { display: none; }
  .rail-layout, .rail-layout:has([data-side-links][hidden]), .rail-layout:has([data-side-links]:empty) { grid-template-columns: minmax(0, 1fr); }
  .newsletter-form .form-row { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

@media (max-width: 540px) {
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .theme-grid, .program-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: .8rem; }
  .archive-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@keyframes page-in { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
main { animation: page-in .45s ease both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
