:root {
  --page: #E9E9E7;
  --surface: #EFEFEC;
  --line: #DBDBD8;
  --ink: #181818;
  --muted: #6B6B6B;
  --faint: #A6A6A3;
  --accent: #FFA700;
  --accent-ink: #1A1300;
  --nav-active: #181818;
  --focus: #181818;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0C0C0C;
    --surface: #161616;
    --line: #2A2A2A;
    --ink: #F2F2F2;
    --muted: #8A8A8A;
    --faint: #5E5E5E;
    --nav-active: #FFA700;
    --focus: #FFA700;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

header { border-bottom: 1px solid var(--line); }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.wordmark svg { flex: none; }
nav { display: flex; gap: 26px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a.active {
  color: var(--ink);
  border-bottom-color: var(--nav-active);
}
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

main { flex: 1; }

.hero { padding: 96px 0 72px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.chalk {
  display: block;
  margin-top: 14px;
  width: min(240px, 55%);
  height: auto;
}
.chalk path {
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  fill: none;
}
@media (prefers-reduced-motion: no-preference) {
  .chalk path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: swipe .6s ease-out .2s forwards;
  }
  @keyframes swipe { to { stroke-dashoffset: 0; } }
}
.hero p {
  margin: 30px 0 0;
  max-width: 34em;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.cta-row .aside { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { filter: brightness(.95); }

.page-head { padding: 72px 0 0; }
.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.product {
  margin-top: 44px;
  padding: 40px 0 64px;
  border-top: 1px solid var(--line);
}
.product h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.product h2 a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-color: var(--faint);
}
.product h2 a:hover { text-decoration-color: var(--nav-active); }
.product .tag {
  margin: 6px 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}
.product .body {
  margin: 26px 0 0;
  max-width: 36em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product .body p { margin: 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { color: var(--muted); }
.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
