:root {
  color-scheme: light;
  --bg: #f7f1e1;
  --surface: #fffdf7;
  --text: #221d2b;
  --accent: #6b3fa0;
  --accent2: #c7772b;
  --amber-ink: #87501b;
  --muted: #60574f;
  --rule: #c8bda8;
  --heading: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --body: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .94rem + .2vw, 1.125rem); line-height: 1.7; }
.page { min-width: 0; }
::selection { background: var(--accent); color: var(--surface); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; transition: color 160ms ease, background-color 160ms ease; }
a:hover { color: var(--amber-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .65em; font-family: var(--heading); line-height: 1.13; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.45rem, 4.5vw, 4.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 2.7vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.02em; }
h4, h5, h6 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .1em; }
figure { margin: 0; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); font-style: italic; }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule); }
blockquote { margin: 1.7rem 0; padding: 1rem 1.5rem; border-block: 1px solid var(--accent2); color: var(--amber-ink); font-size: clamp(1.3rem, 2vw, 1.8rem); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
small { font-size: .85em; }
code, pre { font-family: monospace; font-size: .9em; background: var(--surface); }
pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .65rem; border-bottom: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
th { background: var(--surface); }
button, input, select, textarea { max-width: 100%; font: inherit; color: inherit; }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { padding-top: clamp(1.2rem, 3vw, 2.6rem); }
.header-inner { text-align: center; border-top: 4px double var(--text); }
.brand { display: inline-block; margin: .35rem 0 .55rem; color: var(--text); font-family: var(--heading); font-weight: 700; font-size: clamp(2rem, 5.5vw, 4.5rem); letter-spacing: -.055em; line-height: 1.3; text-decoration: none; }
.site-nav { border-top: 1px solid var(--text); border-bottom: 4px double var(--text); }
.site-nav ul, .footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.site-nav li { padding: 0; }
.site-nav a { display: block; padding: .65rem clamp(.75rem, 2vw, 1.8rem); color: var(--text); font-size: .9rem; letter-spacing: .055em; text-decoration: none; }
.site-nav a:hover { background: var(--surface); color: var(--accent); text-decoration: underline; }
.page-home .site-nav a[href="index.html"] { color: var(--accent); text-decoration: underline; }

.hero { padding-block: clamp(1.8rem, 4vw, 3.5rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-text { min-width: 0; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: .45em; }
.lead { font-size: clamp(1.13rem, 1.5vw, 1.35rem); line-height: 1.6; }
.hero .lead { max-width: 46ch; }
.hero-actions { margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.25rem; border: 1px solid var(--accent); font-size: .95rem; font-weight: bold; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.hero-media { border-bottom: 3px double var(--accent2); padding-bottom: .65rem; }
.hero-media img { aspect-ratio: 1.05; object-position: center; filter: saturate(.8); }

.section { padding-block: clamp(1.7rem, 3.5vw, 3rem); }
.section > .wrap { border-top: 1px solid var(--text); padding-top: clamp(1.4rem, 2.7vw, 2.2rem); }
.section-title { margin-bottom: .55em; }
.section-intro { max-width: 65ch; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.75rem; border-block: 1px solid var(--rule); }
.card { padding: 1.65rem 2rem 1.65rem 0; display: flex; flex-direction: column; align-items: flex-start; }
.card + .card { border-left: 1px solid var(--rule); padding-left: 2rem; padding-right: 0; }
.card-title { max-width: 26ch; }
.card-text { max-width: 48ch; }
.card-link { margin-top: auto; font-style: italic; font-weight: bold; }
.card-link::after { content: ' →'; display: inline-block; margin-left: .3em; transition: transform 160ms ease; }
.card-link:hover::after { transform: translateX(3px); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.split-text { column-count: 2; column-gap: 2rem; column-rule: 1px solid var(--rule); }
.split-text .section-title { column-span: all; margin-bottom: 1.4rem; }
.split-text p { margin-bottom: 0; }
.split-text p + p { break-before: column; color: var(--amber-ink); font-style: italic; font-size: clamp(1.2rem, 1.65vw, 1.5rem); line-height: 1.55; border-top: 3px double var(--accent2); padding-top: .8rem; }
.split-media { padding: .5rem; border: 1px solid var(--rule); background: var(--surface); }
.split-media img { aspect-ratio: 1.2; object-position: center; filter: saturate(.8); }
.fact-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: facts; }
.fact { padding: 0 1.35rem; border-left: 1px solid var(--rule); font-size: 1rem; line-height: 1.55; counter-increment: facts; }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact::before { content: counter(facts, decimal-leading-zero); display: block; color: var(--accent); font-size: 2rem; line-height: 1; margin-bottom: .8rem; font-style: italic; }

.section-partners { padding-bottom: clamp(3rem, 5vw, 5rem); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.8rem 0 0; border-top: 3px double var(--accent2); }
.partner { min-width: 0; padding: 1.25rem 1.7rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
.partner:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 1.7rem; padding-right: 0; }
.partner-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: .85rem; line-height: 1.5; }
.partner-phrase { margin: .5rem 0 .4rem; font-family: var(--heading); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.partner-phrase::first-letter { text-transform: uppercase; }
.partner-desc { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--muted); }

.article { padding-block: 1.6rem clamp(3rem, 6vw, 6rem); }
.article > .wrap { max-width: 780px; }
.breadcrumb { margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.breadcrumb a { margin-right: .35rem; }
.breadcrumb span { margin-left: .35rem; }
.page-header { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 3px double var(--accent2); }
.page-header h1 { font-size: clamp(2.5rem, 4.4vw, 4.2rem); }
.page-header .lead { margin: 0; color: var(--muted); }
.prose { font-size: clamp(1.06rem, 1.2vw, 1.2rem); line-height: 1.8; }
.prose > p:first-child::first-letter { float: left; font-family: var(--heading); font-size: 4.5em; line-height: .8; margin: .09em .12em 0 0; color: var(--accent); }
.prose > p:first-child::after { content: ''; display: block; clear: both; }
.prose h2 { border-top: 1px solid var(--rule); padding-top: 1.3rem; margin-top: 2.2rem; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.prose h3 { margin-top: 1.7rem; }
.prose li { margin-bottom: .6em; }
.note { padding: 1.4rem 1.6rem; margin-top: 2.4rem; border-block: 1px solid var(--accent2); border-left: 4px solid var(--accent2); background: var(--surface); color: var(--amber-ink); font-size: 1.15em; font-style: italic; line-height: 1.6; }
.note p { margin: 0; }
.site-footer { padding-block: 2rem; background: var(--surface); border-top: 4px double var(--text); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-note { max-width: 49ch; margin: 0; font-size: .85rem; color: var(--muted); }
.footer-nav ul { justify-content: flex-end; gap: .5rem 1.1rem; }
.footer-nav li { padding: 0; }
.footer-nav a { display: inline-block; padding-block: .2rem; font-size: .85rem; }

@media (max-width: 900px) {
  .hero-inner { gap: 1.75rem; }
  .hero h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
  .hero-media img { aspect-ratio: .8; }
  .split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .split-text { column-count: 1; }
  .split-text p + p { margin-top: 1rem; }
  .split-media img { aspect-ratio: .8; }
  .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { padding: .65rem .3rem; font-size: .82rem; letter-spacing: .02em; }
  .site-nav li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .site-nav li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hero-inner, .split, .card-grid, .partner-list { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .hero-media img { aspect-ratio: 1.55; }
  .hero .lead { font-size: 1.12rem; }
  .section { padding-block: 1.4rem; }
  .card, .card + .card { padding: 1.4rem 0; border-left: 0; }
  .card + .card { border-top: 1px solid var(--rule); }
  .card-title { max-width: none; }
  .split-media img { aspect-ratio: 1.6; }
  .fact { padding-inline: 1rem 0; font-size: .95rem; }
  .fact:nth-child(odd) { padding-inline: 0 1rem; }
  .partner, .partner:nth-child(even) { padding: 1.2rem 0; border-left: 0; }
  .page-header h1 { font-size: clamp(2.3rem, 8.5vw, 3.25rem); }
  .breadcrumb { margin-bottom: 1.5rem; }
  .note { padding: 1.1rem; }
}

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

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-nav, .skip-link, .hero-actions, .footer-nav { display: none; }
  .article > .wrap { max-width: none; }
  a { color: inherit; }
  h1, h2, h3 { break-after: avoid; }
  .card, .partner, .note, figure { break-inside: avoid; }
}

.page-sub main { min-height: 55vh; }
.section-feature .section-title { max-width: 23ch; }
