/* ==========================================================================
   base.css — tokens de design, reset e tipografia
   ========================================================================== */

:root {
  color-scheme: dark;

  /* superfícies (carvão neutro) */
  --page: #0e0e0f;
  --surface: #18181a;
  --surface-2: #1f1f22;
  --surface-3: #27272b;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);

  /* texto */
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --ink-3: #8f8e88;

  /* gráficos: grade e eixos recessivos */
  --grid: #2c2c2a;
  --axis: #3a3a37;

  /* destaque da marca (só interface, nunca dado) */
  --accent: #d6b25e;
  --accent-2: #ecd291;
  --accent-ink: #1b1608;
  --accent-soft: rgba(214, 178, 94, 0.14);

  /* dados — validados contra a superfície #18181a */
  --win: #3987e5;
  --draw: #6b6a65;
  --loss: #e66767;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --up: #3987e5;
  --down: #e66767;
  --flat: #6b6a65;

  /* raridades (pódio) */
  --mythic: #e8743b;
  --rare: #d6b25e;
  --uncommon: #b4bfcc;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cinzel", "Times New Roman", serif;

  --topbar-h: 60px;
  --filterbar-h: 60px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin: 0;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* ---------- utilitários ---------- */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--ink-3);
}

.secondary {
  color: var(--ink-2);
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  body {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
