/* Vein-Hub — base tokens, reset, typography */

:root {
  --black: #070707;
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --panel: #141416;
  --panel-hover: #1a1a1d;
  --border: #262629;
  --border-strong: #38383c;
  --white: #f2f2f0;
  --text: #d8d8d6;
  --text-dim: #8c8c8f;
  --text-faint: #5c5c60;
  --red: #d81e2c;
  --red-bright: #ff3b3f;
  --red-dim: rgba(216, 30, 44, 0.35);
  --red-glow: rgba(216, 30, 44, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Courier New", monospace;

  --radius: 3px;
  --gap: 1.25rem;
  --container: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --med: 260ms;
}

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

html { color-scheme: dark; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--white); font-weight: 700; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text); }

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7em 1.3em;
  border: 1px solid var(--border-strong);
  color: var(--white);
  background: var(--panel);
  border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.btn:hover { border-color: var(--red); color: var(--red-bright); background: var(--panel-hover); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.primary:hover { background: var(--red-bright); border-color: var(--red-bright); color: var(--black); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.55em;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag.rarity-common { color: var(--text-dim); }
.tag.rarity-uncommon { color: #8fb4d8; border-color: #2c4a63; }
.tag.rarity-rare { color: var(--red-bright); border-color: var(--red-dim); }
.tag.rarity-special { color: #e0c86a; border-color: #5a4e28; }

::selection { background: var(--red); color: var(--white); }

/* Scrollbar (Webkit) kept minimal, no custom scroll-jacking */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }
