:root {
  --bg: #eceee6;
  --surface: #ffffff;
  --text: #0f1a24;
  --accent: #2f5d8a;
  --accent2: #f2b01e;
  --muted: #4d5961;
  --rule: #c5cbc6;
  --heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { 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, .95rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.page { min-height: 100vh; }
main, section, article, nav, figure, .wrap { min-width: 0; }
.wrap { width: 100%; max-width: 85rem; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.3vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 2.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
p { margin: 0 0 1.25rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--surface);
}
::selection { background: var(--accent2); color: var(--text); }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.5rem; }
li + li { margin-top: .5rem; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--accent); }
code, pre, kbd, samp { font-family: var(--mono); font-size: .9em; }
pre { max-width: 100%; overflow: auto; padding: 1rem; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .75rem; border-bottom: 1px solid var(--rule); text-align: left; }
button, input, select, textarea { max-width: 100%; font: inherit; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--accent2);
  color: var(--text);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner { padding-block: 1.5rem 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font: 800 1.8rem/1 var(--heading);
  letter-spacing: -.06em;
  text-decoration: none;
}
.brand::before { content: ''; width: .65rem; height: 1.6rem; background: var(--accent); border-bottom: .4rem solid var(--accent2); }
.site-nav { margin-top: 1.25rem; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: block; padding-block: .55rem; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.page-home .site-nav a[href='index.html'] { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent2); text-decoration-thickness: 3px; }
.hero { padding-block: clamp(2.5rem, 5vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-text { min-width: 0; }
.eyebrow { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.5rem; color: var(--accent); font: 600 .72rem/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ''; flex: 0 0 1.5rem; height: .2rem; background: var(--accent2); }
.hero h1 { max-width: 13ch; }
.lead { max-width: 60ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.35rem); line-height: 1.65; color: var(--muted); }
.hero .lead { margin-top: 1.5rem; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.hero-actions { margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.25rem; padding: .85rem 1.2rem; border: 1px solid var(--accent); font-size: .875rem; line-height: 1.4; font-weight: 650; text-decoration: none; }
.btn::after { content: '\2197'; font-size: 1.25rem; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.hero-media { position: relative; padding: 0 0 .65rem .65rem; border-left: 3px solid var(--accent2); border-bottom: 3px solid var(--accent2); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; }
.section { padding-block: clamp(2.5rem, 5vw, 4.75rem); border-bottom: 1px solid var(--rule); }
.section-title { max-width: 25ch; }
.section-intro { max-width: 65ch; margin-bottom: 2rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: guides; }
.card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.2rem, 2vw, 1.8rem); border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--surface); counter-increment: guides; }
.card::before { content: counter(guides, decimal-leading-zero); margin-bottom: 1.6rem; color: var(--accent); font: 500 .75rem/1 var(--mono); }
.card-title { line-height: 1.25; letter-spacing: -.025em; text-wrap: pretty; }
.card-text { color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .875rem; font-weight: 650; }
.card-link::after { content: '\2192'; text-decoration: none; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split-text { min-width: 0; max-width: 60ch; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { border-top: 3px solid var(--accent); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-position: center; }
.section-feature + .section-feature { background: var(--surface); }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; padding: 0; margin: 2rem 0 0; list-style: none; counter-reset: facts; }
.fact { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; margin: 0; padding: 1.4rem 0; border-top: 1px solid var(--rule); counter-increment: facts; font-size: .98rem; }
.fact::before { content: counter(facts, decimal-leading-zero); align-self: start; padding: .25rem; background: var(--accent2); color: var(--text); text-align: center; font: 600 .75rem/1.5 var(--mono); }
.section-partners { background: var(--surface); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.partner { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.partner-link { font: 500 .8rem/1.65 var(--mono); overflow-wrap: anywhere; }
.partner-phrase { order: -1; margin: 0 0 .4rem; font-family: var(--heading); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.partner-phrase::first-letter { text-transform: uppercase; }
.partner-desc { margin: .65rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem); }
.page-sub .article > .wrap { max-width: calc(46rem + var(--gutter) * 2); }
.breadcrumb { margin-bottom: 2.5rem; font: .75rem/1.7 var(--mono); color: var(--muted); }
.breadcrumb a { margin-right: .4rem; }
.breadcrumb span { margin-left: .4rem; }
.page-header { padding-block: 1.5rem 2rem; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); line-height: 1.08; }
.page-header .lead { margin: 1.5rem 0 0; }
.prose { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.85; }
.prose h2 { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.2; }
.prose h3 { margin-top: 1.75rem; }
.prose li { padding-left: .35rem; }
.prose li::marker { color: var(--accent); }
.note { margin: 2.5rem 0 0; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--accent2); font-size: 1rem; line-height: 1.75; }
.note p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 2.5rem; background: var(--bg); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1.5rem 2rem; }
.footer-note { max-width: 55ch; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.footer-nav { font: .75rem/1.6 var(--mono); }
.footer-nav a { display: inline-block; padding-block: .5rem; }

@media (min-width: 960px) {
  .page { display: grid; grid-template-columns: 13rem minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .site-header { position: sticky; top: 0; grid-column: 1; grid-row: 1 / 3; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--rule); border-bottom: 0; }
  .header-inner { padding: 2.75rem 1.5rem; }
  .brand { font-size: 1.8rem; }
  .site-nav { margin-top: 3.5rem; }
  .site-nav ul { display: block; border-top: 1px solid var(--rule); }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { padding: .85rem .25rem; }
  .site-nav a:hover { padding-left: .6rem; background: var(--bg); }
  .page-home .site-nav a[href='index.html'] { padding-left: .75rem; border-left: 3px solid var(--accent2); background: var(--bg); text-decoration: none; }
  main { grid-column: 2; grid-row: 1; }
  .site-footer { grid-column: 2; grid-row: 2; }
}
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
  .hero-media img { aspect-ratio: 4 / 5; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .header-inner { padding-top: 1.25rem; }
  .site-nav ul { gap: .15rem 1.1rem; }
  .site-nav a { font-size: .8125rem; }
  .hero-inner { gap: 2rem; }
  .hero h1 { max-width: 14ch; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .card-grid, .split, .fact-list, .partner-list { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.5rem; }
  .card::before { margin-bottom: 1rem; }
  .split { gap: 1.75rem; }
  .split-media img { max-height: 22rem; }
  .breadcrumb { margin-bottom: 1.5rem; }
  .note { padding: 1.15rem; }
  .footer-inner { display: block; }
  .footer-nav { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  a { transition: color 160ms ease, background-color 160ms ease, padding 160ms ease; }
  .card { transition: border-color 180ms ease, transform 180ms ease; }
  .card:hover { transform: translateY(-2px); border-top-color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .page { display: block; background: white; color: black; }
  .site-header, .skip-link, .hero-actions, .site-footer { display: none; }
  .wrap { max-width: 100%; padding-inline: 0; }
  .article { padding: 0; }
  .card, .note, figure { break-inside: avoid; }
  a { color: black; }
}
