:root {
  --bg: #f7f7f5; --surface: #ffffff; --ink: #17191c; --muted: #5b6169; --line: #e2e3e0;
  --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: #fdeee6; --tag: #f1f1ee;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --surface: #1a1c1f; --ink: #ecedee; --muted: #a1a6ad; --line: #2b2e33;
    --accent: #fb7a3c; --accent-ink: #1a0d05; --accent-soft: #2a1a12; --tag: #24262a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --surface: #1a1c1f; --ink: #ecedee; --muted: #a1a6ad; --line: #2b2e33;
  --accent: #fb7a3c; --accent-ink: #1a0d05; --accent-soft: #2a1a12; --tag: #24262a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--ink); text-decoration: none; font-size: 19px; }
nav.links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
nav.links a.button { color: var(--accent-ink); }
@media (max-width: 720px) { nav.links a:not(.button) { display: none; } }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 650; font-size: 15px; border: 1px solid var(--accent); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; max-width: 900px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 760px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.hero .shot { margin-top: 48px; max-height: 620px; }
.hero .shot img { width: 100%; object-fit: cover; object-position: top; max-height: 620px; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 36px; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.point b { display: block; margin-bottom: 4px; }
.point span { color: var(--muted); font-size: 15px; }

.features { display: grid; gap: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.feature:nth-child(even) .text { order: 2; }
.feature h3 { font-size: 23px; margin: 0 0 8px; line-height: 1.25; }
.feature p { color: var(--muted); margin: 0 0 10px; }
.feature .shot img { width: 100%; max-height: 440px; object-fit: cover; object-position: top left; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .text { order: 0; }
}
.tag { display: inline-block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  background: var(--tag); color: var(--muted); border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: 3px; }

.events { display: flex; flex-wrap: wrap; gap: 10px; }
.events span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.honest { columns: 2 320px; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.honest li { break-inside: avoid; margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.honest b { color: var(--ink); }

.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.cta ul { color: var(--muted); padding-left: 20px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Long-form pages written in Markdown (the Why page) */
.prose-section { padding-top: 8px; }
.prose { max-width: 820px; }
.prose h2 { margin: 56px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 14px; }
.prose b, .prose a { color: var(--ink); }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 0 0 8px; }
.prose code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tag); color: var(--ink);
  padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.prose figure { margin: 24px 0 28px; }
.prose figure .shot img { width: 100%; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose .table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; font-size: 14px; min-width: 760px; width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--tag); position: sticky; top: 0; }
.prose td { color: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 600; }
.prose td:nth-child(2) { color: var(--ink); background: var(--accent-soft); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 76px; }
.hero + .prose-section { border-top: 0; }
.hero:has(+ .prose-section) { padding-bottom: 8px; }
