:root {
  --ink: #173b45;
  --ink-soft: #3c5b63;
  --muted: #526a70;
  --paper: #f4f1e8;
  --card: #fffdf8;
  --line: #dcd8cd;
  --accent: #e36e43;
  --accent-text: #a34223;
  --accent-light: #f2aa8b;
  --accent-soft: #f5e2d6;
  --teal-tint: #e4eceb;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 24px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.wrap { max-width: 1000px; margin-inline: auto; padding-inline: 28px; }
a { color: var(--ink); text-underline-offset: 5px; }
a:focus-visible, main:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 5px;
}
em { font-style: italic; color: var(--accent-text); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(calc(-100% - 24px));
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Space beneath the metadata keeps the raised results clear of hero text. */
header.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: 48px 92px;
}
.back {
  display: inline-block;
  color: #d5e0e2;
  font-size: 14px;
  margin-bottom: 40px;
}
.back:hover { color: #fff; }
.back:focus-visible { outline-color: var(--accent-light); }
.kicker, .label, .meta span, .card .tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker { color: var(--accent-light); margin-bottom: 16px; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.7vw, 64px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 820px;
  margin-bottom: 24px;
  text-wrap: balance;
}
h1 em, .outcome h3 em { color: var(--accent-light); }
.lede { font-size: 18px; color: #d5e0e2; max-width: 740px; line-height: 1.7; }
.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid #587078;
}
.meta > div { min-width: 0; padding-top: 18px; }
.meta span { display: block; color: #bdd0d2; margin-bottom: 8px; }
.meta strong { display: block; font-size: 14px; font-weight: 500; color: #fff; line-height: 1.65; }

/* Equal-width cards can wrap their figures without imposing a fixed flex width. */
.results {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -34px;
}
.stat { min-width: 0; background: var(--card); border: 1px solid var(--line); padding: 26px 24px; }
.stat .num { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.15; }
.stat .num em { font-size: inherit; }
.stat p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

section { padding-top: 68px; }
.label { color: var(--accent-text); margin-bottom: 12px; }
h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 20px; text-wrap: balance; }
p.body { color: var(--ink-soft); max-width: 760px; margin-bottom: 16px; }
.pull { font-family: var(--serif); font-size: 26px; line-height: 1.45; border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin-top: 28px; max-width: 740px; }
.grid2, .grid3 { display: grid; gap: 24px; margin-top: 28px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); padding: 26px; }
.card .tag { display: inline-block; color: var(--ink); background: var(--teal-tint); padding: 4px 9px; margin-bottom: 14px; }
.card h3, ol.steps h3 { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.card p, ol.steps p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }
.callout { margin-top: 24px; background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; }
.callout > div:last-child { min-width: 0; }
.callout .icon { flex: 0 0 32px; height: 32px; background: var(--accent-text); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 23px; }
.callout h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.callout p { font-size: 15.5px; color: #5a4a3c; line-height: 1.75; }

ol.steps { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
ol.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 26px; border-bottom: 1px solid var(--line); }
ol.steps .n { font-family: var(--mono); font-size: 22px; color: var(--accent-text); line-height: 1.5; }
ol.steps p { max-width: 740px; }
.outcome { background: var(--ink); color: var(--paper); padding: 40px; margin-top: 28px; border-top: 3px solid var(--accent); }
.outcome h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.3; margin-bottom: 24px; }
.outcome ul { list-style: none; display: grid; gap: 16px; }
.outcome li { position: relative; padding-left: 26px; color: #d5e0e2; font-size: 16px; }
.outcome li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--accent-light); }
.lesson { min-width: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.lesson h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.lesson p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.skills span { max-width: 100%; font-size: 13px; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; color: var(--ink-soft); }
.note { margin-top: 60px; background: var(--card); border: 1px dashed #b8b4a9; padding: 20px 24px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.note strong { color: var(--ink); font-weight: 700; }

.explore { padding-block: 48px; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-link { min-width: 0; display: block; padding: 20px 0; border-block: 1px solid var(--line); text-decoration: none; }
.related-link span { display: block; font-family: var(--mono); font-size: 12px; margin-bottom: 8px; }
.related-link strong { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.3; }
.related-link:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
footer { padding-block: 30px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
footer a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-text); }
footer a:hover { text-decoration-thickness: 2px; }

@media (max-width: 760px) {
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .results, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .results { gap: 12px; margin-top: -28px; }
  .stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: center; padding: 20px 24px; }
  .stat .num { font-size: 34px; }
  .stat p { margin-top: 0; }
  section { padding-top: 52px; }
  .outcome { padding: 30px 26px; }
  ol.steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .grid3 { gap: 28px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 20px; }
  header.hero { padding-block: 30px 72px; }
  .back { margin-bottom: 32px; }
  h1 { font-size: clamp(36px, 9vw, 44px); }
  .lede { font-size: 16px; }
  .stat { display: block; padding: 22px; }
  .stat p { margin-top: 8px; }
  .card { padding: 22px; }
  .callout { padding: 22px 18px; gap: 12px; }
  .outcome { padding: 26px 22px; }
  .outcome h3 { font-size: 27px; }
  .pull { font-size: 24px; padding-left: 18px; }
  ol.steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  ol.steps .n { font-size: 18px; }
  .note { padding: 18px 20px; }
  .related-links { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  footer { flex-direction: column; }
}
@media (max-width: 360px) {
  .meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .meta > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid #587078; }
  .footer-links { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  .skip-link, .back, .explore { display: none; }
  header.hero, .outcome { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  header.hero { padding-block: 24px 40px; }
  .results { margin-top: 24px; }
  section { padding-top: 36px; }
  .card, .stat, .lesson, ol.steps li, .outcome, .note { break-inside: avoid; }
}
