:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --surface: #ffffff;
  --text: #2a2320;
  --accent: #c2410c;
  --accent2: #2f5d8a;
  --muted: #675b53;
  --line: #ded6cd;
  --orange-wash: #fff1e8;
  --blue-wash: #edf3f8;
  --heading: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(1rem, .96rem + .18vw, 1.125rem)/1.7 var(--body); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
::selection { background: #f4d5c2; color: var(--text); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; font-family: var(--heading); font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 4.2rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 2.15rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.125rem, 1.02rem + .4vw, 1.4rem); letter-spacing: -.035em; }
p { margin: 0 0 1.2rem; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent2); outline-offset: 4px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption, small { font-size: .875rem; color: var(--muted); }
ul, ol { padding-left: 1.5rem; }
li::marker { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button, input, select, textarea { max-width: 100%; font: inherit; }
code, pre, kbd, samp { font-family: var(--heading); font-size: .9em; }
code, kbd { background: var(--orange-wash); padding: .15em .35em; border-radius: 3px; }
pre { padding: 1rem; background: var(--blue-wash); white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote { margin: 1.5rem 0; padding: .75rem 1.5rem; border-left: 3px solid var(--accent2); background: var(--blue-wash); }
table { width: 100%; border-collapse: collapse; font-size: .95em; table-layout: fixed; }
th, td { padding: .75rem; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: var(--blue-wash); }
.wrap { width: min(100% - clamp(2rem, 5vw, 5rem), 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--surface); border: 2px solid var(--accent2); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--text); font: 700 1.05rem/1.35 var(--heading); letter-spacing: -.04em; text-decoration: none; }
.brand::before { content: ''; flex: 0 0 25px; height: 29px; border: 2px solid var(--accent); border-radius: 4px; background: linear-gradient(var(--accent), var(--accent)) 5px 7px / 11px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) 5px 13px / 8px 2px no-repeat; box-shadow: 3px 3px 0 var(--orange-wash); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.site-nav a { display: block; padding: .55rem .7rem; color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; border-radius: 5px; }
.site-nav a:hover, .site-nav a[aria-current="page"], .page-home .site-nav a[href="index.html"] { background: var(--orange-wash); color: var(--accent); }

.hero { padding-block: clamp(1.5rem, 3.5vw, 3.5rem); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 3rem); box-shadow: 0 5px 0 #ece5dc; }
.hero-text { min-width: 0; }
.eyebrow { color: var(--accent); font: 600 .72rem/1.7 var(--heading); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.65rem); max-width: 16ch; }
.lead { color: var(--muted); font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.75; }
.hero .lead { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); }
.hero-actions { margin-top: 1.8rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid var(--accent); border-radius: 6px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--surface); box-shadow: 0 3px 0 #8d300b; }
.btn-primary:hover { background: #a63709; }
.hero-media { align-self: stretch; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; background: var(--bg); }
.hero-media img { width: 100%; height: 100%; min-height: 390px; border-radius: 7px; object-position: center; }

.section { padding-block: clamp(2rem, 3.5vw, 3.5rem); }
.section-title { max-width: 30ch; }
.section-intro { color: var(--muted); max-width: 72ch; margin-bottom: 1.75rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: guide; }
.card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 1.8vw, 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; counter-increment: guide; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.card::before { content: 'GUIDE ' counter(guide, decimal-leading-zero); color: var(--accent); background: var(--orange-wash); padding: .2rem .5rem; border: 1px solid #f0cdb7; border-radius: 3px; font: 600 .67rem/1.5 var(--heading); letter-spacing: .07em; margin-bottom: 1.25rem; }
.card-title { font-size: clamp(1.08rem, 1rem + .2vw, 1.22rem); line-height: 1.4; }
.card-text { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.card-link { width: 100%; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 650; text-decoration: none; }
.card-link::after { content: '\2197'; float: right; font-size: 1.15rem; line-height: 1.3; }
.card:focus-within { border-color: var(--accent2); }
.section-feature { padding-block: 1rem; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.split-text { align-self: center; min-width: 0; padding: clamp(1.5rem, 4vw, 3.8rem); }
.split-text p { max-width: 62ch; color: var(--muted); }
.split-text p:last-child { margin-bottom: 0; }
.split-media { min-width: 0; background: #e9e3db; border-left: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; max-height: 470px; min-height: 330px; object-position: center 52%; }
.section-feature + .section-feature .split { grid-template-columns: 1fr 1.15fr; }
.section-feature + .section-feature .split-media { grid-column: 1; grid-row: 1; border-left: 0; border-right: 1px solid var(--line); }
.section-feature + .section-feature .split-text { grid-column: 2; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.fact { position: relative; padding: 1.25rem 1rem 1.25rem 2rem; border-top: 1px solid var(--line); font-size: .97rem; }
.fact::before { content: ''; position: absolute; left: 0; top: 1.85rem; width: 8px; height: 8px; border: 2px solid var(--accent2); border-radius: 2px; }

.section-partners { background: #eee9e2; border-top: 1px solid var(--line); }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.partner { min-width: 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid #d7cfc5; border-radius: 3px; }
.partner-link { color: var(--accent2); font: 500 .78rem/1.6 var(--heading); overflow-wrap: anywhere; }
.partner-phrase { margin: .4rem 0; color: var(--text); font-size: .94rem; font-weight: 700; }
.partner-desc { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }

.article { padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 6rem); }
.page-sub .article > .wrap { max-width: 850px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font: .75rem/1.7 var(--heading); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--accent2); }
.page-header { padding: clamp(1.4rem, 3vw, 2.75rem); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 4px 4px 12px 12px; margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); }
.page-header .lead { margin-bottom: 0; }
.prose { max-width: 70ch; margin-inline: auto; padding-inline: clamp(0rem, 1vw, 1rem); overflow-wrap: anywhere; }
.prose > p { margin-bottom: 1.4rem; }
.prose h2 { margin-top: 2.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 1.1rem + .65vw, 1.7rem); }
.prose h3 { margin-top: 2rem; }
.prose li { padding-left: .3rem; margin-bottom: .6rem; }
.note { background: var(--blue-wash); border: 1px solid #c4d3e0; border-left: 4px solid var(--accent2); border-radius: 0 8px 8px 0; padding: 1.3rem 1.5rem; margin: 2.25rem 0 0; color: #294761; }
.note p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.footer-note { max-width: 59ch; color: var(--muted); font-size: .8rem; margin: 0; }
.footer-nav ul { gap: .25rem 1.2rem; }
.footer-nav a { display: inline-block; padding-block: .35rem; color: var(--accent2); font-size: .8rem; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-3px); border-color: #cba58f; box-shadow: 0 6px 14px #2a23200a; }
}
@media (min-width: 1100px) {
  .card:last-child { grid-column: span 2; }
}
@media (max-width: 1099px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { gap: 1.5rem; }
  .hero-media img { min-height: 360px; }
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 22ch; }
  .hero-media img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .section-feature + .section-feature .split { grid-template-columns: 1fr; }
  .split-media, .section-feature + .section-feature .split-media { grid-column: auto; grid-row: auto; border: 0; border-top: 1px solid var(--line); }
  .section-feature + .section-feature .split-text { grid-column: auto; }
  .split-media img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 540px) {
  .site-nav a { padding: .5rem .6rem; font-size: .78rem; }
  .site-nav ul { gap: .15rem; }
  .hero-inner { border-radius: 12px; }
  .hero .eyebrow { font-size: .66rem; }
  .btn { width: 100%; }
  .card-grid, .fact-list, .partner-list { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }
  .card::before { margin-bottom: .85rem; }
  .partner { padding: 1rem; }
  .note { padding: 1.1rem; }
  .page-header { margin-bottom: 1.75rem; }
}
@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 { width: 100%; }
  .article, .section { padding-block: 1rem; }
  .page-header, .hero-inner, .split { box-shadow: none; }
  h1, h2, h3 { break-after: avoid; }
  .note, .card, .partner { break-inside: avoid; }
}
