:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --border: #e3e2df;
  --text: #1d1c1a;
  --muted: #6b6a66;
  --accent: #b34700;
  --accent-soft: #fdf3ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #1f1e1b;
    --border: #35332e;
    --text: #edecea;
    --muted: #a3a09a;
    --accent: #ff9b52;
    --accent-soft: #2a2119;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  padding: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav.site { display: flex; gap: 1.25rem; margin-left: auto; }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav.site a:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.25rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 0.5rem;
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1.75rem 0;
}

.note strong { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.grid .name {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

/* A live tool links; a planned one is dimmed so the difference is obvious
   at a glance rather than only on hover. */
a.name { color: var(--accent); text-decoration: none; }
a.name:hover { text-decoration: underline; }

.grid li.soon { opacity: 0.55; }
.grid li.soon .name { font-weight: 500; }

.grid .kind {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  vertical-align: 0.15em;
  margin-left: 0.4rem;
}

/* ── Homepage positioning sections ─────────────────────────────── */

.kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.pull {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 40rem;
  margin: 2.5rem 0 0.6rem;
}

.prose {
  max-width: 44rem;
  color: var(--muted);
}

.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* Problem cards — same visual family as .grid, but they hold prose
   rather than a label, so they get their own spacing. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
}

.cards h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.cards p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Numbered phases. Counter rather than <ol> markers so the number can be
   styled as an accent chip without fighting list-style. */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 46rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.15rem 3rem;
  border-left: 1px solid var(--border);
  margin-left: 0.9rem;
}

.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -0.9rem;
  top: -0.15rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps .name {
  font-weight: 650;
  display: block;
  margin-bottom: 0.15rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  margin: 3rem 0 0;
}

.cta h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.cta p { margin: 0; color: var(--muted); font-size: 0.93rem; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site .wrap { padding: 1.5rem 1.25rem; }

a { color: var(--accent); }
