/* CRUCIBLE — a crucible is a furnace, so: molten accent on near-black.
   Dark by default; light follows the OS until the toggle says otherwise. */

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #121214;
  --surface-2: #19191c;
  --border: #26262a;
  --border-strong: #3a3a40;
  --text: #eceae7;
  --text-2: #c4c0ba;
  --muted: #96938d;
  --accent: #ff8a3d;
  --accent-2: #ffb36b;
  --accent-soft: rgba(255, 138, 61, 0.12);
  --accent-ink: #1a0b02;
  --glow: rgba(255, 138, 61, 0.14);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --radius: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfaf8; --bg-2: #f5f2ee; --surface: #ffffff; --surface-2: #f3f0eb;
    --border: #e5e1da; --border-strong: #cdc6bb;
    --text: #1a1917; --text-2: #3f3b36; --muted: #6b665e;
    --accent: #c2410c; --accent-2: #ea580c; --accent-soft: rgba(194, 65, 12, 0.08);
    --accent-ink: #ffffff; --glow: rgba(194, 65, 12, 0.08);
    --green: #15803d; --green-soft: rgba(21, 128, 61, 0.09);
    --red: #b91c1c; --red-soft: rgba(185, 28, 28, 0.08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbfaf8; --bg-2: #f5f2ee; --surface: #ffffff; --surface-2: #f3f0eb;
  --border: #e5e1da; --border-strong: #cdc6bb;
  --text: #1a1917; --text-2: #3f3b36; --muted: #6b665e;
  --accent: #c2410c; --accent-2: #ea580c; --accent-soft: rgba(194, 65, 12, 0.08);
  --accent-ink: #ffffff; --glow: rgba(194, 65, 12, 0.08);
  --green: #15803d; --green-soft: rgba(21, 128, 61, 0.09);
  --red: #b91c1c; --red-soft: rgba(185, 28, 28, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* the furnace glow behind the hero */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% -10%, var(--glow), transparent 65%),
    radial-gradient(700px 420px at 0% 0%, rgba(255, 179, 107, 0.05), transparent 60%);
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ── skip link + focus ─────────────────────────────────────────────── */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── nav ───────────────────────────────────────────────────────────── */

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px var(--accent); animation: ember 3.2s ease-in-out infinite;
}
@keyframes ember { 50% { box-shadow: 0 0 4px var(--accent); opacity: 0.8; } }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  padding: 7px 11px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

@media (max-width: 720px) {
  /* padding-block, not `padding: 12px 0`: the shorthand would wipe .wrap's gutter */
  .nav-inner { height: auto; padding-block: 12px; flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; margin-left: 0; width: 100%; gap: 2px; overflow-x: auto; }
  .nav-links a { white-space: nowrap; padding: 6px 9px; }
  .theme-toggle { margin-left: auto; }
}

/* ── type ──────────────────────────────────────────────────────────── */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-family: var(--display); }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.35rem); font-weight: 650; margin-top: 0; }
h3 { font-size: 1.14rem; font-weight: 640; letter-spacing: -0.01em; }
p { margin: 0 0 1.05em; max-width: var(--measure); color: var(--text-2); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 3px; }
strong { color: var(--text); }

section { padding-block: clamp(64px, 9vw, 104px); border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
/* The project and about pages put .wrap on the section itself, and .wrap's
   padding shorthand outranks `section` — restore the vertical rhythm. */
section.wrap:not(.hero) { padding-block: clamp(56px, 8vw, 88px); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); opacity: 0.7; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { font-size: 1.06rem; }

/* ── hero ──────────────────────────────────────────────────────────── */

/* padding-block: the project and about pages put .hero and .wrap on one element */
.hero { padding-block: clamp(56px, 10vw, 110px) clamp(56px, 8vw, 90px); border-top: none; }
.hero h1 { max-width: 16ch; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 5px 12px;
  text-decoration: none;
}
.pill.new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 560; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650;
  box-shadow: 0 12px 32px -14px var(--accent);
}
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 44px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.stats div { padding: 16px 18px; border-left: 1px solid var(--border); min-width: 0; }
.stats div:first-child { border-left: none; }
.stats b { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--text); letter-spacing: -0.02em; }
.stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: none; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ── the arena (animated tournament) ───────────────────────────────── */

.arena {
  border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 30px 80px -40px var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.arena-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.arena-bar .lights { display: flex; gap: 6px; }
.arena-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.arena-bar .title { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arena-bar .replay { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: none; border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.arena-bar .replay:hover { color: var(--text); border-color: var(--accent); }
.arena-body { padding: 16px; display: grid; gap: 12px; }
.arena-round { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.arena-round .rn { color: var(--text); font-weight: 700; font-size: 14px; }
.arena-round .dots { display: inline-flex; gap: 5px; }
.arena-round .dots i { width: 22px; height: 4px; border-radius: 99px; background: var(--border-strong); transition: background 0.3s ease; }
.arena-round .dots i.done { background: var(--accent); }
.arena-round .dots i.now { background: var(--accent-2); }
.arena-round .phase { margin-left: auto; color: var(--accent); }
.lanes { display: grid; gap: 8px; }
.lane {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px 74px; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s ease;
}
.lane .cid { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 13px; }
.lane .work { min-width: 0; }
.lane .angle { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .track { height: 5px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.lane .track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lane .gate, .lane .score { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted); }
.lane .gate.ok { color: var(--green); } .lane .gate.bad { color: var(--red); }
.lane .score b { font-size: 16px; color: var(--text); }
.lane.red { opacity: 0.55; }
.lane.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px -22px var(--accent); }
.lane.win .cid::after { content: " ★"; color: var(--accent); }
.trunk { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 4px 2px 0; flex-wrap: wrap; }
.trunk .line { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 10px); }
.trunk .tag { color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; transition: all 0.3s ease; }
.trunk .tag.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.arena-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border-top: 1px solid var(--border); padding: 12px 16px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.arena-foot b { color: var(--text); }
.arena-foot .verdict { margin-left: auto; padding: 3px 10px; border-radius: 7px; font-weight: 700; letter-spacing: 0.06em; }
.arena-foot .verdict.pass { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.arena-foot .verdict.run { color: var(--accent); background: var(--accent-soft); }
.meter { flex: 1 1 120px; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); min-width: 80px; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
@media (max-width: 480px) {
  .lane { grid-template-columns: 30px minmax(0, 1fr) 54px 58px; gap: 8px; padding: 9px 10px; }
  .lane.win .cid::after { content: ""; }  /* no room for the star; the border says it */
}

/* ── cards ─────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 20px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 14.8px; color: var(--muted); margin: 0; }
.card .k {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 10px;
}

/* ── the weakest link (interactive) ────────────────────────────────── */

.weakest { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .weakest { grid-template-columns: minmax(0, 1fr); } }
.dials { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; display: grid; gap: 14px; }
.dial { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 2.2em; gap: 14px; align-items: center; }
.dial label { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.dial output { font-family: var(--mono); font-weight: 700; text-align: right; color: var(--text); }
.dial.low label, .dial.low output { color: var(--accent); }
.dial.ok output { color: var(--green); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 22px; background: none; border: none; padding: 0; }
.dial.ok input[type="range"] { accent-color: var(--green); }
.verdict-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; overflow: hidden;
}
.verdict-card .big { font-family: var(--mono); font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; }
.verdict-card .big small { font-size: 0.32em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.verdict-card .formula { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.verdict-card .formula b { color: var(--accent); }
.verdict-card .tag { align-self: flex-start; font-family: var(--mono); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 8px; }
.verdict-card .tag.revise { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.verdict-card .tag.pass { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.verdict-card .why { font-size: 14.5px; color: var(--text-2); margin: 0; min-height: 3em; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.presets button:hover { color: var(--text); border-color: var(--accent); }

/* ── report showcase ───────────────────────────────────────────────── */

.showcase { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 28px; align-items: center; }
@media (max-width: 920px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.frame { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px -42px var(--accent); }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.frame-bar .lights { display: flex; gap: 6px; }
.frame-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame-url { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: top; }
ul.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
/* Not a grid: inline <code> inside an item would become its own grid cell. */
ul.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
ul.checks li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* ── code ──────────────────────────────────────────────────────────── */

pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.4px; line-height: 1.62; margin: 0 0 18px;
}
code { font-family: var(--mono); font-size: 0.9em; }
p code, li code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
}
pre code { background: none; border: none; padding: 0; }
.c-dim { color: var(--muted); }
.c-acc { color: var(--accent); }
.c-ok { color: var(--green); }
.c-bad { color: var(--red); }

/* ── terminal ──────────────────────────────────────────────────────── */

.term {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term-bar span {
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 8px;
}
.term pre { border: none; border-radius: 0; margin: 0; background: none; }

/* ── timeline ──────────────────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 1px; background: linear-gradient(var(--accent), var(--border));
}
.timeline li { position: relative; padding: 0 0 30px 38px; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-strong);
}
.timeline li.hard::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline .when {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.timeline h3 { margin: 4px 0 6px; font-size: 1.04rem; }
.timeline p { margin: 0; font-size: 14.8px; color: var(--muted); }

/* ── contact ───────────────────────────────────────────────────────── */

.contact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: clamp(26px, 5vw, 44px);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 540; }
input, textarea {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font: inherit; font-size: 15px;
  width: 100%; transition: border-color 0.15s ease;
}
input:hover, textarea:hover { border-color: var(--muted); }
textarea { resize: vertical; min-height: 118px; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ── footer ────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border); padding: 40px 0 56px;
  color: var(--muted); font-size: 14.5px;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot-row .sep { margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 9px var(--green);
}
@media (max-width: 560px) { .foot-row .sep { display: none; } }

ul.tight { padding-left: 20px; margin: 0 0 1em; max-width: var(--measure); }
ul.tight li { margin-bottom: 9px; color: var(--text-2); }
.stack-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.stack-item:last-child { border-bottom: none; }
.stack-item strong { font-family: var(--mono); font-size: 13.6px; min-width: 148px; color: var(--accent); }
.stack-item span { font-size: 14.8px; color: var(--muted); }
@media (max-width: 560px) { .stack-item { flex-direction: column; gap: 3px; } }

/* reveal-on-scroll (only when JS has opted the page in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
