/* Kujundustokenid (docs/design/HANDOFF.md, Modernist – tume teisendus).
   Komponentide CSS kasutab AINULT neid muutujaid (CLAUDE.md p 3).
   Archivo (muutuv font 400–800) on self-hostitud public/assets/fonts/ all. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Pinnad */
  --bg: #100f0f;
  --surface: #1a1918;
  --cell-locked: #161514;
  --cell-empty: #171615;

  /* Tekst */
  --text: #f3f2f2;
  --text-2: #b9b5b2;
  --text-3: #9b9694;
  --text-3b: #8b8683;
  --text-muted: #6f6a67;

  /* Jooned */
  --line-strong: rgba(243, 242, 242, 0.22);
  --line-weak: rgba(243, 242, 242, 0.14);
  --line-w-strong: 2px;
  --line-w-weak: 1px;

  /* Aktsent */
  --accent: #ec3013;
  --accent-down: #c62508;
  --on-accent: #ffffff;

  /* Tüpograafia ja mõõdud */
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --radius: 0;
  --pad-mobile: 16px;
  --touch-target: 44px;
  --transition: 140ms ease-out;

  /* Modernisti neutraalskaala ja tume põhi – avaleht (design_handoff_avaleht).
     Hele põhi/tekst tulevad .theme-light --bg/--text muutujatest. */
  --neutral-100: #f8f4f4;
  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;
  --neutral-500: #9b9797;
  --neutral-600: #7d7979;
  --neutral-700: #605d5d;
  --accent-700: #ae1800;
  --divider: rgba(32, 30, 29, 0.4);
  --ink: #0b0b0c;
  --ink-text: #f7f6f5;
  --ink-text-2: #cfcac6;
  --ink-text-3: #b9b4b0;
  --ink-text-4: #8d8885;
  --ink-text-5: #9c9895;
  --ink-line: #4a4644;
  --ink-line-2: #26241f;
  --ink-line-soft: rgba(243, 242, 242, 0.18);
  --ink-line-softer: rgba(243, 242, 242, 0.14);
  --ink-veil: rgba(11, 11, 12, 0.86);
  --black: #000000;
  --white-soft: rgba(255, 255, 255, 0.6);
  --white-strong: rgba(255, 255, 255, 0.92);
  --hero-shade: linear-gradient(100deg, rgba(6, 6, 7, 0.94) 0%, rgba(6, 6, 7, 0.82) 34%, rgba(6, 6, 7, 0.25) 62%, rgba(6, 6, 7, 0.45) 100%);
  --zoom-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --zoom-duration: 1100ms;
  --landing-max: 1400px;
  --landing-pad: 32px;

  /* Dashboardide kujundus (handoff-dashboardid): tumedad ribad, segmenteeritud valik, lüliti */
  --bar-bg: var(--ink);
  --bar-text: var(--ink-text);
  --bar-text-2: var(--ink-text-4);
  --toggle-w: 46px;
  --toggle-h: 24px;
  --toggle-knob: 18px;
  --overlay-bg: var(--ink-veil);
  --desktop-bp: 1000px;

  /* Admini uus kest (Task 3, 2026-09-09 kujundus): laiem lehepiir, aktsendi helendus (live-silt, kiibid) */
  --admin-max: 1360px;
  --app-max: 1240px;
  --app-detail-max: 800px;
  --app-auth-max: 520px;
  --app-nav-height: 64px;
  --app-gap: clamp(16px, 2.5vw, 28px);
  --accent-tint: #fbe0db;

  /* Dropi redaktor (Task 5, 2026-09-09 kujundus): kontrollnimekirja "valmis" olek */
  --status-ok: #2f7a34;

  /* Admini ja ostja ühine tume töölaud. */
  --dashboard-bg: #090d0c;
  --dashboard-bg-glow: radial-gradient(circle at 12% -8%, rgba(48, 94, 76, 0.22), transparent 34rem);
  --dashboard-surface: #111715;
  --dashboard-surface-raised: #171f1c;
  --dashboard-surface-soft: #0e1311;
  --dashboard-text: #f2f6f2;
  --dashboard-text-2: #c0c9c1;
  --dashboard-text-3: #8e9a91;
  --dashboard-line: rgba(222, 235, 225, 0.13);
  --dashboard-line-strong: rgba(222, 235, 225, 0.24);
  --dashboard-ok: #63cf8a;
  --dashboard-ok-tint: rgba(99, 207, 138, 0.12);
  --dashboard-accent-tint: rgba(236, 48, 19, 0.15);
  --dashboard-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --dashboard-page-pad: clamp(16px, 3vw, 32px);
  --dashboard-panel-pad: clamp(16px, 2vw, 24px);
  --dashboard-grid-gap: 12px;
}

/* Hele teema: avalikud heledad ja trükivaated (Modernisti originaaltokenid). */
.theme-light {
  --bg: #f3f2f2;
  --surface: #ffffff;
  --cell-locked: #e9e8e7;
  --cell-empty: #ecebea;

  --text: #201e1d;
  --text-2: #4a4744;
  --text-3: #6f6a67;
  --text-3b: #8b8683;
  --text-muted: #9b9694;

  --line-strong: rgba(32, 30, 29, 0.9);
  --line-weak: rgba(32, 30, 29, 0.25);
}

/* Ühine tume palett adminile ja ostjale; lehe laius ei määra teemat. */
.admin-ui,
.app-ui {
  --bg: var(--dashboard-bg);
  --surface: var(--dashboard-surface);
  --cell-locked: var(--dashboard-surface-soft);
  --cell-empty: var(--dashboard-surface-soft);
  --text: var(--dashboard-text);
  --text-2: var(--dashboard-text-2);
  --text-3: var(--dashboard-text-3);
  --text-3b: var(--dashboard-text-3);
  --text-muted: var(--dashboard-text-3);
  --line-strong: var(--dashboard-line-strong);
  --line-weak: var(--dashboard-line);
  --accent-tint: var(--dashboard-accent-tint);
  --status-ok: var(--dashboard-ok);
  min-width: 320px;
  color-scheme: dark;
  background-color: var(--dashboard-bg);
  background-image: var(--dashboard-bg-glow);
  background-attachment: fixed;
}
