:root {
  color-scheme: light;
  --bg: #f5eedb;
  --surface: #fffbf0;
  --text: #2a2619;
  --accent: #3e6a2a;
  --accent2: #c98a1b;
  --timber: #4a3524;
  --muted: #625a45;
  --line: #c9bda3;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { margin-top: .8rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.1rem;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.16;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 2rem + 2.7vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.9rem); }
h4, h5, h6 { font-size: 1.3rem; }
p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--timber); text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: #c98a1b40; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #dec891; color: var(--text); }
ul, ol { padding-left: 1.4em; }
li { padding-left: .2em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--timber); margin: 2.5rem 0; }
blockquote { margin: 2rem 0; border-left: 3px solid var(--accent2); padding: .5rem 1.5rem; font-family: var(--heading); font-size: 1.4rem; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: var(--surface); }
pre { max-width: 100%; overflow: auto; padding: 1rem; background: var(--surface); }
code { font-size: .9em; }
input, select, textarea, button { max-width: 100%; font: inherit; color: inherit; }
input, select, textarea { border: 1px solid var(--timber); background: var(--surface); padding: .65rem; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .7rem 1.2rem; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { padding-top: clamp(1.3rem, 3vw, 2.5rem); border-top: 5px solid var(--timber); background: var(--surface); }
.header-inner { text-align: center; }
.brand { display: inline-block; color: var(--timber); font-family: var(--heading); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); line-height: 1.2; letter-spacing: -.045em; text-decoration: none; }
.brand::after { content: ''; display: block; height: 3px; width: 2.4rem; background: var(--accent2); margin: 1rem auto; }
.site-nav { margin-top: .5rem; border-top: 1px solid var(--line); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem clamp(.8rem, 2.1vw, 2rem); list-style: none; margin: 0; padding: .55rem 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: block; padding: .5rem 0; color: var(--text); font-size: .8125rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; }
.page-home .site-nav a[href='index.html'] { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent2); text-decoration-thickness: 2px; }

.hero { padding-block: clamp(2.5rem, 5vw, 5rem); border-bottom: 1px solid var(--timber); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-text, .hero-media, .split-text, .split-media { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; line-height: 1.7; margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; width: 1.7rem; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.7rem + 3.1vw, 4.75rem); margin-bottom: 1.6rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.8; color: var(--muted); }
.hero .lead { font-size: clamp(1rem, .94rem + .2vw, 1.1rem); }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 2rem; min-height: 3.2rem; padding: .75rem 1.4rem; border: 1px solid var(--timber); font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.btn::after { content: '\2192'; font-size: 1.25rem; font-weight: 400; }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent2); }
.btn-primary:hover { background: var(--timber); color: var(--surface); transform: translateY(-2px); }
.hero-media { position: relative; padding: .65rem; border: 1px solid var(--timber); background: var(--surface); }
.hero-media::after { content: ''; position: absolute; bottom: -1rem; right: 1.7rem; width: 3rem; height: 2rem; background: var(--accent2); border: 1px solid var(--timber); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-position: center; }

.page-home main { counter-reset: chapter; }
.section { counter-increment: chapter; padding-block: clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--timber); }
.section > .wrap { position: relative; padding-left: clamp(4.5rem, 9vw, 8rem); }
.section > .wrap::before { content: counter(chapter, decimal-leading-zero); position: absolute; left: 0; top: -.12em; font-family: var(--heading); font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1; letter-spacing: -.07em; color: var(--accent); }
.section-title { max-width: 24ch; margin-bottom: 1.5rem; }
.section-intro { max-width: 66ch; color: var(--muted); margin-bottom: 2.25rem; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.split-text p { font-size: clamp(.975rem, .94rem + .15vw, 1.0625rem); }
.split-media { margin-top: .4rem; padding-left: 1rem; border-left: 1px solid var(--timber); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; }
.section-feature { background: var(--surface); }
.section-feature .split-media img { aspect-ratio: 1; }
.section-feature .split-media { align-self: center; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; counter-reset: entry; }
.card { counter-increment: entry; display: flex; flex-direction: column; position: relative; min-width: 0; padding: clamp(1.4rem, 3vw, 2.25rem); border: 1px solid #8b7b60; background: var(--surface); box-shadow: inset 0 4px 0 var(--timber); transition: border-color .2s ease, background-color .2s ease; }
.card::before { content: counter(entry, upper-roman); margin-bottom: 1.5rem; font-family: var(--heading); font-size: 1.3rem; color: var(--accent); }
.card::after { content: ''; position: absolute; top: 0; right: 1rem; height: 1.3rem; border-left: 1px solid var(--timber); }
.card:hover { border-color: var(--accent); background: #f9f5e6; }
.card-title { max-width: 21ch; }
.card-text { font-size: .975rem; color: var(--muted); }
.card-link { align-self: flex-start; margin-top: auto; padding-top: .7rem; font-size: .875rem; font-weight: 650; }
.card-link::after { content: '\2192'; display: inline-block; margin-left: 1rem; }
.card-grid + p { max-width: 68ch; font-size: 1rem; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem; margin: 2rem 0; padding: 0; list-style: none; }
.fact { padding: 1rem 0; border-block: 1px solid var(--timber); }
.fact strong { display: block; font-family: var(--heading); font-weight: 400; font-size: 2rem; color: var(--accent); }
.section-partners { background: #eee5cd; }
.section-partners .section-title { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.5rem); }
.partner-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.partner { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent2); }
.partner-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: .875rem; font-weight: 600; }
.partner-phrase { font-family: var(--heading); font-size: clamp(1.5rem, 1.3rem + .6vw, 2rem); margin: .8rem 0; }
.partner-desc { font-size: .95rem; color: var(--muted); }

.article { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(4rem, 8vw, 8rem); }
.page-sub .site-header { border-bottom: 1px solid var(--timber); }
.article > .wrap { max-width: 51rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .7rem; color: var(--muted); font-size: .8rem; line-height: 1.6; margin-bottom: clamp(2rem, 4vw, 4rem); }
.breadcrumb span { min-width: 0; }
.page-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--timber); }
.page-header::before { content: ''; display: block; width: 3rem; height: 4px; background: var(--accent2); margin-bottom: 1.5rem; }
.page-header h1 { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem); margin-bottom: 1.6rem; }
.page-header .lead { font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); }
.article-figure { margin: 2.5rem 0; }
.article-figure img { width: 100%; max-height: 38rem; border: 1px solid var(--timber); padding: .45rem; background: var(--surface); }
.article-figure img[height='1350'] { aspect-ratio: 4 / 3; object-position: center; }
.article-figure figcaption { padding-left: .8rem; border-left: 2px solid var(--accent2); }
.prose { max-width: 66ch; margin-inline: auto; counter-reset: passage; }
.prose h2 { counter-increment: passage; margin-top: 3rem; padding-top: 1.7rem; border-top: 1px solid var(--line); font-size: clamp(1.65rem, 1.4rem + 1vw, 2.3rem); }
.prose h2::before { content: counter(passage, decimal-leading-zero); display: block; margin-bottom: .6rem; font-family: var(--heading); font-size: 1.5rem; line-height: 1; color: var(--accent); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose p { margin-bottom: 1.5rem; }
.prose a { overflow-wrap: anywhere; }
.prose li { margin-bottom: .65rem; }
.note { padding: 1.4rem 1.6rem; background: var(--surface); border-left: 3px solid var(--accent2); margin-block: 2rem; color: var(--muted); }
.site-footer { padding-block: 2.5rem; color: var(--surface); background: var(--timber); border-top: 4px solid var(--accent2); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem 3rem; align-items: center; }
.footer-note { max-width: 35rem; font-family: var(--heading); font-size: 1.1rem; line-height: 1.6; margin: 0; }
.footer-nav { flex-shrink: 0; }
.footer-nav ul { gap: .5rem 1.3rem; }
.footer-nav a { color: var(--surface); display: inline-block; padding-block: .5rem; font-size: .8rem; }
.site-footer :focus-visible { outline-color: var(--surface); }

@media (min-width: 1400px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .hero-media img { aspect-ratio: 1; }
}
@media (max-width: 1000px) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.5rem); }
  .split { grid-template-columns: 1.2fr 1fr; gap: 1.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-shrink: 1; }
  .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 19ch; font-size: clamp(2.5rem, 6.5vw, 3.7rem); }
  .hero-media { margin-top: .7rem; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .section > .wrap { padding-left: 0; }
  .section > .wrap::before { position: static; display: block; margin-bottom: 1.5rem; font-size: 3.5rem; }
  .split { gap: 1.75rem; }
  .split::before { margin-bottom: 0 !important; }
  .split-media { margin-top: 0; }
  .split-media img, .section-feature .split-media img { aspect-ratio: 3 / 2; }
  .section-title { max-width: 27ch; }
  .site-nav ul { column-gap: 1.2rem; }
  .site-nav a { font-size: .78rem; }
}
@media (max-width: 480px) {
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .75rem; padding-block: .7rem; text-align: left; }
  .site-nav a { line-height: 1.5; min-height: 2.75rem; display: flex; align-items: center; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.5rem; }
  .card::before { margin-bottom: .8rem; }
  .page-header h1 { font-size: 2.25rem; }
  .breadcrumb { margin-bottom: 2rem; }
  .footer-nav ul { display: block; }
  .hero-media img { aspect-ratio: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-nav, .skip-link, .hero-actions, .footer-nav { display: none; }
  .wrap { width: 100%; }
  .site-header, .site-footer, .section, .card { background: white; color: black; }
  .site-footer { border-top: 1px solid black; }
  .hero-inner, .split { display: block; }
  .hero-media { max-width: 22rem; margin-block: 2rem; }
  .article { padding-bottom: 0; }
  h1, h2, h3 { break-after: avoid; }
  figure, .card, .partner { break-inside: avoid; }
  a { color: black; }
}
