:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --ink: #202b24;
  --muted: #4f5d50;
  --green: #142f28;
  --green-deep: #102620;
  --accent: #d8ed9a;
  --line: #c5c9b9;
  --display: Georgia, "Times New Roman", serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.62; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: .16rem solid #826500; outline-offset: .25rem; }
.home-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(3.3rem, 8vw, 7.3rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); letter-spacing: -.046em; }
h3 { font-size: 1.55rem; letter-spacing: -.025em; }
p + p { margin-top: 1em; }
code { font-size: .91em; overflow-wrap: anywhere; }
.shell { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.kicker { font-size: .875rem; font-weight: 750; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 10; inset-block-start: .75rem; inset-inline-start: 1rem; padding: .5rem .85rem; color: var(--green); background: var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-layout, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 5rem; padding-block: 1rem; }
.brand { font-family: var(--display); font-size: 1.43rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.55rem; }
nav a { font-size: .94rem; font-weight: 650; text-decoration-color: transparent; }
nav a:hover, nav a[aria-current="page"] { text-decoration-color: currentColor; }

.home-hero { color: var(--paper); background: var(--green-deep); }
.hero-layout { display: grid; grid-template-columns: 1.6fr minmax(16rem, .95fr); align-items: center; gap: 2.5rem 3.75rem; padding-block: clamp(3.8rem, 8vw, 7.25rem); }
.hero-intro .kicker { margin-bottom: 1.45rem; color: var(--accent); }
.hero-lede { margin-top: 1.65rem; max-width: 33rem; color: #e2e9dc; font-size: clamp(1.1rem, 2.3vw, 1.4rem); }
.hero-quote { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 19rem; padding: clamp(1.6rem, 5vw, 3rem); border: 1px solid #829469; background: #223d30; }
.hero-quote blockquote { color: var(--accent); font: italic clamp(2.3rem, 4.5vw, 4.45rem)/1.04 var(--display); letter-spacing: -.05em; }
.hero-quote figcaption { margin-top: 1.65rem; padding-top: 1.35rem; border-top: 1px solid #829469; color: #e2e9dc; font-size: .91rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 2rem; }
.button { display: inline-block; width: fit-content; padding: .78rem 1.12rem; border: 1px solid transparent; background: var(--green); color: #fff; font-size: .95rem; font-weight: 750; line-height: 1.4; text-decoration: none; }
.button:hover { background: #27533f; }
.home-hero .button { background: var(--accent); color: var(--green-deep); }
.home-hero .button:hover { background: #edf8ca; }
.text-link { font-weight: 670; }
.next-link { margin-top: 1.6rem; }

.home-explanation { display: grid; grid-template-columns: minmax(13rem, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3.75rem; padding-block: clamp(3rem, 6vw, 5.25rem); }
.home-explanation .kicker, .page-hero .kicker { color: var(--muted); margin-bottom: .9rem; }
.home-explanation .text-link, .page-content .text-link { display: inline-block; margin-top: 1rem; }
.training { scroll-margin-top: 1.25rem; border-bottom: 1px solid var(--line); background: #e9eddf; }
.training-layout, .challenge {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.75rem 3.75rem;
}
.training-layout { padding-block: clamp(2.8rem, 6vw, 5.25rem); }
.training-intro h2 { margin-block: 0 .65rem; }
.training-intro .training-quote { font: italic clamp(1.4rem, 3vw, 2.35rem)/1.16 var(--display); }
.training-parts { margin: 0; border-top: 1px solid var(--line); }
.training-parts div { padding-block: .9rem; border-bottom: 1px solid var(--line); }
.training-parts dt { font-weight: 750; }
.training-parts dd { margin: .15rem 0 0; color: var(--muted); }
.training-example {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}
.training-example h3 { font-size: clamp(1.65rem, 3vw, 2.45rem); }

.emergency-hero { color: #fff9ef; background: #562a25; }
.emergency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 2.25rem 3.75rem;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.emergency-hero .kicker { margin-bottom: 1rem; color: #ffcfaa; }
.emergency-hero .button { color: #3a2019; background: #ffddbb; }
.emergency-hero .button:hover { background: #fff3df; }
.emergency-hero :focus-visible { outline-color: #ffcfaa; }
.emergency-night { padding: clamp(1.1rem, 3.5vw, 2rem); border: 1px solid #b57864; background: #633630; font-size: 1.08rem; }
.emergency-question { font: italic clamp(1.8rem, 4vw, 3.6rem)/1.1 var(--display); }
.emergency-section { padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.emergency-lede { max-width: 42rem; margin-top: .85rem; font-size: 1.08rem; }
.event-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 1.4rem;
  border-block: 1px solid var(--line);
}
.event-rates > div { padding: .95rem 1.15rem; border-inline-end: 1px solid var(--line); }
.event-rates > div:first-child { padding-inline-start: 0; }
.event-rates > div:last-child { border-inline-end: 0; }
.event-rates dt { font-weight: 700; }
.event-rates dd { margin: .35rem 0 0; color: var(--muted); }
.event-rates strong { display: block; margin-bottom: .15rem; color: var(--ink); font: clamp(2rem, 4.3vw, 3.7rem)/1.1 var(--display); }
.calculation-notes { max-width: 50rem; }
.challenge { border-top: 1px solid var(--line); scroll-margin-top: 1.25rem; }

.page-hero { padding-block: clamp(2.8rem, 6vw, 5.6rem) clamp(1.75rem, 4vw, 3.6rem); }
.page-hero > p:last-child { max-width: 40rem; margin-top: 1.15rem; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.page-content, .demo { padding-bottom: clamp(3rem, 6vw, 5.25rem); }
.prose { max-width: 44rem; font-size: 1.08rem; }
.prose h2 { margin-block: 1.6em .45em; font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
.demo > h2 { margin-bottom: .65em; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.receipt { margin: 0; padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-inline-start: .28rem solid #607e45; background: #e9eddf; }
.receipt p { margin-top: .65rem; }
.receipt blockquote p { font-family: var(--display); font-size: 1.23rem; line-height: 1.5; }
details.receipt { margin-block: 1.2rem; }
summary { cursor: pointer; font-weight: 700; }
.download-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.5rem clamp(1rem, 3.5vw, 2.6rem); border: 1px solid var(--line); background: #e9eddf; }
.download-box h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.download-box p { margin-top: .5rem; color: var(--muted); }
.checksum { padding: .65rem .85rem; border: 1px solid var(--line); }
.release-facts { display: grid; margin: 0; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.release-facts div { display: flex; flex-direction: column-reverse; padding: 1.15rem clamp(.6rem, 3vw, 2rem); border-inline-end: 1px solid var(--line); }
.release-facts div:first-child { padding-inline-start: 0; }
.release-facts div:last-child { border-inline-end: 0; }
.release-facts dt { font-size: .92rem; line-height: 1.35; color: var(--muted); }
.release-facts dd { margin: 0 0 .18rem; font: clamp(2rem, 5vw, 4.1rem)/1.12 var(--display); }
.site-footer { color: #e2e9dc; background: var(--green-deep); }
.footer-layout { min-height: 6.6rem; padding-block: 1.25rem; }
.footer-layout a[href^="mailto:"] { font-size: .94rem; }

@media (max-width: 56rem) {
  .hero-layout { grid-template-columns: 1fr 0.85fr; gap: 2rem; }
  .header-layout { align-items: flex-start; }
  .header-layout nav { justify-content: flex-end; }
}
@media (max-width: 42rem) {
  .hero-layout, .home-explanation, .demo-grid, .training-layout, .emergency-layout, .challenge, .event-rates { grid-template-columns: 1fr; }
  .event-rates > div { padding-inline: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .event-rates > div:last-child { border-bottom: 0; }
  .hero-quote { min-height: auto; }
  .hero-quote figcaption { margin-top: 1rem; padding-top: .85rem; }
  .header-layout, .footer-layout { flex-direction: column; align-items: flex-start; }
  .header-layout nav { justify-content: flex-start; gap: .4rem 1rem; }
}
@media (max-width: 24rem) {
  .shell { width: min(100% - 2rem, 75rem); }
  h1 { font-size: 2.8rem; }
}
