/* Fonts (self-hosted) and design tokens. Two sky themes: violet (default) and red. */
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* violet sky */
  --bg: #090720;
  --bg-2: #110d33;
  --bg-rgb: 9, 7, 32;
  --panel-rgb: 22, 17, 62;
  --ink: #f5f2ff;
  --ink-soft: #d9d3f5;
  --muted: #a9a2cf;
  --accent: #8b5cf6;
  --accent-2: #c084fc;
  --accent-3: #5b8cff;
  --accent-rgb: 139, 92, 246;
  --accent-2-rgb: 192, 132, 252;
  --sun: #ffb690;
  --sun-rgb: 255, 182, 144;
  --tone-0: #b58cff;
  --tone-1: #5ea2ff;
  --tone-2: #d68bff;
  --tone-3: #ffab57;
  --on-accent: #fff;
  --plate: url('../img/gen/hero-violet-1600.webp');
  --plate-sm: url('../img/gen/hero-violet-600.webp');

  --line: rgba(var(--accent-2-rgb), .38);
  --line-soft: rgba(var(--accent-2-rgb), .16);
  --glass: rgba(var(--panel-rgb), .52);
  --glow: 0 0 0 1px rgba(var(--accent-2-rgb), .10), 0 0 32px rgba(var(--accent-rgb), .28), inset 0 0 28px rgba(var(--accent-rgb), .12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --frame: 100%;
  --fw: 100vw;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --fs-hero: clamp(2.3rem, 4.05vw, 4.1rem);
  --fs-title: clamp(1.45rem, 3vw, 2.5rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  color-scheme: dark;
}

[data-theme="red"] {
  --bg: #140507;
  --bg-2: #26090c;
  --bg-rgb: 20, 5, 7;
  --panel-rgb: 52, 13, 14;
  --ink: #fff3ee;
  --ink-soft: #f6d8cf;
  --muted: #d3a59b;
  --accent: #f0432f;
  --accent-2: #ff8a4c;
  --accent-3: #ff5b84;
  --accent-rgb: 240, 67, 47;
  --accent-2-rgb: 255, 138, 76;
  --sun: #ffd27a;
  --sun-rgb: 255, 210, 122;
  --tone-0: #ff8a4c;
  --tone-1: #ff5b84;
  --tone-2: #ffc15a;
  --tone-3: #ff6a3d;
  --plate: url('../img/gen/hero-red-1600.webp');
  --plate-sm: url('../img/gen/hero-red-600.webp');
}

[data-layout="boxed"] {
  --frame: 1360px;
  --fw: min(100vw, 1360px);
  --wrap: 1180px;
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
}
