/* onlyfan.lv design tokens + base. Dark only (spec v9 section 2).
   Ported from .design/a/tokens.css. The only file under site/ that holds colour literals. */
:root {
  color-scheme: dark;

  /* Surfaces: flat, three steps, hairline borders */
  --bg: #0b0d11;
  --surface: #15181e;
  --surface-2: #1c2027;
  --surface-3: #242932;
  --line: #262b33;
  --line-strong: #353b45;

  /* Text (AA on --bg and --surface) */
  --text: #e9ebee;
  --text-2: #9aa3ad;
  --text-3: #8a939d;

  /* One accent, our own sky blue (spec v9 section 1). Ink on accent = 6.98:1 */
  --accent: #1aa7ec;
  --accent-hover: #0f8fd0;
  --accent-ink: #04131c;
  --accent-soft: rgba(26, 167, 236, 0.12);
  --accent-line: rgba(26, 167, 236, 0.45);

  /* Status */
  --ok: #34d07a;
  --ok-soft: rgba(52, 208, 122, 0.12);
  --ok-line: rgba(52, 208, 122, 0.35);
  --warn: #f5b544;
  --warn-soft: rgba(245, 181, 68, 0.12);
  --warn-line: rgba(245, 181, 68, 0.45);
  --err: #ff7a7a;
  --err-soft: rgba(255, 122, 122, 0.08);
  --err-line: rgba(255, 122, 122, 0.55);

  /* Media overlays */
  --scrim: rgba(6, 8, 11, 0.55);
  --chip-bg: rgba(6, 8, 11, 0.72);
  --bar-bg: rgba(11, 13, 17, 0.92);
  --on-media: #fff;
  --on-media-2: rgba(255, 255, 255, 0.86);
  --media-line: rgba(255, 255, 255, 0.28);
  --media-hover: rgba(255, 255, 255, 0.12);
  --media-veil: rgba(6, 8, 11, 0.38);
  --media-veil-soft: rgba(6, 8, 11, 0.32);
  --media-veil-strong: rgba(6, 8, 11, 0.9);
  --fade-top: rgba(6, 8, 11, 0.72);
  --fade-deep: rgba(6, 8, 11, 0.78);
  --fade-mid: rgba(6, 8, 11, 0.25);
  --fade-clear: rgba(6, 8, 11, 0.08);
  --shadow-deep: rgba(0, 0, 0, 0.6);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --lh: 1.4;

  /* Layout */
  --col: 600px;
  --rail: 320px;
  --gutter: 16px;
  --bar-h: 56px;
  --tap: 44px;
  --ease: 160ms ease;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md) / var(--lh) var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 14px; height: 14px; stroke-width: 2; }
.ico--lg { width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
