/*
  Tokens: colors, fonts, spacing and radii for the dark theme (default) and the light theme.
  Load order in index.html: tokens → base → sections → stone → animations → responsive.
*/

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Primitives: neutral ramp (hue 20, warm) + red ramp (hue 25) */
  --n-0: oklch(0.13 0.006 20);
  --n-1: oklch(0.17 0.006 20);
  --n-2: oklch(0.21 0.007 20);
  --n-3: oklch(0.26 0.008 20);
  --n-9: oklch(0.58 0.012 20);
  --n-10: oklch(0.72 0.010 20);
  --n-12: oklch(0.97 0.003 20);
  --red-3: oklch(0.35 0.14 25);
  --red-6: oklch(0.50 0.19 25);
  --red-7: oklch(0.55 0.20 25);
  --red-9: oklch(0.62 0.22 25);
  --red-10: oklch(0.66 0.21 25);

  /* Semantic */
  --bg: var(--n-0);
  --bg-surface: var(--n-1);
  --bg-elevated: var(--n-2);
  --bg-hover: var(--n-3);
  --border: oklch(1 0 0 / 0.08);
  --border-strong: oklch(1 0 0 / 0.16);
  --text: var(--n-12);
  --text-secondary: var(--n-10);
  --text-tertiary: var(--n-9);
  --accent-solid: var(--red-6);
  --accent-solid-hover: var(--red-7);
  --accent-display: var(--red-9);
  --accent-text: var(--red-10);
  --accent-deep: var(--red-3);
  --on-accent: #fff;
  --photo-tint: var(--red-3);
  --photo-fade: 45%;          /* how much of the hero photo fades into the background */
  --band-edge: var(--bg);     /* edges of the "Mai puternic" band */
  --img-outline: oklch(1 0 0 / 0.1);
  --shadow-float: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 20px 50px -20px oklch(0 0 0 / 0.8);
  --shadow-phone: 0 0 0 1px oklch(1 0 0 / 0.16), 0 40px 90px -30px oklch(0 0 0 / 0.9);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Light theme: same roles, values recalculated for a white background (measured text contrast ≥ 4.5:1) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --bg-surface: oklch(0.97 0.003 20);
  --bg-elevated: oklch(0.94 0.004 20);
  --bg-hover: oklch(0.91 0.005 20);
  --border: oklch(0 0 0 / 0.08);
  --border-strong: oklch(0 0 0 / 0.16);
  --text: oklch(0.20 0.008 20);
  --text-secondary: oklch(0.45 0.012 20);
  --text-tertiary: oklch(0.55 0.012 20);
  --accent-display: oklch(0.55 0.21 25);
  --accent-text: oklch(0.48 0.19 25);
  --photo-tint: oklch(0.50 0.19 25 / 0.28);
  --photo-fade: 0%;
  --band-edge: oklch(0.13 0.006 20); /* the band stays a dark block on the white page */
  --img-outline: oklch(0 0 0 / 0.1);
  --shadow-float: 0 1px 0 oklch(1 0 0 / 0.6) inset, 0 16px 40px -16px oklch(0 0 0 / 0.25);
  --shadow-phone: 0 0 0 1px oklch(0 0 0 / 0.12), 0 30px 60px -28px oklch(0 0 0 / 0.35);
}
