/* Minimal dev dark — no external fonts or assets (system font stacks only) */
:root {
  --bg: #0a0e13;
  --surface: #10161d;
  --surface-2: #151c25;
  --border: #1f2935;
  --border-2: #2c3948;
  --text: #d5dde7;
  --text-strong: #f2f6fa;
  --muted: #8593a5;
  --green: #5ee6a0;
  --blue: #6fb7ff;
  --amber: #f2c46d;
  --pink: #ff8fb3;
  --radius: 10px;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { 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 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(94, 230, 160, .25); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.ok { color: var(--green); }
.prompt { color: var(--green); }
.hash { color: var(--green); font-family: var(--mono); font-weight: 400; }
.hidden { display: none !important; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 19, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-family: var(--mono); color: var(--text-strong); font-weight: 600; }
.brand:hover { text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a:not(.brand) { font-family: var(--mono); font-size: .85rem; color: var(--muted); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:not(.brand):hover, .nav a.active { color: var(--text-strong); background: var(--surface-2); text-decoration: none; }
.nav a.active::before { content: "./"; color: var(--green); }
@media (max-width: 560px) {
  .brand { display: none; }
  .nav-inner { justify-content: center; }
  .nav a:not(.brand) { padding: 6px 7px; font-size: .8rem; }
}

/* hero */
.hero {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 72px; padding-bottom: 40px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-top: 104px; }
  .stats { grid-column: 1 / -1; }
}
.eyebrow { font-size: .8rem; color: var(--muted); margin: 0 0 18px; letter-spacing: .02em; }
.typed { color: var(--muted); margin: 0 0 6px; min-height: 1.6em; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--green); vertical-align: -3px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.03em;
  color: var(--text-strong); margin: 0 0 10px; font-weight: 700;
}
.role { font-family: var(--mono); color: var(--green); margin: 0 0 18px; font-size: clamp(.95rem, 2vw, 1.1rem); }
.lede { font-size: 1.15rem; color: var(--text); max-width: 34em; margin: 0 0 28px; }
.lede em { color: var(--text-strong); font-style: normal; border-bottom: 1px dashed var(--border-2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text-strong); font-size: .95rem; font-weight: 500;
  transition: border-color .15s, transform .15s, background .15s;
}
.btn:hover { text-decoration: none; border-color: var(--green); transform: translateY(-1px); }
.btn.primary { background: var(--green); color: #04140c; border-color: var(--green); }
.btn.primary:hover { background: #7af0b4; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.card-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.card-bar b { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 400; }

.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.7; color: var(--muted); }
.code-card i { font-style: normal; }
.code-card .k { color: var(--blue); }
.code-card .s { color: var(--green); }
.code-card .n { color: var(--amber); }
.code-card .b { color: var(--pink); }

.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: rgba(16, 22, 29, .6); }
.stats b { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--text-strong); font-weight: 600; }
.stats span { color: var(--muted); font-size: .85rem; }

/* sections */
.section { padding-top: 72px; padding-bottom: 8px; }
h2 { font-size: 1.5rem; color: var(--text-strong); margin: 0 0 28px; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
h2 .small { font-weight: 400; }
h3 { color: var(--text-strong); font-size: 1.05rem; margin: 0 0 8px; }

.about { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.about-body p { margin: 0 0 16px; max-width: 40em; }
blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--green); color: var(--text-strong); font-size: 1.2rem; }
.facts { padding: 18px 20px; font-size: .86rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.facts dt { color: var(--muted); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; color: var(--text-strong); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border-2); }
.timeline > li { position: relative; padding: 0 0 36px 30px; display: grid; gap: 6px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.timeline > li:first-child::before { background: var(--green); box-shadow: 0 0 0 4px rgba(94, 230, 160, .15); }
@media (min-width: 900px) {
  .timeline::before { left: 185px; }
  .timeline > li { grid-template-columns: 160px minmax(0, 1fr); gap: 50px; padding-left: 0; }
  .timeline > li::before { left: 180px; }
}
.when { color: var(--muted); font-size: .82rem; padding-top: 2px; }
.what p { margin: 0 0 10px; }
.what ul { margin: 0 0 12px; padding-left: 18px; }
.what li { margin-bottom: 6px; }
.what li::marker { color: var(--green); content: "› "; }
.at { color: var(--muted); font-weight: 400; }
.sub { color: var(--green); font-size: .8rem; margin: 14px 0 4px !important; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tags span {
  font-family: var(--mono); font-size: .74rem; color: var(--text);
  border: 1px solid var(--border-2); background: var(--surface-2);
  padding: 3px 8px; border-radius: 5px;
}

/* stack */
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack-card { padding: 20px; transition: border-color .2s; }
.stack-card:hover { border-color: var(--border-2); }
.stack-card h3 { font-size: .92rem; font-weight: 500; margin-bottom: 14px; }
.creds { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.creds .card { padding: 20px; }
.creds h3 { font-size: .92rem; font-weight: 500; margin-bottom: 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 8px 0; border-top: 1px solid var(--border); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain b { display: block; color: var(--text-strong); font-weight: 500; font-size: .95rem; }
.plain span { color: var(--muted); font-size: .85rem; }

/* terminal */
.term { overflow: hidden; }
.term-body { height: 380px; overflow-y: auto; padding: 14px 18px; font-size: .88rem; line-height: 1.6; cursor: text; background: #0b1016; }
.term-body .ln { white-space: pre-wrap; word-break: break-word; min-height: 1.6em; }
.term-line { display: flex; gap: 8px; align-items: center; }
.term-line label { flex-shrink: 0; }
.term-line input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text-strong); font: inherit; caret-color: var(--green); padding: 0;
}
.c-g { color: var(--green); } .c-b { color: var(--blue); } .c-a { color: var(--amber); }
.c-p { color: var(--pink); } .c-m { color: var(--muted); } .c-w { color: var(--text-strong); }
.hint { margin-top: 12px; line-height: 2; }
.chip {
  font: .78rem var(--mono); color: var(--green); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 5px; padding: 2px 8px; cursor: pointer;
}
.chip:hover { border-color: var(--green); }

/* contact */
.contact { padding: 28px; }
.contact .big { font-size: 1.1rem; color: var(--text-strong); margin: 0 0 8px; }
.contact p { margin: 0 0 20px; }

.footer { padding: 72px 16px 40px; color: var(--text); border-top: 1px solid var(--border); margin-top: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .btn { transition: none; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: left; }
.nf .card { padding: 28px; max-width: 560px; width: 100%; }

/* 16px input on small screens prevents iOS zoom on focus */
@media (max-width: 760px) { .term-line input { font-size: 16px; } }
