/* Talik UI tokens — generated from tokens/tokens.json. MIT © 2026 Talat Gurbanbayov. */
@layer reset, tokens, components, utilities;

@layer tokens {
  :root, [data-theme="light"] {
    color-scheme: light;
    --hero: #fbfbfc;
    --hero-ink: #14131a;
    --hero-muted: #55535c;
    --paper: #f6f6f4;
    --mist: #ebeef0;
    --stone: #ecebe7;
    --surface: #e4e5e3;
    --surface-2: #d9dbd9;
    --code-bg: #e7e8e6;
    --line: #00000000;
    --edge: #14131a;
    --topbar: var(--hero);
    --footer: var(--hero);
    --hl: var(--lime);
    --field-yellow: #fff4b8;
    --field-violet: #f4ebff;
    --ground-lime-paper: #f3fae4;
    --ground-lime-deep: #e9f4d3;
    --ground-lime-hover: #e0edc4;
    --ground-violet-paper: #f7f2ff;
    --ground-violet-deep: #f0e9fe;
    --ground-violet-hover: #e9dffb;
    --ground-bold-hero: #c6f000;
    --ground-bold-band: #9a00ff;
    --ink: #14131a;
    --muted: #4a4950;
    --lime: #c6f000;
    --on-lime: #14131a;
    --violet: #9a00ff;
    --violet-hover: #8400de;
    --on-violet: #ffffff;
    --violet-text: #9a00ff;
    --violet-on-band: #9a00ff;
    --on-violet-on-band: #ffffff;
    --edge-on-lime: #ffffff;
    --signal: #ffd400;
    --on-signal: #14131a;
    --focus: #14131a;
    --brand-band: var(--lime);
    --on-brand-band: var(--on-lime);
    --err: #ffdfdc;
    --err-text: #cd0522;
    --err-mark: #ff022c;
    --drift: #fbecc6;
    --drift-text: #714900;
    --drift-mark: #b07a00;
    --usage: #d8ecf0;
    --usage-text: #0c5a66;
    --usage-mark: #1b8a99;
    --ci: #dff0dc;
    --ci-text: #25622a;
    --ci-mark: #3a8f3f;
    --term-bg: #0b0b0e;
    --term-bar: #1b1b20;
    --term-bar-ink: #b9b9b9;
    --term-dot: #3a3a42;
    --term-ink: #ededed;
    --term-dim: #9a9a9a;
    --term-err: #ff2c39;
    --term-drift: #f2c45a;
    --term-usage: #7fd6e2;
    --shadow-offset: 12px 12px 0 #14131a;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
      color-scheme: dark;
      --hero: #111210;
      --hero-ink: #f1f2ee;
      --hero-muted: #c3c5bf;
      --paper: #0e0e10;
      --mist: #131619;
      --stone: #161513;
      --surface: #1b1b1e;
      --surface-2: #242428;
      --code-bg: #0b0b0d;
      --line: #00000000;
      --edge: #f1f2ee;
      --topbar: var(--hero);
      --footer: var(--hero);
      --hl: var(--lime);
      --field-yellow: var(--stone);
      --field-violet: var(--stone);
      --ground-lime-paper: #f3fae4;
      --ground-lime-deep: #e9f4d3;
      --ground-lime-hover: #e0edc4;
      --ground-violet-paper: #f7f2ff;
      --ground-violet-deep: #f0e9fe;
      --ground-violet-hover: #e9dffb;
      --ground-bold-hero: #c6f000;
      --ground-bold-band: #9a00ff;
      --ink: #ededed;
      --muted: #b3b3b3;
      --lime: #c6f000;
      --on-lime: #14131a;
      --violet: #ae64ff;
      --violet-hover: #b67aff;
      --on-violet: #14131a;
      --violet-text: #ae64ff;
      --violet-on-band: #9a00ff;
      --on-violet-on-band: #ffffff;
      --edge-on-lime: #ffffff;
      --signal: #ffd400;
      --on-signal: #14131a;
      --focus: #f1f2ee;
      --brand-band: var(--lime);
      --on-brand-band: var(--on-lime);
      --err: #3d090a;
      --err-text: #ff2c39;
      --err-mark: #ff022c;
      --drift: #2a2210;
      --drift-text: #f4c862;
      --drift-mark: #f59a23;
      --usage: #0e2429;
      --usage-text: #7fd6e2;
      --usage-mark: #3fb6c6;
      --ci: #13230f;
      --ci-text: #9ee08f;
      --ci-mark: #5cbf55;
      --term-bg: #0b0b0e;
      --term-bar: #1b1b20;
      --term-bar-ink: #b9b9b9;
      --term-dot: #3a3a42;
      --term-ink: #ededed;
      --term-dim: #9a9a9a;
      --term-err: #ff2c39;
      --term-drift: #f2c45a;
      --term-usage: #7fd6e2;
      --shadow-offset: 12px 12px 0 #c6f000;
    }
  }
  [data-theme="dark"] {
    color-scheme: dark;
    --hero: #111210;
    --hero-ink: #f1f2ee;
    --hero-muted: #c3c5bf;
    --paper: #0e0e10;
    --mist: #131619;
    --stone: #161513;
    --surface: #1b1b1e;
    --surface-2: #242428;
    --code-bg: #0b0b0d;
    --line: #00000000;
    --edge: #f1f2ee;
    --topbar: var(--hero);
    --footer: var(--hero);
    --hl: var(--lime);
    --field-yellow: var(--stone);
    --field-violet: var(--stone);
    --ground-lime-paper: #f3fae4;
    --ground-lime-deep: #e9f4d3;
    --ground-lime-hover: #e0edc4;
    --ground-violet-paper: #f7f2ff;
    --ground-violet-deep: #f0e9fe;
    --ground-violet-hover: #e9dffb;
    --ground-bold-hero: #c6f000;
    --ground-bold-band: #9a00ff;
    --ink: #ededed;
    --muted: #b3b3b3;
    --lime: #c6f000;
    --on-lime: #14131a;
    --violet: #ae64ff;
    --violet-hover: #b67aff;
    --on-violet: #14131a;
    --violet-text: #ae64ff;
    --violet-on-band: #9a00ff;
    --on-violet-on-band: #ffffff;
    --edge-on-lime: #ffffff;
    --signal: #ffd400;
    --on-signal: #14131a;
    --focus: #f1f2ee;
    --brand-band: var(--lime);
    --on-brand-band: var(--on-lime);
    --err: #3d090a;
    --err-text: #ff2c39;
    --err-mark: #ff022c;
    --drift: #2a2210;
    --drift-text: #f4c862;
    --drift-mark: #f59a23;
    --usage: #0e2429;
    --usage-text: #7fd6e2;
    --usage-mark: #3fb6c6;
    --ci: #13230f;
    --ci-text: #9ee08f;
    --ci-mark: #5cbf55;
    --term-bg: #0b0b0e;
    --term-bar: #1b1b20;
    --term-bar-ink: #b9b9b9;
    --term-dot: #3a3a42;
    --term-ink: #ededed;
    --term-dim: #9a9a9a;
    --term-err: #ff2c39;
    --term-drift: #f2c45a;
    --term-usage: #7fd6e2;
    --shadow-offset: 12px 12px 0 #c6f000;
  }
  @media (prefers-contrast: more) {
    :root:not([data-theme]) {
      --hero: #ffffff;
      --hero-ink: #000000;
      --hero-muted: #2b2b2b;
      --paper: #ffffff;
      --mist: #ffffff;
      --stone: #ffffff;
      --surface: #ffffff;
      --surface-2: #f0f0f0;
      --code-bg: #f2f2f2;
      --line: #000000;
      --edge: #000000;
      --topbar: var(--hero);
      --footer: var(--hero);
      --hl: var(--lime);
      --field-yellow: #ffffff;
      --field-violet: #ffffff;
      --ground-lime-paper: #f3fae4;
      --ground-lime-deep: #e9f4d3;
      --ground-lime-hover: #e0edc4;
      --ground-violet-paper: #f7f2ff;
      --ground-violet-deep: #f0e9fe;
      --ground-violet-hover: #e9dffb;
      --ground-bold-hero: #c6f000;
      --ground-bold-band: #9a00ff;
      --ink: #000000;
      --muted: #2b2b2b;
      --lime: #c6f000;
      --on-lime: #000000;
      --violet: #6a00c2;
      --violet-hover: #52009a;
      --on-violet: #ffffff;
      --violet-text: #6a00c2;
      --violet-on-band: #6a00c2;
      --on-violet-on-band: #ffffff;
      --edge-on-lime: #000000;
      --signal: #ffd400;
      --on-signal: #000000;
      --focus: #000000;
      --brand-band: var(--lime);
      --on-brand-band: var(--on-lime);
      --err: #ffffff;
      --err-text: #a8001b;
      --err-mark: #c00020;
      --drift: #ffffff;
      --drift-text: #4f3300;
      --drift-mark: #7a5200;
      --usage: #ffffff;
      --usage-text: #063f48;
      --usage-mark: #0a5c67;
      --ci: #ffffff;
      --ci-text: #174419;
      --ci-mark: #1f6a24;
      --term-bg: #000000;
      --term-bar: #1a1a1a;
      --term-bar-ink: #e6e6e6;
      --term-dot: #8a8a8a;
      --term-ink: #ffffff;
      --term-dim: #cfcfcf;
      --term-err: #ffa3ab;
      --term-drift: #ffd479;
      --term-usage: #97e6f0;
      --shadow-offset: 12px 12px 0 #000000;
    }
  }
  [data-theme="contrast"] {
    color-scheme: light;
    --hero: #ffffff;
    --hero-ink: #000000;
    --hero-muted: #2b2b2b;
    --paper: #ffffff;
    --mist: #ffffff;
    --stone: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f0f0;
    --code-bg: #f2f2f2;
    --line: #000000;
    --edge: #000000;
    --topbar: var(--hero);
    --footer: var(--hero);
    --hl: var(--lime);
    --field-yellow: #ffffff;
    --field-violet: #ffffff;
    --ground-lime-paper: #f3fae4;
    --ground-lime-deep: #e9f4d3;
    --ground-lime-hover: #e0edc4;
    --ground-violet-paper: #f7f2ff;
    --ground-violet-deep: #f0e9fe;
    --ground-violet-hover: #e9dffb;
    --ground-bold-hero: #c6f000;
    --ground-bold-band: #9a00ff;
    --ink: #000000;
    --muted: #2b2b2b;
    --lime: #c6f000;
    --on-lime: #000000;
    --violet: #6a00c2;
    --violet-hover: #52009a;
    --on-violet: #ffffff;
    --violet-text: #6a00c2;
    --violet-on-band: #6a00c2;
    --on-violet-on-band: #ffffff;
    --edge-on-lime: #000000;
    --signal: #ffd400;
    --on-signal: #000000;
    --focus: #000000;
    --brand-band: var(--lime);
    --on-brand-band: var(--on-lime);
    --err: #ffffff;
    --err-text: #a8001b;
    --err-mark: #c00020;
    --drift: #ffffff;
    --drift-text: #4f3300;
    --drift-mark: #7a5200;
    --usage: #ffffff;
    --usage-text: #063f48;
    --usage-mark: #0a5c67;
    --ci: #ffffff;
    --ci-text: #174419;
    --ci-mark: #1f6a24;
    --term-bg: #000000;
    --term-bar: #1a1a1a;
    --term-bar-ink: #e6e6e6;
    --term-dot: #8a8a8a;
    --term-ink: #ffffff;
    --term-dim: #cfcfcf;
    --term-err: #ffa3ab;
    --term-drift: #ffd479;
    --term-usage: #97e6f0;
    --shadow-offset: 12px 12px 0 #000000;
  }
  :root {
    --space-2: 2px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-18: 18px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-56: 56px;
    --space-72: 72px;
    --radius: 10px;
    --radius-inner: 8px;
    --radius-mark: 14px;
    --radius-pill: 999px;
    --z-topbar: 10;
    --z-skip: 20;
    --opacity-chart-bar: 0.8;
    --opacity-dim-dot: 1;
    --target-min: 24px;
    --target: 44px;
    --measure: 68ch;
    --content-max: 1240px;
    --topbar-height: 64px;
    --font-display: "Bricolage Grotesque", "General Sans", ui-sans-serif, system-ui, sans-serif;
    --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: code and terminal only */
    --text-display: clamp(2.5rem, 0.9rem + 5.2vw, 6rem);
    --text-h1: clamp(2rem, 1.1rem + 3vw, 3.5rem);
    --text-h2: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
    --text-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
    --text-lead: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
    --text-body: 18px;
    --text-small: 15px;
    --text-caption: 15px;
    --text-code: 14px;
    --text-terminal: 13px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --dur-step: 450ms;
    --dur-hover: 200ms;
    --in-view-delay: 600ms;
  }
  .display { font-family: var(--font-display); font-size: var(--text-display); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
  .h1 { font-family: var(--font-display); font-size: var(--text-h1); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; }
  .h2 { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
  .h3 { font-family: var(--font-sans); font-size: var(--text-h3); line-height: 1.25; font-weight: 600; }
  .lead { font-family: var(--font-sans); font-size: var(--text-lead); line-height: 1.5; font-weight: 400; }
  .body { font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.6; font-weight: 400; }
  .small { font-family: var(--font-sans); font-size: var(--text-small); line-height: 1.5; font-weight: 400; }
  .caption { font-family: var(--font-sans); font-size: var(--text-caption); line-height: 1.45; font-weight: 400; }
  .code { font-family: var(--font-mono); font-size: var(--text-code); line-height: 1.6; font-weight: 400; } /* taste-skill-ignore: code and terminal only */
  .terminal { font-family: var(--font-mono); font-size: var(--text-terminal); line-height: 1.65; font-weight: 400; } /* taste-skill-ignore: code and terminal only */
}

/* Fonts: General Sans 400/500/700 (ITF Free Font License: self-hosted on the owner's own sites, never in a public repo) and Bricolage Grotesque 800 (SIL OFL 1.1). See fonts/LICENSES.md. */
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-800-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; 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; }

/* Grounds: data-ground="lime" (api-dead-ends), "violet" (logs2k6), "bold" (talik.dev). Light theme only; dark and contrast are shared; finding colours never change. */
@layer tokens {
  @media (prefers-color-scheme: light) { :root[data-ground="lime"]:not([data-theme="dark"]):not([data-theme="contrast"]) {
    --hero: #f3fae4;
    --paper: #f3fae4;
    --mist: #e9f4d3;
    --stone: #e9f4d3;
    --surface: #ffffff;
    --surface-2: #e0edc4;
    --code-bg: #ffffff;
  } }
  @media not (prefers-color-scheme: light) { :root[data-ground="lime"][data-theme="light"] {
    --hero: #f3fae4;
    --paper: #f3fae4;
    --mist: #e9f4d3;
    --stone: #e9f4d3;
    --surface: #ffffff;
    --surface-2: #e0edc4;
    --code-bg: #ffffff;
  } }
  :root[data-ground="lime"][data-theme="light"], [data-ground="lime"] [data-theme="light"] {
    --hero: #f3fae4;
    --paper: #f3fae4;
    --mist: #e9f4d3;
    --stone: #e9f4d3;
    --surface: #ffffff;
    --surface-2: #e0edc4;
    --code-bg: #ffffff;
  }
  @media (prefers-color-scheme: light) { :root[data-ground="violet"]:not([data-theme="dark"]):not([data-theme="contrast"]) {
    --hero: #f7f2ff;
    --paper: #f7f2ff;
    --mist: #f0e9fe;
    --stone: #f0e9fe;
    --surface: #ffffff;
    --surface-2: #e9dffb;
    --code-bg: #ffffff;
  } }
  @media not (prefers-color-scheme: light) { :root[data-ground="violet"][data-theme="light"] {
    --hero: #f7f2ff;
    --paper: #f7f2ff;
    --mist: #f0e9fe;
    --stone: #f0e9fe;
    --surface: #ffffff;
    --surface-2: #e9dffb;
    --code-bg: #ffffff;
  } }
  :root[data-ground="violet"][data-theme="light"], [data-ground="violet"] [data-theme="light"] {
    --hero: #f7f2ff;
    --paper: #f7f2ff;
    --mist: #f0e9fe;
    --stone: #f0e9fe;
    --surface: #ffffff;
    --surface-2: #e9dffb;
    --code-bg: #ffffff;
  }
  @media (prefers-color-scheme: light) { :root[data-ground="bold"]:not([data-theme="dark"]):not([data-theme="contrast"]) {
    --hero: #c6f000;
    --topbar: #ffffff;
    --footer: #ffffff;
    --hl: #ffffff;
    --paper: #ffffff;
    --mist: #ffffff;
    --stone: #ffffff;
    --brand-band: #9a00ff;
    --on-brand-band: #ffffff;
    --violet-on-band: #c6f000;
    --on-violet-on-band: #14131a;
    --edge-on-lime: #14131a;
  } }
  @media not (prefers-color-scheme: light) { :root[data-ground="bold"][data-theme="light"] {
    --hero: #c6f000;
    --topbar: #ffffff;
    --footer: #ffffff;
    --hl: #ffffff;
    --paper: #ffffff;
    --mist: #ffffff;
    --stone: #ffffff;
    --brand-band: #9a00ff;
    --on-brand-band: #ffffff;
    --violet-on-band: #c6f000;
    --on-violet-on-band: #14131a;
    --edge-on-lime: #14131a;
  } }
  :root[data-ground="bold"][data-theme="light"], [data-ground="bold"] [data-theme="light"] {
    --hero: #c6f000;
    --topbar: #ffffff;
    --footer: #ffffff;
    --hl: #ffffff;
    --paper: #ffffff;
    --mist: #ffffff;
    --stone: #ffffff;
    --brand-band: #9a00ff;
    --on-brand-band: #ffffff;
    --violet-on-band: #c6f000;
    --on-violet-on-band: #14131a;
    --edge-on-lime: #14131a;
  }
}
