:root {
  --bg: #f7f6f2;
  --bg-band: #efede6;
  --surface: #ffffff;
  --text: #1c1b18;
  --muted: #5d5a52;
  --line: #dcd8cc;
  --accent: #d9480f;
  --accent-text: #ffffff;
  --term-bg: #16151a;
  --term-text: #e8e6e3;
  --term-dim: #8b8794;
  --term-you: #ffb86b;
  --term-claude: #8be9a8;
  --term-tool: #8fb8ff;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121115;
    --bg-band: #19181e;
    --surface: #1f1e25;
    --text: #ecebe8;
    --muted: #a19ead;
    --line: #2e2c36;
    --accent: #ff7a3d;
    --accent-text: #16151a;
    --term-bg: #0b0a0e;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mark { font-family: var(--mono); font-weight: 700; color: var(--accent); }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
nav { display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }
@media (max-width: 520px) { nav a:not(:last-child) { display: none; } }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 750; max-width: 22ch; }
h3 { font-size: 18px; font-weight: 700; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--accent); margin: 0 0 16px; text-transform: lowercase; }
.lede { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 24px 0 0; }
.sub { color: var(--muted); max-width: 62ch; margin: 16px 0 0; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 32px 0 0; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.link { color: var(--muted); text-decoration: none; font-weight: 600; }
.link:hover { color: var(--text); }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 104px 0; } }
.band { background: var(--bg-band); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

.term {
  margin: 0; min-width: 0;
  background: var(--term-bg); color: var(--term-text);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #2a2930; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3842; }
.term-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--term-dim); }
.term pre { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font: 13.5px/1.75 var(--mono); }
.term b { color: var(--term-tool); font-weight: 600; }
.term .p { color: var(--term-you); }
.term .c { color: var(--term-claude); }
.term .t { color: var(--term-tool); }

/* Compare */
.compare { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; }
.col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.col li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); }
.col li:first-child { border-top: 0; }
.col li::before { position: absolute; left: 0; font-family: var(--mono); font-weight: 700; }
.old h3, .old li { color: var(--muted); }
.old li::before { content: "×"; }
.new { border-color: var(--accent); }
.new li::before { content: "→"; color: var(--accent); }

/* Tools */
.tools {
  display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.tools li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.tools h3 { font-family: var(--mono); font-size: 16px; color: var(--accent); }
.tools p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps {
  display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.steps li { counter-increment: step; padding: 22px 0 0; border-top: 2px solid var(--text); }
.steps li::before { content: "0" counter(step); display: block; font: 700 14px var(--mono); color: var(--accent); margin-bottom: 8px; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* Closing */
.closing { text-align: center; }
.closing h2, .closing .sub { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14.5px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer .mark + * { font-family: var(--mono); }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
