:root {
  --bg: #efe7d3;
  --surface: #faf6ea;
  --text: #25301f;
  --accent: #2f5d3a;
  --accent2: #a8472f;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #25301f05 3px 4px), repeating-linear-gradient(90deg, transparent 0 5px, #25301f06 5px 6px);
  color: var(--text);
  font: 400 clamp(1rem, .94rem + .2vw, 1.125rem)/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
.page-home main { counter-reset: chapter; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1240px); margin-inline: auto; }
:is(h1, h2, h3, h4, h5, h6) { font-family: var(--heading); color: var(--accent); line-height: 1.15; font-weight: 600; text-wrap: balance; margin: 0 0 1.2rem; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3vw, 4.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.4rem, 1.1rem + .7vw, 1.9rem); }
h4, h5, h6 { font-size: 1.2rem; }
p { margin: 0 0 1.25rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .18s ease, background-color .18s ease; }
a:hover { color: var(--accent2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--surface); }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .875rem; padding-top: .8rem; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .35rem; }
blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 4px solid var(--accent2); font-family: var(--heading); font-size: 1.3rem; }
hr { border: 0; height: 7px; margin: 2.5rem 0; background: repeating-linear-gradient(135deg, var(--accent) 0 1px, transparent 1px 5px); }
strong, b { font-weight: 700; }
small { font-size: .85em; }
code, pre { font-family: ui-monospace, monospace; background: var(--bg); }
pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border: 1px solid var(--accent); text-align: left; }
th { background: var(--bg); }
button, input, select, textarea { max-width: 100%; font: inherit; color: inherit; border: 1px solid var(--accent); background: var(--surface); padding: .65rem; border-radius: 0; }
button, summary { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 6px solid var(--accent); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 3px double var(--accent); }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; font: 700 clamp(1.4rem, 1.2rem + .6vw, 1.9rem)/1.2 var(--heading); text-decoration: none; letter-spacing: -.035em; }
.brand::before { content: ''; width: 27px; height: 27px; background: var(--accent2); clip-path: polygon(50% 0, 61% 28%, 85% 15%, 72% 39%, 100% 50%, 72% 61%, 85% 85%, 61% 72%, 50% 100%, 39% 72%, 15% 85%, 28% 61%, 0 50%, 28% 39%, 15% 15%, 39% 28%); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: block; padding-block: .5rem; font-size: .875rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.hero { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.hero-inner { display: grid; gap: 2.5rem; }
.hero-text { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); align-items: start; }
.eyebrow { grid-column: 1 / -1; margin-bottom: 1.4rem; color: var(--accent2); text-transform: uppercase; font-size: .75rem; font-weight: 750; letter-spacing: .17em; }
.hero h1 { grid-column: 1; grid-row: 2 / 4; margin-bottom: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.75; }
.hero .lead { font-size: clamp(1rem, .95rem + .15vw, 1.1rem); }
.hero-actions { grid-column: 2; margin-top: .3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.4rem; border: 2px solid var(--accent); text-decoration: none; font-weight: 650; font-size: .9rem; box-shadow: 3px 3px 0 var(--text); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn-primary { color: var(--surface); background: var(--accent); }
.btn-primary:hover { color: var(--surface); background: var(--text); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--text); }
.hero-media { position: relative; padding: clamp(15px, 2.4vw, 30px); border: 3px solid var(--accent); background: conic-gradient(from 45deg, var(--accent) 25%, var(--surface) 0 50%, var(--accent) 0 75%, var(--surface) 0) 0 0 / 20px 20px; box-shadow: 6px 6px 0 var(--accent); }
.hero-media::after { content: ''; position: absolute; inset: 6px; border: 2px solid var(--surface); pointer-events: none; }
.hero-media img { width: 100%; height: clamp(230px, 31vw, 410px); border: 7px solid var(--surface); outline: 2px solid var(--accent); object-position: center 48%; }
.section { padding-block: clamp(2.75rem, 5vw, 5rem); position: relative; counter-increment: chapter; }
.section::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); max-width: 1240px; margin-inline: auto; height: 8px; border-block: 1px solid var(--accent); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--accent) 4px 5px); }
.section-title { max-width: 26ch; }
.section-title::before { content: counter(chapter, decimal-leading-zero); display: block; width: fit-content; padding: .2rem .5rem; margin-bottom: 1rem; border: 2px solid var(--accent2); color: var(--accent2); font: 700 .8rem/1.25 var(--body); letter-spacing: .08em; transform: rotate(-3deg); }
.section-intro { max-width: 78ch; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { min-width: 0; display: flex; flex-direction: column; padding: .65rem .65rem 1.3rem; background: var(--surface); border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); }
.card > img { width: 100%; aspect-ratio: 4 / 3; border-bottom: 3px solid var(--accent); }
.card-title { margin: 1.2rem .65rem .65rem; }
.card-text { margin-inline: .65rem; font-size: .95rem; line-height: 1.7; }
.card-link { align-self: flex-start; margin: auto .65rem 0; padding-block: .35rem; font-weight: 700; font-size: .875rem; }
.card-link::after { content: ' →'; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { padding: .65rem; border: 3px double var(--accent); background: var(--surface); transform: rotate(1deg); }
.split-media img { width: 100%; aspect-ratio: 1 / 1; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.fact { margin: 0; padding: 1rem; border-block: 2px solid var(--accent); background: var(--surface); }
.fact dt, .fact strong { color: var(--accent); font-weight: 700; }
.fact dd { margin: .5rem 0 0; }
.section-partners { background: #faf6ea80; }
.section-partners .section-title { font-size: clamp(1.75rem, 1.4rem + .8vw, 2.25rem); }
.section-partners .section-intro { font-size: .95rem; }
.partner-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.partner { min-width: 0; margin: 0; padding: 1rem; background: var(--surface); border: 1px solid #61715a; }
.partner-link { display: block; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.55; }
.partner-phrase { margin: .85rem 0 .5rem; font-size: .9rem; font-weight: 700; line-height: 1.4; }
.partner-desc { margin: 0; font-size: .8125rem; line-height: 1.65; }
.article { padding-block: clamp(1.75rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem); }
.article > .wrap { max-width: 820px; background: var(--surface); padding: clamp(1.25rem, 4vw, 3.5rem); border: 1px solid var(--accent); border-top: 5px solid var(--accent); box-shadow: 5px 5px 0 #2f5d3a22; }
.breadcrumb { font-size: .8rem; line-height: 1.6; margin-bottom: 2.25rem; }
.breadcrumb span { margin-left: .2rem; }
.page-header { padding-bottom: 1.5rem; border-bottom: 3px double var(--accent); margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(2.05rem, 1.45rem + 2vw, 3.4rem); }
.page-header .lead { margin-bottom: 0; }
.article-media { margin-block: 2rem 2.5rem; padding: .6rem; border: 2px solid var(--accent); background: var(--bg); }
.article-media img { width: 100%; max-height: 580px; object-fit: contain; }
.prose { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.85; }
.prose h2 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.15rem); margin-block: 2.75rem 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose > :last-child { margin-bottom: 0; }
.prose a { overflow-wrap: anywhere; }
.note { margin-block: 2rem; padding: 1.2rem 1.4rem; background: var(--bg); border-left: 5px solid var(--accent2); border-block: 1px solid var(--accent2); }
.note p:last-child { margin-bottom: 0; }
.site-footer { background: var(--accent); color: var(--surface); border-top: 6px double var(--bg); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.footer-note { max-width: 60ch; margin: 0; font-size: .85rem; }
.footer-nav ul { gap: .5rem 1.25rem; }
.footer-nav a { display: inline-block; padding-block: .25rem; color: var(--surface); font-size: .8rem; }
.footer-nav a:hover { text-decoration-thickness: 2px; }
.site-footer a:focus-visible { outline-color: var(--surface); }
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card { grid-column: span 2; }
  .card:nth-last-child(-n+2) { grid-column: span 3; }
  .card:nth-last-child(-n+2) > img { aspect-ratio: 2 / 1; }
}
@media (max-width: 1000px) {
  .header-inner { flex-direction: column; gap: .75rem; }
  .site-nav ul { justify-content: center; }
  .partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 720px) {
  .hero-text { display: block; }
  .hero h1 { max-width: 21ch; margin-bottom: 1.5rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-inner { gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 460px; width: 100%; justify-self: center; }
  .split-media img { aspect-ratio: 4 / 3; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav ul { column-gap: 1rem; }
  .site-nav a { font-size: .8125rem; }
}
@media (max-width: 460px) {
  .card-grid, .partner-list { grid-template-columns: 1fr; }
  .card > img { aspect-ratio: 3 / 2; }
  .hero-media { box-shadow: 3px 3px 0 var(--accent); }
  .article > .wrap { width: calc(100% - 2rem); padding-inline: 1.1rem; }
  .breadcrumb { margin-bottom: 1.5rem; }
  .section-title { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .article > .wrap { background: white; color: black; }
  .site-header, .site-footer, .hero-actions, .skip-link, .section-partners { display: none; }
  .wrap, .article > .wrap { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; }
  .article { padding: 0; }
  h1, h2, h3 { break-after: avoid; }
  figure, .card { break-inside: avoid; }
}
.page-sub main { width: 100%; }
.section-feature { background-color: #faf6ea50; }
