/* Generated by scripts/generate_tokens.py from tokens/tokens.json. Edit the JSON, not this file. */

/* Fonts: self-hosted Bricolage Grotesque (display) and Inter (UI). Copy assets/fonts/web/*.woff2 to /fonts/
   (e.g. Next.js public/fonts/), or delete these blocks and load both via next/font/google (see SKILL.md). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/BricolageGrotesque-Light.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/BricolageGrotesque-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/BricolageGrotesque-Medium.woff2') format('woff2'); }
/* Metric-matched local fallback: avoids layout shift while the web font loads. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/Inter-latin-opsz.woff2') format('woff2-variations'); 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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/Inter-latin-ext-opsz.woff2') format('woff2-variations'); 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; }
/* Metric-matched local fallbacks: no layout shift while the web fonts load. */
@font-face { font-family: 'Bricolage Grotesque Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 101.4%; ascent-override: 91.8%; descent-override: 26.6%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107.6%; ascent-override: 90.0%; descent-override: 22.4%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  /* Primitives: prefer the semantic tokens below in components. */
  --sp-pearl: #FFFAEB;
  --sp-peaceful: #EEE8D7;
  --sp-blackboard: #1C1C1C;
  --sp-sun: #FDD84A;
  --sp-orange: #FF8A43;
  --sp-cream: #FEFCF2;
  --sp-snow: #FFFEFA;
  --sp-tint-blackboard-80: #494845;
  --sp-tint-blackboard-50: #8E8B84;
  --sp-tint-blackboard-30: #BBB7AD;
  --sp-neutral-0: #FFFEFA;
  --sp-neutral-25: #FDFCF9;
  --sp-neutral-50: #FAF9F4;
  --sp-neutral-75: #F4F3EF;
  --sp-neutral-100: #EFEEE9;
  --sp-neutral-150: #E8E7E3;
  --sp-neutral-200: #DDDCD8;
  --sp-neutral-300: #C9C8C4;
  --sp-neutral-400: #AAA9A6;
  --sp-neutral-500: #8F8F8C;
  --sp-neutral-600: #6D6D6B;
  --sp-neutral-700: #565554;
  --sp-neutral-800: #3B3B3A;
  --sp-neutral-900: #1C1C1C;
  --sp-night-700: #B0ACA3;
  --sp-sun-100: #FFF6D8;
  --sp-sun-200: #FEEFBB;
  --sp-sun-300: #FEE99A;
  --sp-sun-400: #FDDE69;
  --sp-sun-500: #FDD84A;
  --sp-sun-tint: #FEF4CC;
  --sp-sun-halo: #FEE999;
  --sp-orange-100: #FFEFDA;
  --sp-orange-200: #FFE8D0;
  --sp-orange-300: #FFCDA8;
  --sp-orange-500: #FF8A43;
  --sp-orange-tint: #FFEFE2;
  --sp-orange-700: #E05800;
  --sp-orange-800: #CB4C00;
  --sp-positive-100: #EBF2E8;
  --sp-positive-300: #BBD5BF;
  --sp-positive-700: #1D7635;
  --sp-negative-100: #F9EBE6;
  --sp-negative-300: #EABFB8;
  --sp-negative-700: #BA2D1F;
  --sp-warning-700: #8B6000;
  --sp-linen: #FAF9F4;
  --sp-blackboard-raised: #282827;
  --sp-blackboard-line: #353533;

  --sp-font-display: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --sp-font-sans: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --sp-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sp-weight-light: 300;
  --sp-weight-regular: 400;
  --sp-weight-medium: 500;
  --sp-weight-semibold: 600;

  --sp-text-2xs: 0.6875rem;
  --sp-text-2xs-lh: 1.4;
  --sp-text-2xs-ls: 0.005em;
  --sp-text-xs: 0.75rem;
  --sp-text-xs-lh: 1.45;
  --sp-text-xs-ls: 0.0em;
  --sp-text-sm: 0.8125rem;
  --sp-text-sm-lh: 1.45;
  --sp-text-sm-ls: -0.003em;
  --sp-text-base: 0.875rem;
  --sp-text-base-lh: 1.55;
  --sp-text-base-ls: -0.006em;
  --sp-text-md: 0.9375rem;
  --sp-text-md-lh: 1.5;
  --sp-text-md-ls: -0.009em;
  --sp-text-lg: 1.0625rem;
  --sp-text-lg-lh: 1.45;
  --sp-text-lg-ls: -0.012em;
  --sp-text-xl: 1.25rem;
  --sp-text-xl-lh: 1.3;
  --sp-text-xl-ls: -0.015em;
  --sp-text-2xl: 1.5rem;
  --sp-text-2xl-lh: 1.2;
  --sp-text-2xl-ls: -0.018em;
  --sp-text-3xl: 2.0rem;
  --sp-text-3xl-lh: 1.12;
  --sp-text-3xl-ls: -0.022em;
  --sp-text-4xl: 2.5rem;
  --sp-text-4xl-lh: 1.05;
  --sp-text-4xl-ls: -0.026em;
  --sp-text-5xl: 3.5rem;
  --sp-text-5xl-lh: 0.98;
  --sp-text-5xl-ls: -0.032em;
  --sp-text-6xl: 4.5rem;
  --sp-text-6xl-lh: 0.93;
  --sp-text-6xl-ls: -0.04em;
  --sp-text-7xl: 6.0rem;
  --sp-text-7xl-lh: 0.92;
  --sp-text-7xl-ls: -0.045em;

  --sp-radius-sm: 6px;
  --sp-radius-md: 10px;
  --sp-radius-lg: 12px;
  --sp-radius-xl: 16px;
  --sp-radius-2xl: 20px;
  --sp-radius-pill: 9999px;

  --sp-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --sp-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --sp-ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --sp-duration-flash: 100ms;
  --sp-duration-fast: 150ms;
  --sp-duration-base: 200ms;
  --sp-duration-quick: 250ms;
  --sp-duration-slow: 300ms;
  --sp-duration-moderate: 400ms;
  --sp-duration-ticker: 500ms;
  --sp-duration-preview: 6s;
  --sp-stagger: 70ms;
  --sp-press-scale: 0.97;
  --sp-overlay-in: 250ms;
  --sp-overlay-out: 150ms;
  --sp-toast-in: 350ms;
  --sp-toast-out: 250ms;
  --sp-stagger-list: 28ms;
  --sp-enter-distance: 8px;
  --sp-enter-blur: 3px;
  --sp-digit-blur: 2px;
  --sp-shake-distance: 6px;

  --sp-sidebar-width: 248px;
  --sp-sidebar-collapsed: 64px;
  --sp-context-bar-height: 56px;
  --sp-inspector-width: 384px;
  --sp-content-max: 1280px;
  --sp-page-padding: 32px;
  --sp-page-padding-mobile: 16px;
  --sp-control-height-sm: 32px;
  --sp-control-height: 36px;
  --sp-control-height-lg: 40px;
  --sp-inset-gap: 8px;
  --sp-header-height: 56px;
  --sp-sidebar-item-height: 32px;
  --sp-control-height-xs: 24px;
  --sp-palette-width: 640px;
  --sp-control-height-xl: 44px;
  --sp-frame-gap: 0px;
  --sp-panel-radius: 16px;
  --sp-card-radius: 20px;

  --sp-gradient-spectrum: linear-gradient(to top, #FF8A43 0%, #FDD84A 60%, #FEDD5F 62%, #FEE791 70%, #FEF0B8 80%, #FEF6D4 88%, #FFFAEB 100%);
  --sp-gradient-spectrum-horizontal: linear-gradient(90deg, #FDD84A 0%, #FF8A43 100%);
  --sp-gradient-wash: linear-gradient(to top, color-mix(in srgb, var(--sp-sun) 7%, var(--sp-surface)) 0%, var(--sp-surface) 72%);
  --sp-gradient-wash-signal: linear-gradient(to top, color-mix(in srgb, var(--sp-orange) 9%, var(--sp-surface)) 0%, var(--sp-surface) 72%);
  --sp-texture-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.11 0 0 0 0 0.11 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --sp-texture-dot: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><rect width='5' height='5' fill='%23FFFAEB'/></svg>");
  --sp-texture-dot-sun: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><rect width='5' height='5' fill='%23FDD84A'/></svg>");
  --sp-texture-hatch: repeating-linear-gradient(135deg, var(--sp-border) 0 1px, transparent 1px 7px);

  /* Semantic tokens (light) */
  --sp-canvas: #FAF9F4;
  --sp-frame: #FAF9F4;
  --sp-surface: #FFFEFA;
  --sp-surface-raised: #FFFEFA;
  --sp-surface-muted: #FDFCF9;
  --sp-surface-sunken: #F4F3EF;
  --sp-surface-hover: #F4F3EF;
  --sp-surface-selected: #EFEEE9;
  --sp-surface-inverse: #1C1C1C;
  --sp-surface-floating: #1C1C1C;
  --sp-floating-fg: #FFFEFA;
  --sp-floating-muted: #AAA9A6;
  --sp-border-subtle: #EFEEE9;
  --sp-border: #E8E7E3;
  --sp-border-strong: #C9C8C4;
  --sp-border-control: #8F8F8C;
  --sp-field: #FFFEFA;
  --sp-field-ring: #E8E7E3;
  --sp-field-ring-hover: #C9C8C4;
  --sp-field-ring-focus: #AAA9A6;
  --sp-fg: #1C1C1C;
  --sp-fg-secondary: #565554;
  --sp-fg-muted: #6D6D6B;
  --sp-fg-disabled: #AAA9A6;
  --sp-fg-inverse: #FFFEFA;
  --sp-primary: #1C1C1C;
  --sp-primary-hover: #3B3B3A;
  --sp-primary-fg: #FFFEFA;
  --sp-signal: #FF8A43;
  --sp-signal-strong: #E05800;
  --sp-signal-subtle: #FFEFE2;
  --sp-signal-fg: #1C1C1C;
  --sp-sun: #FDD84A;
  --sp-sun-subtle: #FEF4CC;
  --sp-focus-ring: #1C1C1C;
  --sp-focus-halo: #EFEEE9;
  --sp-link-underline: #C9C8C4;
  --sp-selection: #E8E7E3;
  --sp-positive-fg: #1D7635;
  --sp-positive-bg: #EBF2E8;
  --sp-positive-border: #BBD5BF;
  --sp-negative-fg: #BA2D1F;
  --sp-negative-bg: #F9EBE6;
  --sp-negative-border: #EABFB8;
  --sp-warning-fg: #8B6000;
  --sp-warning-bg: #FEF4CC;
  --sp-warning-border: #FDD84A;
  --sp-info-fg: #565554;
  --sp-info-bg: #FAF9F4;
  --sp-info-border: #E8E7E3;
  --sp-attention-fg: #1C1C1C;
  --sp-attention-bg: #FFEFE2;
  --sp-attention-border: #FFCDA8;
  --sp-unknown-fg: #6D6D6B;
  --sp-unknown-border: #8F8F8C;
  --sp-chart-1: #1C1C1C;
  --sp-chart-2: #E05800;
  --sp-chart-3: #AAA9A6;
  --sp-chart-4: #FFCDA8;
  --sp-chart-5: #DDDCD8;
  --sp-chart-6: #FDD84A;
  --sp-chart-signal: #E05800;
  --sp-chart-noise: #C9C8C4;
  --sp-chart-grid: #EFEEE9;
  --sp-chart-axis: #DDDCD8;
  --sp-chart-label: #6D6D6B;
  --sp-chart-target: #1C1C1C;
  --sp-chart-band: #F4F3EF;
  --sp-ink: #1C1C1C;
  --sp-ink-raised: #282827;
  --sp-ink-line: #353533;
  --sp-ink-fg: #FEFCF2;
  --sp-ink-muted: #AAA9A6;
  --sp-shadow-xs: 0 1px 2px rgba(28, 28, 28, 0.04);
  --sp-shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.04), 0 1px 1px rgba(28, 28, 28, 0.02);
  --sp-shadow-md: 0 8px 24px -12px rgba(28, 28, 28, 0.14);
  --sp-shadow-lg: 0 16px 40px -12px rgba(28, 28, 28, 0.18), 0 0 0 1px rgba(28, 28, 28, 0.05);
  --sp-shadow-diffuse: 0 24px 64px -24px rgba(28, 28, 28, 0.20);
  --sp-shadow-glow: 0 8px 28px -8px rgba(255, 138, 67, 0.55), 0 2px 8px -2px rgba(253, 216, 74, 0.5);
  --sp-shadow-ring: 0 0 0 1px rgba(28, 28, 28, 0.07);
  --sp-shadow-ring-hover: 0 0 0 1px rgba(28, 28, 28, 0.12), 0 6px 16px -8px rgba(28, 28, 28, 0.12);
  --sp-shadow-raised: 0 0 0 1px rgba(28, 28, 28, 0.10), 0 1px 2px rgba(28, 28, 28, 0.04);
  --sp-shadow-raised-hover: 0 0 0 1px rgba(28, 28, 28, 0.16), 0 1px 2px rgba(28, 28, 28, 0.06);
  --sp-shadow-field: none;
  --sp-shadow-field-focus: 0 1px 2px rgba(28, 28, 28, 0.05), 0 0 0 4px rgba(28, 28, 28, 0.045);
  --sp-shadow-ink: none;
  --sp-shadow-floating: 0 8px 24px -8px rgba(0, 0, 0, 0.30);
  --sp-shadow-sticky-edge: 8px 0 12px -8px rgba(28, 28, 28, 0.14);
}

/* Specterly is light only: there is no dark mode (decision D22). */

/* State layers: hover/press tints derived from the text colour, so they show on every surface. */
:root {
  --sp-state-hover: color-mix(in srgb, var(--sp-fg) 5%, transparent);
  --sp-state-press: color-mix(in srgb, var(--sp-fg) 9%, transparent);
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
  body {
    margin: 0;
    background: var(--sp-canvas);
    color: var(--sp-fg);
    font-family: var(--sp-font-sans);
    font-weight: 400;
    font-size: var(--sp-text-base);
    line-height: var(--sp-text-base-lh);
    font-optical-sizing: auto;
    font-synthesis: none; /* never fake bold: Bricolage has no 600, the browser uses the real 500 cut */
  }
  /* Titles are the brand typeface: every heading uses Bricolage Grotesque 500. Inter is for body and UI text. */
  h1, h2, h3, h4, h5, h6, .sp-display { font-family: var(--sp-font-display); font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
  b, strong { font-weight: 600; }
  p { text-wrap: pretty; }
  ::selection { background: var(--sp-selection); color: var(--sp-fg); }
  /* Keyboard focus: a crisp 2px ink outline, no glow (Trendtrack: focus is a colour change, never a halo). */
  :focus-visible { outline: 2px solid var(--sp-focus-ring); outline-offset: 2px; }
  a { color: inherit; text-decoration-color: var(--sp-link-underline); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  a:hover { text-decoration-color: currentColor; }
  table, [data-numeric], .tabular { font-variant-numeric: tabular-nums; }
  hr { border: 0; border-top: 1px solid var(--sp-border); }
  /* Motion keyframes (Trendtrack-derived system, see references/components.md § Motion and interaction) */
  @keyframes sp-pop-in { from { opacity: 0; transform: scale(.94); } }
  @keyframes sp-pop-out { to { opacity: 0; transform: scale(.97); } }
  @keyframes sp-reveal { from { opacity: 0; transform: translateY(-4px); } }
  @keyframes sp-rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes sp-blur-in { from { opacity: 0; transform: translateY(var(--sp-enter-distance)); filter: blur(var(--sp-enter-blur)); } }
  @keyframes sp-digit-in { from { opacity: 0; transform: translateY(calc(var(--sp-enter-distance) * var(--sp-digit-dir, 1))); filter: blur(var(--sp-digit-blur)); } }
  @keyframes sp-fade-in { from { opacity: 0; } }
  @keyframes sp-fade-out { to { opacity: 0; } }
  @keyframes sp-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
  @keyframes sp-toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
  @keyframes sp-toast-out { to { opacity: 0; transform: translateX(24px); } }
  @keyframes sp-shake { 15% { transform: translateX(-4px); } 35% { transform: translateX(4px); } 55% { transform: translateX(-3px); } 75% { transform: translateX(2px); } }
  @keyframes sp-check-in { from { scale: .4; opacity: 0; } }
  @keyframes sp-shimmer { to { background-position: -200% 0; } }
  @keyframes sp-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    :root { --sp-press-scale: 1; }
    *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  }
}
