/* ==========================================================================
   vardius.github.io
   Plain CSS, no build step. Design tokens first, then layout, then components.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-elev: #10131a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7e9ee;
  --text-muted: #9aa3b2;
  --text-faint: #717a8c;
  --accent: #6ee7c8;      /* mint, brightened for dark backgrounds */
  --accent-2: #7dd3fc;    /* sky */
  --accent-3: #c4b5fd;    /* violet */
  --accent-ink: #062a22;
  --ring: rgba(110, 231, 200, 0.55);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --nav-h: 64px;
  --gutter: 16px;
  --aurora: 0.6;
  --grain: 0.045;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-hover: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.16);
  --text: #111827;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --accent: #0f9b8a;
  --accent-2: #0284c7;
  --accent-3: #7c3aed;
  --accent-ink: #ffffff;
  --ring: rgba(15, 155, 138, 0.4);
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 30px -12px rgba(17, 24, 39, 0.15);
  --aurora: 0.4;
  --grain: 0.03;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .5rem .9rem; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

/* ---------- backdrop: aurora + grain ---------- */

.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  pointer-events: none; opacity: var(--aurora);
}
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.aurora .a1 {
  width: 62vmax; height: 62vmax; left: -22vmax; top: -28vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 55vmax; height: 55vmax; right: -20vmax; top: -10vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-2) 45%, transparent), transparent 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 50vmax; height: 50vmax; left: 20vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-3) 40%, transparent), transparent 70%);
  animation: drift-c 40s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14vw, 10vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 14vh, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(10vw, -12vh, 0) scale(1.1); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-color: var(--border); }
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; letter-spacing: -.01em;
}
.logo {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.logo svg { width: 100%; height: 100%; fill: currentColor; }
.brand:hover { color: inherit; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a:not(.icon-btn) {
  padding: .45rem .7rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:not(.icon-btn):hover { color: var(--text); background: var(--surface-hover); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid transparent; background: transparent;
  color: var(--text-muted); transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: .82rem; letter-spacing: .02em;
  color: var(--accent);
}
.hero h1 {
  margin: .6rem 0 1rem; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800; text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0; font-size: 1.12rem; color: var(--text-muted); max-width: 54ch; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

.stats {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, max-content); gap: 2.2rem;
}
.stat b {
  display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat span { font-size: .82rem; color: var(--text-muted); }

/* most-starred panel beside the headline */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--border);
}
.panel-head h2 { margin: 0; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.panel-head a { font-family: var(--mono); font-size: .75rem; color: var(--text-faint); }
.panel-head a:hover { color: var(--accent); }
.top-list { list-style: none; margin: 0; padding: .45rem; display: grid; gap: .15rem; }
.top-list .skeleton { min-height: 58px; border: 0; border-radius: 12px; }
.top-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  padding: .6rem .65rem; border-radius: 12px; transition: background .2s;
}
.top-item:hover { background: var(--surface-hover); }
.top-item .mark { width: 36px; height: 36px; font-size: .8rem; }
.top-text { min-width: 0; display: grid; gap: .1rem; }
.top-name, .top-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-name { font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.top-desc { font-size: .82rem; line-height: 1.4; color: var(--text-muted); }
.top-stars {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.top-stars svg { width: 13px; height: 13px; fill: currentColor; opacity: .85; }
.top-note { padding: 1.5rem .65rem; text-align: center; font-size: .9rem; color: var(--text-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-hover); color: var(--text); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, white); color: var(--accent-ink); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }

/* ---------- sections ---------- */

.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.025em; font-weight: 800; }
.section-head p { margin: .3rem 0 0; color: var(--text-muted); }
.count { font-family: var(--mono); font-size: .82rem; color: var(--text-faint); }

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.grid-sites {
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

/* ---------- cards ---------- */

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .25s, background .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }
.card::before {                       /* pointer spotlight, driven by --mx/--my from JS */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--accent) 13%, transparent), transparent 46%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* live-site card: mini browser window */
.site-card { display: flex; flex-direction: column; }
.chrome {
  display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
}
.chrome .dots { display: flex; gap: 5px; }
.chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.chrome .url {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: .72rem; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .22rem .6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-link { display: block; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.shot svg, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.shot img { object-fit: cover; object-position: top; transform-origin: 50% 0; }
[data-theme="dark"] .shot .on-light, [data-theme="light"] .shot .on-dark { display: none; }
.site-card:hover .shot svg, .site-card:hover .shot img { transform: scale(1.03); }
.site-card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.site-card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.site-card .body > p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.site-foot {
  margin-top: auto; padding-top: .6rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.actions { display: flex; gap: .4rem; }

/* repo card */
.repo-card { padding: 1.05rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.repo-head { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.mark {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .85rem; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.repo-title { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.repo-name { font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.25; }
.repo-name::after { content: ""; position: absolute; inset: 0; }   /* stretched link */
.badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.badge {
  position: relative; z-index: 1;
  font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .14rem .45rem; border-radius: 6px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
}
.badge-live {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
a.badge-live:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.badge-lock { display: inline-flex; align-items: center; gap: .3rem; text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 600; }
.badge-lock svg { width: 11px; height: 11px; fill: currentColor; opacity: .85; }
.repo-desc {
  margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.topics { display: flex; gap: .3rem; flex-wrap: wrap; }
.topic {
  font-family: var(--mono); font-size: .68rem; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border); padding: .1rem .45rem; border-radius: 999px;
}
.repo-meta {
  margin-top: auto; padding-top: .25rem;
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.repo-meta > * { display: inline-flex; align-items: center; gap: .3rem; }
.repo-meta svg { width: 13px; height: 13px; fill: currentColor; opacity: .85; }
.repo-meta time { margin-left: auto; }
.meta-link { position: relative; z-index: 1; }
.meta-link:hover { color: var(--accent); }
.lang-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}

/* ---------- repo toolbar ---------- */

.langbar {
  display: flex; height: 8px; gap: 2px; margin: .2rem 0 1.1rem;
  border-radius: 999px; overflow: hidden;
}
.langbar button {
  border: 0; padding: 0; min-width: 5px; flex: var(--w, 1) 1 0;
  transition: opacity .25s, flex .4s cubic-bezier(.2, .8, .2, 1);
}
.langbar button:hover { opacity: .75; }
.langbar.has-filter button:not([aria-pressed="true"]) { opacity: .3; }

.toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  margin-bottom: .75rem;
}
.search { position: relative; display: block; }
.search input {
  width: 100%; padding: .72rem 2.6rem .72rem 2.5rem;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 55%, transparent); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search > svg {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: var(--text-faint); pointer-events: none;
}
.search kbd {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: .7rem; color: var(--text-faint);
  border: 1px solid var(--border-strong); border-radius: 5px; padding: .08rem .4rem;
  pointer-events: none;
}
.controls { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.select { position: relative; display: inline-block; }
.select select {
  appearance: none; -webkit-appearance: none;
  padding: .62rem 2.2rem .62rem .9rem; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .9rem; cursor: pointer;
}
.select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 55%, transparent); }
.select svg {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; fill: var(--text-faint); pointer-events: none;
}
.switch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .58rem .85rem; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-muted); font-size: .88rem; transition: border-color .2s, color .2s;
}
.switch i {
  width: 28px; height: 16px; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background .2s;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.switch[aria-checked="true"] { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.switch[aria-checked="true"] i { background: var(--accent); }
.switch[aria-checked="true"] i::after { transform: translateX(12px); }

.chips {
  display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .6rem; margin-bottom: .6rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .8rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  font-size: .85rem; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); background: var(--surface-hover); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { font-family: var(--mono); font-size: .72rem; opacity: .7; }

.empty, .notice {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty p, .notice p { margin: 0 0 1rem; }
.notice a { color: var(--accent); }

/* ---------- loading skeletons ---------- */

.skeleton {
  min-height: 190px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.grid-sites .skeleton { min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */

.footer {
  margin-top: 2rem; padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  color: var(--text-faint); font-size: .85rem;
}
.footer p { margin: 0; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: .35rem; }

/* ---------- 404 ---------- */

.oops { min-height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.oops .status {
  width: fit-content; margin: 0 auto .75rem;
  font-family: var(--mono); font-size: clamp(4.5rem, 18vw, 7.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.oops h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.03em; font-weight: 800; }
.oops p { margin: 0 auto; max-width: 48ch; color: var(--text-muted); text-wrap: pretty; }
.oops code { font-family: var(--mono); font-size: .9em; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .1em .4em; overflow-wrap: anywhere; }
.oops .cta { justify-content: center; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-links .txt { display: none; }
  .stats { gap: 1rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; justify-content: center; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
