:root {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --text: #16191d;
  --muted: #4f5761;
  --border: #e2e5e9;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-text: #ffffff;
  --max: 68rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1a1e21;
    --text: #eef0f2;
    --muted: #a9b1ba;
    --border: #2c3237;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-text: #0b1513;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem;
}
.wordmark {
  font-weight: 800; font-size: 1.5rem; letter-spacing: .12em;
  color: var(--text); text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: .25rem 0; display: inline-block; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* Typography */
h1, h2, h3, .h3 { line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin-top: 2.25rem; }
h3, .h3 { font-size: 1.15rem; margin-top: 0; }
.section > h1:first-child, .section > h2:first-child { margin-top: 0; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.meta { color: var(--muted); font-size: .95rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }

.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.prose { max-width: 46rem; margin-left: auto; margin-right: auto; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 3.5rem 0; }
.hero h1 { font-size: clamp(2.75rem, 12vw, 4.5rem); letter-spacing: .08em; margin-bottom: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: .7rem 1.25rem; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: transparent; color: var(--accent-hover); }

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem;
}
.card p { color: var(--muted); }
.card-neutral { border-style: dashed; }

.cta { border-top: 1px solid var(--border); }

/* Facts list */
.facts { margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd ul { margin: 0; padding-left: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-inner p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .facts > div { grid-template-columns: 13rem 1fr; gap: 1rem; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero { padding: 5rem 0; }
}
