:root {
  --bg: #eef3dc;
  --surface: #fbfdf3;
  --text: #2a2418;
  --accent: #2c4f9e;
  --accent2: #d6991a;
  --muted: #595541;
  --line: #c5c9ae;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

*, *::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, .95rem + .2vw, 1.125rem); line-height: 1.75; }
.page { min-width: 0; }
.page-home main { padding-top: .01px; }
.page-sub { background: linear-gradient(90deg, #e7edcf, var(--bg) 18%, var(--bg) 82%, #e7edcf); }
main { display: block; }
::selection { color: var(--text); background: #efd490; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.15; margin: 0 0 .65em; overflow-wrap: normal; word-break: normal; hyphens: auto; text-wrap: balance; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { overflow-wrap: normal; word-break: normal; }
h1 { font-size: clamp(2.25rem, 1.5rem + 2.7vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 1.2rem + .7vw, 2rem); }
h4, h5, h6 { font-size: 1.25rem; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .15em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 700; }
small, figcaption { font-size: max(12px, .85em); }
figcaption { margin-top: .8rem; color: var(--muted); }
blockquote { margin: 2rem 0; padding: .75rem 1.5rem; border-left: 3px solid var(--accent2); font-family: var(--heading); font-size: 1.35em; }
hr { border: 0; border-top: 1px solid var(--accent2); margin: 2.5rem 0; }
mark { background: #efd490; color: var(--text); padding: .08em .2em; }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: var(--surface); }
.wrap { width: min(1360px, calc(100% - clamp(2rem, 5vw, 5rem))); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1.25rem; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-top: 5px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; }
.brand { flex-shrink: 0; font-family: var(--heading); font-size: clamp(1.9rem, 1.5rem + .8vw, 2.6rem); line-height: 1.1; letter-spacing: -.045em; text-decoration: none; }
.brand::before { content: ''; display: inline-block; width: .45em; height: .45em; margin-right: .4em; background: var(--accent2); box-shadow: inset 0 0 0 3px var(--surface); border: 1px solid var(--accent2); transform: rotate(45deg); vertical-align: middle; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; padding: 0; margin: 0; }
.site-nav ul { justify-content: flex-end; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: inline-block; padding-block: .35rem; color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); border-color: var(--accent2); }
.hero { position: relative; isolation: isolate; margin: clamp(1rem, 3vw, 3rem) auto 0; width: min(1456px, calc(100% - 2rem)); border: 1px solid var(--accent2); background: radial-gradient(ellipse at 80% 12%, #f6e6a9 0, transparent 60%), var(--surface); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-conic-gradient(from -20deg at 80% 12%, transparent 0deg 12deg, #d6991a09 12deg 24deg); }
.hero::after { content: ''; position: absolute; inset: 5px; pointer-events: none; border: 5px solid transparent; border-image: repeating-linear-gradient(45deg, var(--accent) 0 3px, transparent 3px 7px, var(--accent2) 7px 10px, transparent 10px 14px) 5; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 5.5rem); }
.hero-text { min-width: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; display: inline-block; width: 2rem; height: 2px; vertical-align: middle; background: var(--accent2); margin-right: .8rem; }
.hero h1 { font-size: clamp(2.15rem, 1.2rem + 2.6vw, 3.7rem); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.35rem); line-height: 1.65; }
.hero-text > p:not(.lead):not(.eyebrow) { font-size: 1rem; color: var(--muted); }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .8rem 1.5rem; font-size: .9rem; font-weight: 600; border: 1px solid var(--accent); text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.btn-primary { color: var(--surface); background: var(--accent); box-shadow: 4px 4px 0 var(--accent2); }
.btn-primary:hover { background: #213e7e; transform: translateY(-2px); }
.hero-media, .card-media, .split-media, .article-media { padding: clamp(.65rem, 1.6vw, 1.5rem); background: var(--surface); border: 1px solid #a7a98d; outline: 1px solid #d6991a70; outline-offset: -5px; box-shadow: 0 12px 24px -18px #2a241860; }
.hero-media { transform: rotate(1.5deg); margin-block: 1rem; }
.hero-media img { aspect-ratio: 4 / 5; }
.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-title { max-width: 26ch; }
.section-title::before { content: ''; display: block; width: 3rem; height: 3px; background: var(--accent2); margin-bottom: 1.1rem; }
.section-intro { max-width: 72ch; color: var(--muted); margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 3rem; align-items: start; margin-top: 3rem; padding-inline: 0; }
.card { min-width: 0; position: relative; }
.card:nth-child(even) { margin-top: 0; }
.card-media { margin-bottom: 1.7rem; transition: transform .25s ease, box-shadow .25s ease; }
.card-media img { aspect-ratio: 3 / 2; }
.card:nth-child(3n + 1) .card-media img { aspect-ratio: 3 / 2; }
.card-title { color: var(--accent); margin-inline: 1rem; margin-bottom: .5rem; }
.card-text { margin: 0 1rem 1.1rem; max-width: 58ch; font-size: 1.0625rem; line-height: 1.65; }
.card-link { display: inline-block; margin-inline: 1rem; padding-block: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-link::after { content: ' ↗'; margin-left: .4rem; }
.card:focus-within .card-media { outline-color: var(--accent); }
.section-feature { background: #e4eacb; border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.split-text { min-width: 0; }
.split-text p { font-size: 1rem; }
.split-media { transform: rotate(-1deg); }
.split-media img { aspect-ratio: 1 / 1; }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-block: 2rem; padding: 0; list-style: none; }
.fact { padding: 1.25rem 0; border-top: 2px solid var(--accent2); }
.fact strong { display: block; font-family: var(--heading); font-size: 1.7rem; color: var(--accent); }
.section-partners { border-top: 3px solid var(--accent2); background: #e9edda; padding-block: 3rem; }
.section-partners .section-title { font-size: 1.8rem; }
.section-partners .section-title::before { display: none; }
.section-partners .section-intro { font-size: 1rem; max-width: 85ch; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.partner { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent2); border-radius: 3px; }
.partner-link { display: block; max-width: 100%; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.partner-phrase { order: -1; margin: 0; font-family: var(--heading); font-size: 1.25rem; font-weight: 400; line-height: 1.3; color: var(--text); }
.partner-desc { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 1080px; }
.breadcrumb { color: var(--muted); font-size: .8rem; margin: 0 auto 2.5rem; max-width: 85ch; }
.breadcrumb a { margin-right: .4rem; }
.breadcrumb span { margin-left: .4rem; }
.page-header { max-width: 68ch; margin: 0 auto 3rem; }
.page-header h1::before { content: ''; display: block; width: 4rem; height: 3px; background: var(--accent2); margin-bottom: 1.5rem; }
.page-header .lead { margin-top: 1.7rem; color: var(--muted); }
.article-media { margin: 0 auto clamp(3rem, 5vw, 5rem); }
.article-media img { aspect-ratio: 16 / 9; }
.prose { max-width: 68ch; overflow-wrap: anywhere; }
.article .prose { margin-inline: auto; }
.prose h2 { font-size: clamp(1.65rem, 1.4rem + .9vw, 2.3rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.article .prose > p:first-of-type::first-letter { float: left; font-family: var(--heading); font-size: 3.8em; line-height: .85; padding: .12em .13em 0 0; color: var(--accent); }
.prose li { margin-block: .6rem; }
.note { max-width: 68ch; margin: 3rem auto 0; padding: 1.3rem 1.5rem; border-left: 3px solid var(--accent2); background: var(--surface); font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 2.5rem; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-note { max-width: 64ch; margin: 0; color: var(--muted); font-size: .8rem; }
.footer-nav { font-size: .8rem; }
.footer-nav ul { gap: .5rem 1.2rem; }
.footer-nav a { display: inline-block; padding-block: .25rem; }

/* Give text-only sections a complete editorial layout. */
.page-home .section:not(.section-feature):not(.section-partners) > .wrap > .section-title { max-width: 100%; }
.page-home .section > .wrap > .prose { max-width: none; }
.page-home .section > .wrap > .prose p:last-child { margin-bottom: 0; }
@media (min-width: 761px) {
  .page-home .section > .wrap > .section-intro { columns: 2; column-gap: clamp(2rem, 4vw, 4rem); margin-bottom: 0; }
  .page-home .section > .wrap:has(> .prose):not(:has(> .card-grid)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover .card-media { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 18px 28px -18px #2a241870; }
}
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  .site-nav ul { justify-content: center; }
  .hero-inner { gap: 2rem; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { width: calc(100% - 3rem); }
  .hero-media { width: min(100%, 540px); margin-inline: auto; transform: none; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.1rem); }
  .hero-text > p:not(.lead):not(.eyebrow) { font-size: 1rem; }
  .card-grid { gap: 2.5rem 1.5rem; padding: 0; }
  .card-title, .card-text, .card-link { margin-inline: 0; }
  .card-title { font-size: 1.55rem; }
  .split-media { max-width: 560px; margin-inline: auto; transform: none; }
  .split-media img { aspect-ratio: 3 / 2; }
  .footer-inner { flex-direction: column; }
  .article-media img { aspect-ratio: 3 / 2; }
}
@media (max-width: 540px) {
  .header-inner { padding-block: 1.1rem; gap: .85rem; }
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; font-size: .9375rem; padding-block: .45rem; }
  .hero { width: calc(100% - 1rem); }
  .eyebrow { font-size: .75rem; letter-spacing: .13em; }
  .card-grid, .partner-list, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 3rem; }
  .card:nth-child(even) { margin-top: 0; }
  .card-media { padding: .85rem; }
  .card-title { font-size: 1.85rem; }
  .card-text { font-size: 1rem; }
  .section-intro { margin-bottom: 2rem; }
  .partner-list { gap: .75rem; }
  .partner { padding: 1rem; gap: .5rem; }
  .partner-desc { font-size: .875rem; line-height: 1.5; }
  .page-header { margin-bottom: 2rem; }
  .breadcrumb { margin-bottom: 2rem; }
  .note { padding: 1rem; }
}
@media (max-width: 480px) {
  h1, .hero h1 { font-size: clamp(1.5rem, 6.5vw, 1.95rem); }
  h2, .prose h2, .section-partners .section-title { font-size: clamp(1.3rem, 5.5vw, 1.65rem); }
  h3, .card-title { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  .header-inner > *, .footer-inner > *, .hero-inner > *, .split > * { min-width: 0; max-width: 100%; }
}
@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; }
  .site-nav, .skip-link, .hero-actions, .footer-nav { display: none; }
  .wrap, .hero { width: 100%; }
  .hero::before, .hero::after { display: none; }
  .hero-media, .card-media, .split-media, .article-media { transform: none; box-shadow: none; }
  .article { padding: 1rem 0; }
  a { color: black; }
  h2, h3 { break-after: avoid; }
  figure, .card { break-inside: avoid; }
}
