/* Kwintely's identity: the one tokens file (PLAN.md *Phase I*).
 *
 * Read from kwintely.de's public site once, on 2026-10-29. The site's copy is
 * in tests/identity_source, and tests/test_identity.py holds this file to it.
 *
 * The dark theme is the site's own: its main.css :root, with --noise and
 * --max-w left out. It adds the tokens of ours below, and --danger. That is
 * the red the site shows a "down" status in. The site shows a form's errors
 * in --warn, amber. billing_central's forms show them in red, in
 * --danger-text, as Phase F chose. Dark is the default.
 *
 * The light theme applies under <html data-theme="light">, on top of :root.
 * The site's own light block, .uc-fto-shot, gives its --bg, --surface,
 * --border and three text colours, and its chips give --positive, --warn
 * and --danger. Like that block, it keeps the accent and purple of :root.
 * It keeps --edge, ours, too: that reaches 3:1 in both themes as it is.
 * --surface-2, --border-2, the glows and the shadows are ours. Whether a
 * page follows the system's preference is the frontend's choice.
 *
 * The dark block also answers [data-theme="dark"] on any element, so a part
 * of a light page can stay dark: the admin's sidebar, as partner_apis'
 * stays. The light block names :root, so it never reaches that element, which
 * re-reads the dark values for itself and its children. [data-theme="dark"]
 * comes first: web/src/tokens.test.ts finds this block by `:root {`.
 *
 * Text is set in --accent-text and --danger-text, ours, chosen in Phase F.
 * Each reaches WCAG AA's 4.5:1 on every background in both themes. The dark
 * --accent-text is where the site's --gradient-text starts, and the light
 * one is the site's hover blue. --accent, --danger and --warn stay the
 * site's colours for fills: as text, each falls below 4.5:1 somewhere.
 * tests/test_identity.py lists the exact pairs, and tests/test_web.py
 * refuses text set in them. Amber text waits for a --warn-text of its own.
 *
 * --surface-2 fills a pressed or selected control and the shared button, on
 * the page and on a card, so it stands apart from both in each theme. The
 * light one was made darker for that on 2026-11-01. --edge, ours, is the
 * edge of the shared button, the text field and the pressed theme button:
 * 3:1 on every background in both themes, as WCAG 1.4.11 asks.
 * The light --border-2 is the faint divider again, which is what the site
 * uses --border-2 for.
 *
 * Serve this file beside its fonts/ folder, never inline it: the fonts are
 * named relative to the stylesheet.
 *
 * Logos, beside this file: the emblem and the wordmark in white, the site's,
 * and in black, each the white file with its fill made black.
 */

@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/geist-sans-regular.woff2') format('woff2');}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/geist-sans-medium.woff2') format('woff2');}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/geist-sans-bold.woff2') format('woff2');}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/geist-mono-regular.woff2') format('woff2');}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/geist-mono-medium.woff2') format('woff2');}

[data-theme="dark"], :root {
  color-scheme:  dark;
  --bg:          #0a0f1e;
  --surface:     #111827;
  --surface-2:   #1a2436;
  --border:      #1f2d45;
  --border-2:    #111827;
  --accent:      #2563eb;
  --accent-h:    #1d4ed8;
  --accent-glow: rgba(37,99,235,.3);
  --purple:      #7c3aed;
  --purple-muted:rgba(124,58,237,.15);
  --positive:    #10b981;
  --warn:        #f59e0b;
  --danger:      #ef4444;
  --accent-text: #60a5fa;
  --danger-text: #f87171;
  --edge:        #64748b;
  --text:        #f0f6ff;
  --text-muted:  #8ba3c4;
  --text-subtle: #4a6080;
  --font:        'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'Geist Mono', ui-monospace, 'Cascadia Code', monospace;
  --r:           10px;
  --r-lg:        18px;
  --r-xl:        24px;
  --sh:          0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --sh-md:       0 8px 32px rgba(0,0,0,.5);
  --sh-lg:       0 20px 60px rgba(0,0,0,.6);
  --sh-glow:     0 0 0 3px var(--accent-glow);
  --gradient:    linear-gradient(135deg, var(--accent), var(--purple));
  --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);
}

:root[data-theme="light"] {
  color-scheme:  light;
  --bg:          #f3f6fb;
  --surface:     #ffffff;
  --surface-2:   #e5eaf2;
  --border:      #e2e8f0;
  --border-2:    #ffffff;
  --accent-glow: rgba(37,99,235,.25);
  --purple-muted:rgba(124,58,237,.10);
  --positive:    #047857;
  --warn:        #b45309;
  --danger:      #dc2626;
  --accent-text: var(--accent-h);
  --danger-text: #b91c1c;
  --text:        #1e293b;
  --text-muted:  #475569;
  --text-subtle: #64748b;
  --sh:          0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --sh-md:       0 8px 32px rgba(15,23,42,.10);
  --sh-lg:       0 20px 60px rgba(15,23,42,.14);
  --gradient-text: linear-gradient(135deg, var(--accent), var(--purple));
}
