:root {
  color-scheme: light;
  --ink: #1c332b;
  --muted: #68766e;
  --line: #dfe4dd;
  --paper: #f5f4ee;
  --white: #fffefa;
  --green: #315f4b;
  --green-dark: #204433;
  --lime: #dce9b5;
  --coral: #c9674c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; z-index: 20; top: 0.5rem; left: 0.5rem; transform: translateY(-160%); background: var(--white); padding: 0.75rem 1rem; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { width: min(1220px, calc(100% - 64px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.brand em { color: var(--green); font-family: var(--serif); font-weight: 400; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.primary-nav { display: flex; align-items: center; gap: 2rem; color: #526259; font-size: 0.86rem; }
.primary-nav a, .header-note { transition: color 150ms ease; }
.header-note { color: var(--green); font-family: var(--serif); font-size: 0.98rem; font-style: italic; }
.header-note span { margin-left: 0.4rem; font-family: var(--sans); font-style: normal; }
.hero-wrap { width: min(1220px, calc(100% - 64px)); margin: 0 auto; padding: 4.6rem 0 4rem; display: grid; grid-template-columns: 0.93fr 1.07fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hero-copy { padding: 0.4rem 0 1rem 1rem; }
.eyebrow { margin: 0; color: var(--green); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 0.4rem 1px 0; border-radius: 50%; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { max-width: 620px; margin: 1.25rem 0 1.35rem; font-family: var(--serif); font-size: clamp(3.5rem, 6.7vw, 6.5rem); font-weight: 400; letter-spacing: -0.065em; line-height: 0.98; }
.hero-copy h1 em, .section-heading h2 em, .closing-note h2 em, .listing-hero h1 em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 410px; margin-bottom: 1.65rem; color: #5d6a62; font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; }
.button-primary { display: inline-flex; min-height: 48px; align-items: center; gap: 1.4rem; padding: 0 1.15rem; background: var(--green-dark); color: white; font-size: 0.83rem; font-weight: 650; }
.button-primary:hover { background: #152f23; color: white; }
.hero-footnote { margin: 1.15rem 0 0; color: #829087; font-size: 0.72rem; letter-spacing: 0.03em; }
.hero-feature { display: grid; grid-template-columns: 1fr 0.78fr; align-items: end; gap: 1.2rem; }
.feature-art { position: relative; min-height: 410px; overflow: hidden; background: #dce5cd; }
.feature-art::after { position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(22,47,35,.22)); content: ""; }
.feature-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.feature-index { position: absolute; z-index: 1; bottom: 1rem; left: 1rem; color: white; font-size: 0.7rem; letter-spacing: 0.1em; }
.feature-arrow { position: absolute; z-index: 1; top: 0.75rem; right: 0.95rem; color: var(--white); font-size: 1.35rem; }
.feature-caption { padding-bottom: 0.25rem; }
.feature-caption .eyebrow { font-size: 0.61rem; }
.feature-caption h2 { margin: 0.65rem 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.45rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.08; }
.feature-caption p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }
.intro-strip { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #eeefe6; text-align: center; }
.intro-strip p { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.3; }
.intro-strip p span { color: var(--green); font-style: italic; }
.intro-mark { color: var(--coral); font-size: 1.5rem; }
.library-section { width: min(1220px, calc(100% - 64px)); margin: auto; padding: 5.1rem 0 5.6rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading h2 { margin: 0.35rem 0 0; font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 400; letter-spacing: -0.055em; line-height: 1.05; }
.search-box { width: min(285px, 100%); display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.1rem; border-bottom: 1px solid #8d9a90; color: var(--green); }
.search-box > span:not(.sr-only) { font-size: 1.35rem; }
.search-box input { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.85rem; }
.search-box input:focus-visible { outline-offset: 0; }
.search-box input::placeholder { color: #758178; }
.category-filter { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.25rem 0 1.55rem; scrollbar-width: thin; }
.filter-pill { flex: 0 0 auto; padding: 0.48rem 0.75rem; border: 1px solid #d6ddd3; border-radius: 2px; color: #526259; font-size: 0.7rem; }
.filter-pill span { margin-left: 0.35rem; color: #879189; font-size: 0.64rem; }
.filter-pill:hover, .filter-pill.is-active { border-color: var(--green); background: var(--green); color: white; }
.filter-pill.is-active span, .filter-pill:hover span { color: #dce9b5; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.8rem 1.35rem; }
.story-card { min-width: 0; }
.story-card[hidden] { display: none; }
.card-image { position: relative; display: block; height: 255px; overflow: hidden; background: #e3e8da; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.card-image:hover img { transform: scale(1.035); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #829178; font-family: var(--serif); font-size: 3rem; }
.image-arrow { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; width: 34px; height: 34px; place-items: center; background: var(--paper); color: var(--green); font-size: 1rem; }
.card-copy { padding: 1rem 0.15rem 0; }
.card-category { color: var(--coral); font-size: 0.64rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.card-copy h3 { max-width: 350px; margin: 0.48rem 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.card-copy p { min-height: 3.3em; margin: 0.55rem 0 0.8rem; color: var(--muted); font-size: 0.79rem; line-height: 1.65; }
.card-read { color: var(--green); font-size: 0.72rem; font-weight: 700; }
.card-read span { margin-left: 0.35rem; }
.empty-state { padding: 2rem 0; color: var(--muted); }
.closing-note { display: flex; align-items: center; gap: 2rem; padding: 3.2rem max(32px, calc((100% - 1220px)/2)); background: var(--green-dark); color: #f7f5ed; }
.closing-symbol { align-self: flex-start; color: var(--lime); font-size: 2rem; }
.closing-note > div { max-width: 670px; flex: 1; }
.closing-note .eyebrow { color: var(--lime); }
.closing-note h2 { margin: 0.4rem 0; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 400; letter-spacing: -0.04em; }
.closing-note h2 em { color: var(--lime); }
.closing-note > div > p:last-child { max-width: 580px; margin: 0; color: #d7e0d8; font-size: 0.86rem; }
.closing-note > a { flex: 0 0 auto; border-bottom: 1px solid #a8c1ae; padding-bottom: 0.4rem; color: white; font-size: 0.77rem; }
.advertisement { margin: 3rem auto; width: 300px; max-width: 100%; text-align: center; color: var(--muted); font-size: 0.75rem; }
.advertisement[hidden] { display: none; }
.advertisement span { display: block; margin-bottom: 0.5rem; }
.advertisement > div { width: 100%; min-height: 250px; }
.ads-debug .advertisement > div { display: grid; place-items: center; border: 1px dashed #526259; background: #eef1ea; color: #526259; font: 0.85rem sans-serif; }
.ads-debug .advertisement > div::after { content: attr(id) ' · 300 × 250'; }
#main > .advertisement { margin: 1rem auto 2rem; }
.story-grid > .advertisement { grid-column: 1 / -1; }
.site-footer { padding: 3rem max(32px, calc((100% - 1220px)/2)) 1.35rem; background: #e9ebe2; }
.footer-main { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 1.5rem; padding-bottom: 2rem; }
.brand-footer { font-size: 1.3rem; }
.footer-main p { max-width: 300px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; }
.footer-main > a:last-child { justify-self: end; color: var(--green); font-size: 0.78rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 1.2rem 0; border-top: 1px solid #cfd6cc; color: #526259; font-size: 0.71rem; }
.copyright { margin: 0; padding-top: 0.8rem; border-top: 1px solid #cfd6cc; color: #79867d; font-size: 0.67rem; }
.article-shell { width: min(100%, 1000px); margin: auto; padding: 2.25rem 32px 5rem; }
.breadcrumbs { display: flex; gap: 0.55rem; margin: 0 0 1.3rem; color: #738077; font-size: 0.72rem; }
.article-page { max-width: 760px; margin: auto; padding: clamp(1.5rem, 5vw, 4rem); background: var(--white); }
.article-header { max-width: 680px; margin: auto; }
.article-header .eyebrow span { margin: 0 0.3rem; color: var(--coral); }
.article-header h1 { margin: 0.8rem 0 0.65rem; font-family: var(--serif); font-size: clamp(2.55rem, 5.6vw, 4.4rem); font-weight: 400; letter-spacing: -0.055em; line-height: 1.04; }
.article-deck { margin-bottom: 1rem; color: #617066; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; }
.byline { padding: 0.8rem 0 1.2rem; border-top: 1px solid var(--line); color: #738077; font-size: 0.72rem; }
.byline strong { color: var(--ink); }
.article-image { margin: 0 -1rem 2.3rem; }
.article-image img { width: 100%; max-height: 440px; object-fit: cover; }
.article-image figcaption { padding: 0.45rem 0; color: #859087; font-size: 0.65rem; }
.article-prose { max-width: 650px; margin: auto; color: #33443b; font-family: var(--serif); font-size: 1.12rem; line-height: 1.85; }
.article-prose p { margin: 0 0 1.45rem; }
.attribution { max-width: 650px; margin: 2rem auto 1rem; padding: 1rem 1.15rem; border-left: 2px solid var(--coral); background: #f4f2eb; }
.attribution p { margin: 0.4rem 0 0; color: #59665d; font-size: 0.75rem; line-height: 1.6; }
.health-note { max-width: 650px; margin: 1rem auto 2rem; padding: 1rem 1.15rem; background: #edf1e7; color: #40534a; font-size: 0.75rem; }
.health-note p { margin: 0.35rem 0 0; }
.article-prose h2 { margin: 2.2rem 0 0.65rem; color: var(--ink); font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.18; }
.article-prose ul, .article-prose ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.article-prose li { margin: 0.45rem 0; padding-left: 0.2rem; }
.citation { vertical-align: super; font-family: var(--sans); font-size: 0.68em; }
.citation a, .reference-list a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reference-list { max-width: 650px; margin: 2.3rem auto 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.reference-list h2 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.reference-list ol { padding-left: 1.2rem; color: #4f5f55; font-size: 0.72rem; }
.reference-list li { margin: 0.6rem 0; padding-left: 0.25rem; }
.reference-list li span { display: block; color: #7a867d; font-size: 0.68rem; }
.back-link { color: var(--green); font-size: 0.8rem; font-weight: 650; }
.listing-hero { padding: 4rem 32px 2rem; border-bottom: 1px solid var(--line); background: #eeefe6; text-align: center; }
.listing-hero .eyebrow { color: #68766e; }
.listing-hero h1 { margin: 1rem 0 0.4rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5rem); font-weight: 400; letter-spacing: -0.055em; }
.listing-hero > p:last-child { color: var(--muted); }
.category-library { padding-top: 2.8rem; }
.static-page { width: min(780px, calc(100% - 48px)); margin: 3rem auto 5rem; padding: clamp(1.5rem, 5vw, 3.8rem); background: var(--white); }
.static-page > .back-link { display: inline-block; margin-bottom: 2rem; }
.static-page h1 { margin: 0.55rem 0 1.4rem; font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 4.5rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1.05; }
.static-page h2 { margin: 2rem 0 0.5rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.static-page p { color: #4f5f55; font-size: 0.96rem; line-height: 1.85; }
.static-page a:not(.back-link) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.contact-link { display: inline-block; margin-top: 1rem; color: var(--green); font-weight: 700; }
.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; }

@media (max-width: 900px) {
  .hero-wrap { gap: 2.5rem; }
  .feature-art { min-height: 330px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-image { height: 230px; }
}

@media (max-width: 640px) {
  .header-inner { width: calc(100% - 36px); min-height: 68px; gap: 1rem; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .primary-nav { gap: 0.85rem; font-size: 0.74rem; }
  .header-note { display: none; }
  .hero-wrap { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2.6rem; }
  .hero-copy { padding-left: 0; }
  .hero-copy h1 { margin-top: 1rem; font-size: clamp(3.45rem, 17vw, 5rem); }
  .hero-intro { max-width: 360px; font-size: 1.1rem; }
  .hero-feature { grid-template-columns: minmax(0, 1fr) minmax(125px, 0.8fr); gap: 0.85rem; align-items: center; }
  .feature-art { min-height: 250px; }
  .feature-caption h2 { font-size: 1.45rem; }
  .feature-caption p { font-size: 0.74rem; }
  .intro-strip { min-height: 120px; gap: 0.8rem; }
  .library-section { width: calc(100% - 36px); padding: 3.5rem 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 0.75rem; }
  .section-heading h2 { font-size: 2.8rem; }
  .search-box { width: 100%; }
  .story-grid { grid-template-columns: 1fr; gap: 2.1rem; }
  .card-image { height: min(74vw, 360px); }
  .card-copy h3 { font-size: 1.55rem; }
  .card-copy p { min-height: 0; }
  .closing-note { align-items: flex-start; flex-wrap: wrap; gap: 0.8rem; padding: 2.5rem 20px; }
  .closing-symbol { width: 100%; }
  .closing-note > div { flex-basis: 100%; }
  .closing-note > a { margin-left: 2.8rem; }
  .site-footer { padding: 2.2rem 20px 1.2rem; }
  .footer-main { grid-template-columns: 1fr; gap: 0.8rem; padding-bottom: 1.5rem; }
  .footer-main > a:last-child { justify-self: start; }
  .footer-nav { gap: 0.8rem 1.05rem; }
  .article-shell { padding: 1.3rem 0 3rem; }
  .breadcrumbs { padding: 0 18px; }
  .article-page { padding: 1.5rem 20px 2.3rem; }
  .article-image { margin-right: 0; margin-left: 0; }
  .article-prose { font-size: 1.06rem; }
  .listing-hero { padding: 3rem 20px 1.7rem; }
  .category-library { padding-top: 2rem; }
  .static-page { width: calc(100% - 24px); margin: 1.5rem auto 3rem; padding: 1.5rem 1.2rem; }
}

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