:root {
  color-scheme: light;
  --bg: #d9dcd3;
  --surface: #efefeb;
  --text: #232526;
  --accent: #8a2c2f;
  --accent2: #5d6166;
  --muted: #595d61;
  --rule: #b6b9b2;
  --heading: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --body: 'Helvetica Neue', 'Segoe UI', Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --reading: 62ch;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, .92rem + .25vw, 1.1875rem)/1.85 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; }
.page-sub main { background: var(--surface); }
::selection { background: var(--accent); color: var(--surface); }
a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { padding-top: .75rem; color: var(--muted); font-size: max(.75rem, .8em); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  margin: 0 0 1.2rem;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.1vw, 4.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.7rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.9rem); }
h4, h5, h6 { font-size: 1.25rem; }
p { margin: 0 0 1.4em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.5em; }
li { padding-left: .2em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 600; }
small { font-size: max(.75rem, .82em); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 2px solid var(--accent); font-family: var(--heading); font-size: 1.2em; }
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .7em; border-bottom: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 1rem; background: var(--bg); }
code { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; max-width: 100%; border: 1px solid var(--accent2); border-radius: 0; background: var(--surface); padding: .5em .75em; }
.wrap { width: min(var(--reading), calc(100% - var(--gutter) * 2)); 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 { border-top: 3px solid var(--accent); }
.header-inner > *, .site-nav li, .footer-nav li { min-width: 0; max-width: 100%; }
.header-inner { width: min(1200px, calc(100% - var(--gutter) * 2)); padding-block: 1.5rem 1.2rem; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.brand { font-family: var(--heading); font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); letter-spacing: -.025em; text-decoration: none; }
.site-nav { font-size: .75rem; line-height: 1.5; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a, .footer-nav a { display: inline-block; padding-block: .5rem; text-decoration-color: transparent; }
.site-nav a:hover, .footer-nav a:hover, .site-nav a[aria-current="page"] { text-decoration-color: var(--accent); }
.hero { padding-block: clamp(3.5rem, 7vw, 7rem) 0; }
.hero-inner { width: min(1100px, calc(100% - var(--gutter) * 2)); }
.hero-text { max-width: var(--reading); margin-inline: auto; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; margin-bottom: 1.65rem; }
.eyebrow::before { content: ''; display: inline-block; width: 1.5rem; height: 1px; background: var(--accent); margin-right: .8rem; vertical-align: middle; }
.hero h1 { margin-bottom: 1.75rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); line-height: 1.75; color: var(--muted); }
.hero-actions { margin-top: 1.9rem; }
.btn { display: inline-flex; align-items: center; gap: 1.25rem; min-height: 44px; font-size: .85rem; font-weight: 500; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid var(--accent); }
.btn-primary { color: var(--text); }
.btn-primary::after { content: '\2192'; color: var(--accent); transition: transform 160ms ease; }
.btn:hover::after { transform: translateX(3px); }
.hero-media { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.hero-media img { aspect-ratio: 2.5 / 1; object-position: center 55%; filter: grayscale(1); }
.section { padding-block: clamp(3.5rem, 6vw, 6rem) 0; counter-increment: chapter; }
.section > .wrap { border-top: 1px solid var(--rule); padding-top: 2.25rem; }
.section-title::before { content: counter(chapter, decimal-leading-zero) ' /'; display: block; color: var(--accent); font-family: var(--body); font-size: .75rem; letter-spacing: .13em; line-height: 1; margin-bottom: 1.3rem; font-variant-numeric: tabular-nums; }
.section-title { margin-bottom: 1.5rem; }
.section-intro { margin-bottom: 2rem; }
.card-grid { display: block; counter-reset: entry; margin-top: 2.5rem; }
.card { position: relative; counter-increment: entry; border-top: 1px solid var(--rule); padding: 1.9rem 0 1.9rem 3rem; }
.card:last-child { border-bottom: 1px solid var(--rule); }
.card::before { content: counter(entry, decimal-leading-zero); position: absolute; top: 2rem; left: 0; color: var(--accent); font: 400 1.15rem/1.4 var(--heading); }
.card-title { margin-bottom: .7rem; }
.card-text { font-size: .94em; margin-bottom: .75rem; color: var(--muted); }
.card-link { display: inline-block; font-size: .8rem; padding-block: .35rem; }
.split { display: flex; flex-direction: column; gap: 1.5rem; }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media img { aspect-ratio: 16 / 9; filter: grayscale(1); }
.section-feature .split-media { padding-top: .5rem; }
.fact-list { list-style: none; padding: 0; margin-bottom: 0; }
.fact { position: relative; padding: 1.25rem 0 1.25rem 1.5rem; border-top: 1px solid var(--rule); font-variant-numeric: oldstyle-nums; }
.fact::before { content: ''; position: absolute; top: 2.05rem; left: 0; width: 5px; height: 5px; background: var(--accent); }
.section-partners { padding-bottom: clamp(3.5rem, 6vw, 6rem); }
.section-partners .section-title { font-size: clamp(1.5rem, 1.3rem + .5vw, 1.85rem); }
.section-partners .section-intro { font-size: .85em; color: var(--muted); }
.partner-list { list-style: none; padding: 0; margin: 0; }
.partner { padding: 1.3rem 0; border-top: 1px solid var(--rule); font-size: .82em; line-height: 1.75; }
.partner-link { overflow-wrap: anywhere; word-break: normal; font-weight: 500; }
.partner-phrase { margin: .55rem 0 .25rem; }
.partner-desc { color: var(--muted); margin: 0; }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem); }
.breadcrumb { color: var(--muted); font-size: .75rem; line-height: 1.7; margin-bottom: clamp(2rem, 4vw, 4rem); }
.breadcrumb a { margin-right: .5rem; }
.breadcrumb span { margin-left: .5rem; }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2.3rem, 1.6rem + 2.3vw, 4rem); margin-bottom: 1.5rem; }
.page-header .lead { margin-bottom: 0; }
.article-figure { margin-block: 2.5rem 3rem; }
.article-figure img { aspect-ratio: 16 / 9; filter: grayscale(1); }
.prose { hyphens: auto; }
.prose h2 { border-top: 1px solid var(--rule); padding-top: 1.8rem; margin-top: 3rem; font-size: clamp(1.7rem, 1.4rem + .8vw, 2.2rem); }
.prose h3 { margin-top: 2rem; }
.prose > :last-child { margin-bottom: 0; }
.prose a { overflow-wrap: anywhere; }
.note { border-left: 2px solid var(--accent); background: var(--bg); padding: 1.25rem 1.5rem; margin-block: 2rem; font-size: .9em; }
.site-footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-note { font-size: .75rem; line-height: 1.8; color: var(--muted); margin: 0; max-width: 70ch; }
.footer-nav { font-size: .75rem; line-height: 1.5; }

@media (min-width: 1000px) {
  .article-figure { width: calc(100% + 6rem); margin-left: -3rem; }
}
@media (max-width: 600px) {
  .header-inner { gap: .65rem; padding-block: 1rem; }
  .site-nav { width: 100%; font-size: .75rem; }
  .site-nav ul { gap: 0 1rem; }
  .hero-media img { aspect-ratio: 1.55 / 1; }
  .eyebrow { font-size: .75rem; letter-spacing: .09em; }
  .card { padding-left: 2.25rem; }
  .section > .wrap { padding-top: 1.75rem; }
  .footer-nav ul { gap: .2rem 1rem; }
}
@media (max-width: 480px) {
  h1, .page-header h1 { font-size: clamp(1.2rem, 5.5vw, 1.65rem); }
  h2, .prose h2, .section-partners .section-title { font-size: clamp(1rem, 4.8vw, 1.4rem); }
  h3 { font-size: clamp(1rem, 5vw, 1.45rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body, .page-sub main { background: white; color: black; }
  .site-header, .skip-link, .hero-actions, .site-footer { display: none; }
  .wrap, .hero-inner { width: 100%; max-width: 70ch; }
  .article-figure { width: 100%; margin-left: 0; }
  .hero, .article { padding-top: 0; }
  .section { padding-top: 2rem; }
  h1, h2, h3 { break-after: avoid; }
  img, .card, .partner { break-inside: avoid; }
  p { orphans: 3; widows: 3; }
}
