:root {
  --bg: #f6f1ea;
  --bg-header: #faf6f1;
  --paper: #fffdf9;
  --ink: #2a241f;
  --muted: #7a6f66;
  --line: #e6ddd3;
  --line-strong: #d4c9bc;
  --rose: #c48a78;
  --rose-hover: #b57866;
  --rose-soft: #f3e4dc;
  --dark: #1c1815;
  --dark-2: #26211d;
  --on-dark: #f4eee6;
  --on-dark-muted: #b8aea4;
  --max: 720px;
  --wide: 1080px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 1px;
}
.brand-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #5c554e;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.btn-nav {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  background: var(--rose);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--rose-hover); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 8px;
}

/* Article */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 18px;
}
h1.headline {
  font-weight: 500;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: #3a342e;
  margin-bottom: 22px;
}
.meta {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}
.meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #c0b6ac;
}
.hero {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hero img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16/10; }
.caption {
  font-family: var(--sans);
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 34px;
}
.prose p { margin-bottom: 1.15em; }
.prose h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.7em;
  line-height: 1.25;
}

/* Callout quiz */
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 16px;
  margin: 36px 0;
}
.callout h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}
.callout .sub {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.scene { margin-bottom: 22px; }
.scene p.q {
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 17.5px;
}
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.45;
  margin: 8px 0;
  cursor: pointer;
  color: #3d3731;
}
.opt input { display: none; }
.dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid #b7aea4;
  border-radius: 50%;
  flex: 0 0 18px;
  margin-top: 3px;
  position: relative;
  background: #fff;
}
.opt input:checked + .dot {
  border-color: var(--ink);
}
.opt input:checked + .dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 28px 0 8px;
  margin: 8px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat span {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

.pullquote {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 22px;
  margin: 36px 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
}

/* Swap cards */
.swaps {
  display: grid;
  gap: 10px;
  margin: 28px 0 36px;
}
.swap {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 8px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
}
.swap .from { color: #5c554e; }
.swap .to { font-weight: 500; }
.arrow {
  color: var(--muted);
  text-align: center;
  font-family: var(--sans);
}

/* Steps */
.steps { margin: 10px 0 40px; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px dashed var(--line-strong);
}
.step:last-child { border-bottom: 1px dashed var(--line-strong); }
.num {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding-top: 3px;
}
.step h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.step p {
  color: #3d3731;
  font-size: 17px;
}

/* Course cards */
.course {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 16px;
  padding: 32px 32px 24px;
  margin: 36px 0;
}
.course h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.course p { margin-bottom: 18px; color: #e8dfd6; }
.btn-rose {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
}
.btn-rose:hover { background: var(--rose-hover); }
.course .note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--on-dark-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  margin-top: 72px;
  padding: 56px 0 28px;
  font-family: var(--sans);
}
.footer-grid {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--on-dark);
  font-size: 15px;
  margin: 7px 0;
}
.site-footer a:hover { color: #fff; }
.footer-blurb {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: #e4dbd2;
  max-width: 320px;
}
.footer-copy {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid #3a342e;
  padding-top: 18px;
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* Legal pages */
.page-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.legal { padding-bottom: 40px; }
.legal h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 1.8em 0 0.55em;
}
.legal p, .legal li { margin-bottom: 0.85em; }
.legal ol { padding-left: 1.2em; }
.disclaimer {
  font-size: 17px;
  color: #4a433c;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Cookie bar */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-2);
  color: var(--on-dark);
  z-index: 60;
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--sans);
  font-size: 14.5px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18);
}
.cookie.is-on { display: flex; }
.cookie a { color: #e8dfd6; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-ghost, .btn-ok {
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid #5a524a;
  background: transparent;
  color: var(--on-dark);
}
.btn-ok {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* About extras */
.about-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.about-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.about-card p { font-size: 16.5px; color: #4a433c; margin: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    gap: 14px;
  }
  .menu-toggle { display: block; }
  .stats { grid-template-columns: 1fr; gap: 22px; padding: 22px 0; }
  .swap { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie { flex-direction: column; align-items: flex-start; }
}
