:root {
  --bg: #0a0e14;
  --bg-soft: #11161d;
  --bg-card: #161b22;
  --border: #232a33;
  --border-soft: #1b2027;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-faint: #586069;
  --accent: #79b8ff;
  --accent-soft: rgba(121, 184, 255, 0.08);
  --accent-line: rgba(121, 184, 255, 0.28);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  background-image:
    radial-gradient(ellipse 800px 600px at top, rgba(121, 184, 255, 0.04), transparent 70%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 120ms ease, border-color 120ms ease; }
a:hover { color: var(--text); border-bottom: 1px solid var(--accent); }

/* ── Header ─────────────────────────── */
header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.subtitle {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1rem;
}
p { color: var(--text-muted); margin-bottom: 1rem; }
p.body-text { color: var(--text); }

/* ── Section headings ───────────────── */
h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 3.5rem 0 1.5rem;
}
h2::before { content: "// "; color: var(--text-faint); }

/* ── Cards ──────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 120ms ease;
}
.card:hover {
  border-color: var(--accent-line);
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--accent); border-bottom: none; }
.card p { color: var(--text-muted); margin-bottom: 0.75rem; }
.card p:last-of-type { margin-bottom: 0; }

/* ── Tags ───────────────────────────── */
.tags {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1rem;
}
.tags span {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.25rem;
  letter-spacing: 0.02em;
}
.status {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.status::before {
  content: "▸ ";
  color: var(--accent);
}

/* ── Stats grid ─────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.stat .num {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat .label {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ── Values list ────────────────────── */
ul.values { list-style: none; margin-left: 0; }
ul.values li {
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  transition: border-color 120ms ease;
}
ul.values li:hover { border-left-color: var(--accent); }
ul.values strong { color: var(--text); font-weight: 600; }

/* ── Elsewhere row ──────────────────── */
.elsewhere a {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 120ms ease;
}
.elsewhere a:hover { border-color: var(--accent); border-bottom-width: 1px; }

/* ── Buddy block (Zestgobble) ───────── */
.buddy {
  margin: 1rem 0 0;
  text-align: center;
}
.buddy img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.buddy figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* ── Footer ─────────────────────────── */
footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); border: none; }

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  body { padding: 2rem 1rem 4rem; }
}
