:root {
  color-scheme: light;
  --bg: #f7efe1;
  --surface: #fffaf1;
  --text: #2b2321;
  --accent: #b0245a;
  --accent2: #1c4f8f;
  --muted: #66584e;
  --line: #c8b79e;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: system-ui, -apple-system, 'Segoe 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.8;
  -webkit-font-smoothing: antialiased;
}
.page { min-width: 0; }
main { display: block; }
::selection { background: var(--accent2); color: var(--surface); }
a { color: var(--accent2); text-underline-offset: .23em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .7em;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.25rem, 1.3rem + 2.7vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.3vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.45rem, 1.2rem + .65vw, 2rem); }
h4, h5, h6 { font-size: 1.25rem; }
ul, ol { padding-inline-start: 1.5rem; }
li { margin-block: .4rem; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 3px double var(--line); margin-block: 2.5rem; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-inline-start: 3px solid var(--accent); font-family: var(--heading); font-size: 1.3em; }
figcaption, small { font-size: .875rem; color: var(--muted); }
figcaption { padding-block: .75rem; text-align: center; }
button, input, textarea, select { font: inherit; max-width: 100%; }
code, pre { overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 1rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .65rem; border: 1px solid var(--line); text-align: start; overflow-wrap: anywhere; }
.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-top: 5px solid var(--accent2); border-bottom: 4px double var(--line); }
.header-inner { padding-block: 1.65rem 1.15rem; text-align: center; }
.brand { display: inline-block; color: var(--text); font-family: var(--heading); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.4rem); text-decoration: none; letter-spacing: -.035em; }
.brand::before { content: ''; display: inline-block; width: .55em; height: .55em; margin-inline-end: .6em; border: 3px double var(--accent); transform: rotate(45deg); vertical-align: .08em; }
.site-nav { margin-top: 1rem; }
.site-nav ul, .footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.7rem; padding: 0; margin: 0; list-style: none; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: .4rem 0; color: var(--accent2); text-decoration: none; font-size: .85rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { padding-block: clamp(2.5rem, 5vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); }
.hero-text { min-width: 0; text-align: center; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 2.5vw, 3.9rem); }
.lead { font-size: clamp(1.06rem, 1rem + .25vw, 1.22rem); line-height: 1.85; color: var(--muted); }
.hero .lead { text-align: start; font-size: clamp(1rem, .96rem + .15vw, 1.1rem); }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-block; max-width: 100%; padding: .9rem 1.4rem; border: 1px solid currentColor; text-decoration: none; font-size: .875rem; font-weight: 600; line-height: 1.5; text-align: center; transition: background-color .2s ease, transform .2s ease; }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 5px #ffffff65; }
.btn-primary:hover { background: #902047; color: var(--surface); border-color: #902047; transform: translateY(-2px); }
.hero-media { position: relative; padding: 10px; border: 4px double var(--accent2); border-radius: 48% 48% 4px 4px / 34% 34% 4px 4px; background: var(--surface); box-shadow: 12px 16px 0 #e9ddc8; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; border-radius: 48% 48% 0 0 / 34% 34% 0 0; }

.section { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-title { max-width: 23ch; margin-inline: auto; color: var(--accent2); }
.section-title::after, .page-header h1::after {
  content: '';
  display: block;
  width: 84px;
  height: 12px;
  margin: 1.25rem auto 0;
  background: repeating-conic-gradient(from 45deg, var(--accent2) 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
  border-block: 1px solid var(--accent2);
}
.section-intro { max-width: 69ch; margin: 0 auto 1.75rem; text-align: center; color: var(--muted); }
.section > .wrap > p:not(.section-intro) { max-width: 74ch; margin-inline: auto; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.3rem; margin-top: 3rem; }
.card { position: relative; grid-column: span 2; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 2.5rem 1.7rem 2rem; background: var(--surface); border: 4px double var(--accent2); text-align: center; }
.card::before { content: ''; width: 2.4rem; height: 2.8rem; border: 4px double var(--accent2); border-radius: 50% 50% 15% 15%; margin-bottom: 1.4rem; }
.card::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:last-child { border-color: var(--accent); }
.card:last-child::before { border-color: var(--accent); }
.card-title { font-size: clamp(1.5rem, 1.2rem + .55vw, 1.8rem); }
.card-text { font-size: .96rem; line-height: 1.75; color: var(--muted); }
.card-link { display: inline-block; margin-top: auto; padding-block: .35rem; font-size: .9rem; font-weight: 650; text-decoration-color: var(--accent); }
.card-link::after { content: '\2192'; display: inline-block; margin-inline-start: .6em; transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(3px); }
.section-feature { background: #eee4d2; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { padding: 9px; border: 4px double var(--accent2); background: var(--surface); transform: rotate(1.5deg); }
.split-media img { width: 100%; aspect-ratio: 1 / 1; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; margin-block: 2rem; list-style: none; }
.fact { padding: 1.25rem; border-block: 3px double var(--line); background: var(--surface); }
.fact dt, .fact strong { color: var(--accent2); }
.fact dd { margin: .5rem 0 0; }
.section-partners { padding-inline: 0; }
.section-partners > .wrap { max-width: 880px; padding: clamp(1.5rem, 4vw, 3.5rem); border: 4px double var(--accent2); outline: 1px solid var(--line); outline-offset: -10px; background: var(--surface); }
.partner-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.partner { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; min-width: 0; }
.partner + .partner { margin-top: 1.5rem; }
.partner-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 650; }
.partner-phrase { margin: .7rem 0; font-family: var(--heading); font-size: 1.3rem; }
.partner-desc { max-width: 65ch; margin: 0 auto; color: var(--muted); font-size: .95rem; }

.article { padding-block: 1.8rem clamp(3rem, 7vw, 7rem); }
.article > .wrap { max-width: 930px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem .65rem; font-size: .8rem; color: var(--muted); margin-bottom: 2.5rem; }
.page-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 4px double var(--line); }
.page-header h1 { font-size: clamp(2.2rem, 1.45rem + 2.2vw, 3.7rem); }
.page-header .lead { max-width: 66ch; margin: 1.8rem auto 0; }
.prose { max-width: 66ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); color: var(--accent2); margin-top: 2.4em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose p { hyphens: auto; }
.prose li::marker { color: var(--accent); }
.article-figure { margin: 2.5rem auto; padding: 8px; border: 4px double var(--accent2); background: var(--surface); }
.article-figure img { width: 100%; height: auto; }
.article-figure:has(img[height="1333"]) { max-width: 440px; border-radius: 48% 48% 0 0 / 30% 30% 0 0; }
.article-figure img[height="1333"] { border-radius: 48% 48% 0 0 / 30% 30% 0 0; }
.note { margin-block: 2rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); background: var(--surface); color: var(--muted); font-size: .95rem; }
.note > :last-child { margin-bottom: 0; }
.site-footer { border-top: 5px double var(--accent2); background: var(--surface); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-note { max-width: 58ch; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.footer-nav ul { gap: .3rem 1.3rem; }
.footer-nav a { display: inline-block; padding-block: .5rem; font-size: .8rem; }

@media (min-width: 1450px) {
  .hero-inner { gap: 5rem; }
  .hero-media img { aspect-ratio: 5 / 6; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: 680px; margin-inline: auto; }
  .hero-media { width: min(100%, 640px); margin: .5rem auto 1rem; border-radius: 45% 45% 0 0 / 45% 45% 0 0; }
  .hero-media img { aspect-ratio: 6 / 5; border-radius: 45% 45% 0 0 / 45% 45% 0 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card:nth-child(4) { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
  .card:last-child .card-text { max-width: 42ch; }
  .split { grid-template-columns: 1fr; }
  .split-text { max-width: 68ch; margin-inline: auto; }
  .split-media { max-width: 550px; margin-inline: auto; transform: none; }
  .split-media img { aspect-ratio: 4 / 3; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { padding-block: 1.2rem .8rem; }
  .site-nav ul { gap: .15rem 1rem; }
  .site-nav a { font-size: .78rem; }
  .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .hero-media { box-shadow: 5px 7px 0 #e9ddc8; padding: 6px; }
  .hero .lead { line-height: 1.8; }
  .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .card { padding: 1.8rem 1.5rem; }
  .card:last-child { grid-column: auto; }
  .fact-list { grid-template-columns: 1fr; }
  .breadcrumb { margin-bottom: 1.7rem; }
  .page-header { padding-bottom: 1.5rem; }
  .section-intro { text-align: start; }
  .section-partners .section-intro { text-align: center; }
  .article-figure { padding: 5px; }
}
@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-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap, .prose { width: 100%; max-width: none; }
  .article { padding: 0; }
  .article-figure { max-width: 60%; break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a { color: inherit; }
}

.page-home .hero { border-bottom: 4px double var(--line); }
.page-sub .article { background: linear-gradient(90deg, transparent, #fffaf155 50%, transparent); }
