:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #5d6270;
  --border: #e3e4e8;
  --accent: #c2410c;
  --accent-soft: #fbe6da;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a21; --text: #e8e9ee; --muted: #9aa0ad;
    --border: #262a33; --accent: #f97316; --accent-soft: #2a1a10; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a21; --text: #e8e9ee; --muted: #9aa0ad;
  --border: #262a33; --accent: #f97316; --accent-soft: #2a1a10; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); margin: .25rem 0 0; }
.container { width: min(960px, 100% - 32px); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 60px; }
.brand { font-family: "JetBrains Mono", monospace; font-weight: 600; text-decoration: none; }
.prompt { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; font-size: .92rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.theme-toggle {
  order: 3; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem;
}

.hero { padding: 96px 0 64px; }
.eyebrow { color: var(--accent); margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.role { font-size: 1.2rem; color: var(--muted); margin: .5rem 0 1.5rem; }
.lead { font-size: 1.15rem; max-width: 640px; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); font-weight: 500;
  transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.stats { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stats strong { display: block; font-size: 2rem; color: var(--accent); line-height: 1; }
.stats span { color: var(--muted); font-size: .9rem; }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
h2 { font-size: 1.6rem; margin: 0 0 1.75rem; letter-spacing: -0.01em; }
.num { color: var(--accent); font-size: 1.1rem; margin-right: .35rem; }
.about p { max-width: 720px; }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin: 0 0 .75rem; font-size: 1rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font: 500 .8rem/1 "JetBrains Mono", monospace; padding: .4rem .6rem; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.tags.small li { font-size: .72rem; padding: .3rem .5rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline > li { display: grid; grid-template-columns: 150px 1fr; gap: 2rem; padding-bottom: 2rem; position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: 145px; top: 8px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.when { color: var(--muted); font-size: .85rem; padding-top: 2px; }
.what h3 { margin: 0; font-size: 1.05rem; }
.pos { color: var(--accent); margin: .15rem 0 .5rem; font-size: .92rem; font-weight: 500; }
.what p { margin: 0 0 .6rem; }

.events { margin-top: 1.5rem; }
.footer { display: flex; justify-content: space-between; padding: 32px 0 48px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero { padding: 64px 0 48px; }
  .timeline::before { left: 5px; }
  .timeline > li { grid-template-columns: 1fr; gap: .25rem; padding-left: 28px; }
  .timeline > li::before { left: 0; }
  .footer { flex-direction: column; gap: .25rem; }
}
