/* ---------------------------------------------------------------------------
 * Vanday — Design Tokens
 *
 * The full system. Drop this file in and every other Vanday CSS file works.
 * Source of truth is the live `ui_kits/web/styles.css`; this is the curated,
 * documented version meant for designers reaching for variables.
 * --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * Fonts — local variable woff2 files, offline-safe
 *
 * Geist is open-source under the SIL OFL. The single variable file covers
 * the full 100–900 weight axis; we expose the four weights we actually use.
 * --------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-Variable.woff2") format("woff2-variations"),
       url("fonts/Geist-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/GeistMono-Variable.woff2") format("woff2-variations"),
       url("fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  /* ===== Surfaces ======================================================= */
  /* App background. Off-white with a faint warm cast — never pure #fff. */
  --bg:             #fbfbf9;
  /* Cards, sidebar, topbar, inputs. */
  --surface:        #ffffff;
  /* Hover row, soft chips, divider blocks. */
  --surface-soft:   #f4f3ef;
  /* Active row, sunken thumbnails, kbd hint, table hover. */
  --surface-sunken: #efeee9;

  /* ===== Borders ======================================================== */
  --border:        oklch(0.92 0.005 80);
  --border-strong: oklch(0.86 0.006 80);

  /* ===== Text =========================================================== */
  /* Default body / headings — a warm near-black, never #000. */
  --text:       oklch(0.18 0.01 80);
  /* Captions, secondary copy, table cells. */
  --text-muted: oklch(0.48 0.008 80);
  /* Crumb separators, micro-labels, placeholder. */
  --text-faint: oklch(0.66 0.006 80);

  /* ===== Brand accent (terracotta) ====================================== */
  /* The ONE saturated brand color. Use sparingly: primary CTA, brand mark,
     selected state, AI/keyword chip, single status pill, focus ring. */
  --accent:        oklch(0.58 0.16 32);
  --accent-hover:  oklch(0.52 0.17 32);
  /* Cream-tint background of accent — for soft chips, selected highlight. */
  --accent-soft:           oklch(0.94 0.04 38);
  --accent-soft-stronger:  oklch(0.9  0.06 38);

  /* ===== Semantic status ================================================ */
  /* Used SPARINGLY — only on status pills, log icons, error banners. */
  --status-success: oklch(0.66 0.16 145);
  --status-warning: oklch(0.78 0.14 80);
  --status-danger:  oklch(0.55 0.2 24);
  --status-info:    oklch(0.55 0.14 240);

  /* ===== Radii ========================================================== */
  --radius-sm: 6px;   /* tags, chips, kbd, tiny pills */
  --radius:    10px;  /* cards, buttons-of-buttons, input groups */
  --radius-lg: 14px;  /* section cards, modal bodies */
  --radius-xl: 20px;  /* big surfaces, hero blocks */

  /* ===== Shadows (warm, low-saturation) ================================= */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.04);
  --shadow-md: 0 4px 18px -6px oklch(0.2 0.01 80 / 0.10),
               0 1px 2px      oklch(0.2 0.01 80 / 0.04);
  --shadow-lg: 0 24px 60px -20px oklch(0.2 0.01 80 / 0.18),
               0 2px 6px         oklch(0.2 0.01 80 / 0.06);

  /* ===== Type families ================================================== */
  /* Geist Sans for everything except code/IDs/numbers. */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system,
               "Helvetica Neue", Arial, sans-serif;
  /* Geist Mono for: filenames, IDs, counts, file sizes, dimensions,
     micro-labels (UPPER CASE 0.06em tracked), kbd, keyboard hints,
     timestamps, prices. */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------------------
 * Base
 * --------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  /* Stylistic set 01 (alternate `a`) + cv11 (single-story `g`). */
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------------------
 * Semantic typography
 *
 * Heading scale is deliberately compressed — Vanday's rhythm is small.
 * Display sizes are only ever used inside the login art panel; product UI
 * tops out at 28px.
 * --------------------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.display {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p, .body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.body-sm {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Micro-label — the tiny tracked uppercase line above field groups. */
.micro {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* Mono runs */
.mono       { font-family: var(--font-mono); font-size: 12.5px; }
.mono-sm    { font-family: var(--font-mono); font-size: 11px;   }
.mono-tag   { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; }
code, kbd, samp, pre { font-family: var(--font-mono); }
kbd {
  font-size: 10.5px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
