/* GENERATED FILE. Do not edit by hand.
   Source of truth: krizekster/Website-Plus src/app/globals.css @ 51e7ae3.
   Regenerate: python tools/sync-tokens.py <path-to-globals.css> --source-ref <sha>
   Section 1 is the global :root token block, copied verbatim. Section 2 derives the
   documentation reading themes from it (all derived pairs pass WCAG AA 4.5:1). */

/* 1. Global tokens (verbatim) */
:root {
  /* Dark surfaces (primary mode) */
  --bg:                #000000;
  --surface:           #0a0a0a;
  --surface-raised:    #121212;
  --surface-inset:     #060606;

  /* Light surfaces (band mode) */
  --bg-light:          #f5f5f5;
  --surface-light:     #ffffff;
  --text-on-light:     #0a0a0a;
  --text-on-light-mut: #5c5c5c;

  /* Text on dark */
  --text:              #ffffff;
  --text-secondary:    #b4b4b4;
  --text-muted:        #7a7a7a;
  --text-faint:        #4a4a4a;

  /* Borders */
  --border:            rgba(255, 255, 255, 0.08);
  --border-strong:     rgba(255, 255, 255, 0.16);
  --border-light:      #e2e2e2;
  --border-light-str:  #cccccc;

  /* Brand */
  --brand:             #fc42da;
  --brand-deep:        #c92fa9;
  --accent:            #fc42da;
  --accent-deep:       #c92fa9;

  /* Categorical accents */
  --cat-tan:           #b8a082;
  --cat-forest:        #5c7a6b;
  --cat-violet:        #fc42da;
  --cat-slate:         #6b7f96;

  /* Semantic */
  --success:           #4a9d6e;
  --warning:           #c99a4a;
  --danger:            #c25555;

  /* Fonts */
  --font-display-val:  'Geist', sans-serif;
  --font-body-val:     'Inter', sans-serif;
  --font-mono-val:     'Geist Mono', monospace;

  /* Type scale */
  --text-display-1: clamp(2.75rem, 8vw, 7.25rem);
  --text-display-2: clamp(2.75rem, 6vw, 4.5rem);
  --text-h1:        clamp(2.25rem, 4.5vw, 3.5rem);
  --text-h2:        clamp(1.75rem, 3vw, 2.5rem);
  --text-h3:        clamp(1.25rem, 2vw, 1.5rem);
  --text-body-lg:   1.125rem;
  --text-body:      1rem;
  --text-sm:        0.875rem;
  --text-eyebrow:   0.875rem;

  /* Tracking */
  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-body:     0;
  --tracking-eyebrow:  0.12em;

  /* Line height */
  --leading-display: 1.02;
  --leading-heading: 1.12;
  --leading-body:    1.6;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-none: none;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   640ms;

  /* Layout */
  --container:       1280px;
  --container-text:  720px;
  --container-wide:  1440px;
  --gutter:          clamp(1rem, 4vw, 2.5rem);
  --announcement-height: 2.5rem;
  /* Measured header clearance: 88.8px on mobile, rounded up to 90px. */
  --header-height: 5.625rem;
}

/* 2. Documentation theme layer */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --link: var(--brand);
  --on-brand: #ffffff;
  --scrim: rgba(0, 0, 0, 0.72);
  --ink-violet: #fc42da;
  --ink-slate: #97a5b6;
  --ink-forest: #95a99f;
  --ink-tan: #b8a082;
  --ink-success: #89bfa1;
  --ink-warning: #d4ae6e;
  --ink-danger: #d48888;
  --tint-brand: rgba(252, 66, 218, 0.12);
  --line-brand: rgba(252, 66, 218, 0.45);
  --tint-violet: rgba(252, 66, 218, 0.12);
  --line-violet: rgba(252, 66, 218, 0.45);
  --tint-slate: rgba(107, 127, 150, 0.12);
  --line-slate: rgba(107, 127, 150, 0.45);
  --tint-forest: rgba(92, 122, 107, 0.12);
  --line-forest: rgba(92, 122, 107, 0.45);
  --tint-tan: rgba(184, 160, 130, 0.12);
  --line-tan: rgba(184, 160, 130, 0.45);
  --tint-success: rgba(74, 157, 110, 0.12);
  --line-success: rgba(74, 157, 110, 0.45);
  --tint-warning: rgba(201, 154, 74, 0.12);
  --line-warning: rgba(201, 154, 74, 0.45);
  --tint-danger: rgba(194, 85, 85, 0.12);
  --line-danger: rgba(194, 85, 85, 0.45);
  --code-bg: var(--surface-inset);
  --code-text: var(--text);
  --code-keyword: var(--ink-violet);
  --code-string: var(--ink-tan);
  --code-comment: var(--text-muted);
  --code-number: var(--ink-slate);
  --code-function: var(--text);
  --code-type: var(--ink-forest);
  --code-flag: var(--ink-forest);
  --code-placeholder: var(--ink-slate);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--surface-light);
  --surface: var(--bg-light);
  --surface-raised: #ebebeb;
  --surface-inset: #fafafa;
  --text: var(--text-on-light);
  --text-secondary: #3b3b3b;
  --text-muted: var(--text-on-light-mut);
  --text-faint: #8d8d8d;
  --border: var(--border-light);
  --border-strong: var(--border-light-str);
  --link: var(--brand-deep);
  --on-brand: #ffffff;
  --scrim: rgba(10, 10, 10, 0.38);
  --ink-violet: #c92fa9;
  --ink-slate: #505f70;
  --ink-forest: #4a6256;
  --ink-tan: #655848;
  --ink-success: #346e4d;
  --ink-warning: #6f5529;
  --ink-danger: #a54848;
  --tint-brand: rgba(252, 66, 218, 0.1);
  --line-brand: rgba(252, 66, 218, 0.4);
  --tint-violet: rgba(252, 66, 218, 0.1);
  --line-violet: rgba(252, 66, 218, 0.4);
  --tint-slate: rgba(107, 127, 150, 0.1);
  --line-slate: rgba(107, 127, 150, 0.4);
  --tint-forest: rgba(92, 122, 107, 0.1);
  --line-forest: rgba(92, 122, 107, 0.4);
  --tint-tan: rgba(184, 160, 130, 0.1);
  --line-tan: rgba(184, 160, 130, 0.4);
  --tint-success: rgba(74, 157, 110, 0.1);
  --line-success: rgba(74, 157, 110, 0.4);
  --tint-warning: rgba(201, 154, 74, 0.1);
  --line-warning: rgba(201, 154, 74, 0.4);
  --tint-danger: rgba(194, 85, 85, 0.1);
  --line-danger: rgba(194, 85, 85, 0.4);
  --code-bg: var(--surface-inset);
  --code-text: var(--text);
  --code-keyword: var(--ink-violet);
  --code-string: var(--ink-tan);
  --code-comment: var(--text-muted);
  --code-number: var(--ink-slate);
  --code-function: var(--text);
  --code-type: var(--ink-forest);
  --code-flag: var(--ink-forest);
  --code-placeholder: var(--ink-slate);
}

/* No-JS fallback: follow the operating system when no explicit theme is set. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: var(--surface-light);
    --surface: var(--bg-light);
    --surface-raised: #ebebeb;
    --surface-inset: #fafafa;
    --text: var(--text-on-light);
    --text-secondary: #3b3b3b;
    --text-muted: var(--text-on-light-mut);
    --text-faint: #8d8d8d;
    --border: var(--border-light);
    --border-strong: var(--border-light-str);
    --link: var(--brand-deep);
    --on-brand: #ffffff;
    --scrim: rgba(10, 10, 10, 0.38);
    --ink-violet: #c92fa9;
    --ink-slate: #505f70;
    --ink-forest: #4a6256;
    --ink-tan: #655848;
    --ink-success: #346e4d;
    --ink-warning: #6f5529;
    --ink-danger: #a54848;
    --tint-brand: rgba(252, 66, 218, 0.1);
    --line-brand: rgba(252, 66, 218, 0.4);
    --tint-violet: rgba(252, 66, 218, 0.1);
    --line-violet: rgba(252, 66, 218, 0.4);
    --tint-slate: rgba(107, 127, 150, 0.1);
    --line-slate: rgba(107, 127, 150, 0.4);
    --tint-forest: rgba(92, 122, 107, 0.1);
    --line-forest: rgba(92, 122, 107, 0.4);
    --tint-tan: rgba(184, 160, 130, 0.1);
    --line-tan: rgba(184, 160, 130, 0.4);
    --tint-success: rgba(74, 157, 110, 0.1);
    --line-success: rgba(74, 157, 110, 0.4);
    --tint-warning: rgba(201, 154, 74, 0.1);
    --line-warning: rgba(201, 154, 74, 0.4);
    --tint-danger: rgba(194, 85, 85, 0.1);
    --line-danger: rgba(194, 85, 85, 0.4);
    --code-bg: var(--surface-inset);
    --code-text: var(--text);
    --code-keyword: var(--ink-violet);
    --code-string: var(--ink-tan);
    --code-comment: var(--text-muted);
    --code-number: var(--ink-slate);
    --code-function: var(--text);
    --code-type: var(--ink-forest);
    --code-flag: var(--ink-forest);
    --code-placeholder: var(--ink-slate);
  }
}
