/*
  Design tokens — ported verbatim from the Wolff.sk Design System
  (claude.ai/design project a55df0f4, tokens/*.css). Single source of truth.
  Never hardcode hex values in component CSS; use var(--...) everywhere.
*/

:root {
  /* ── Colors ─────────────────────────────────────────────── */
  /* Brand */
  --wolff-lime: #abc305;
  --wolff-lime-700: #7f9103;
  --wolff-lime-600: #96ab04;
  --wolff-lime-400: #bfd437;
  --wolff-lime-300: #d2e070;
  --wolff-lime-100: #eff4d2;
  --wolff-black: #000000;
  --wolff-white: #ffffff;

  /* Ink ramp — near-black carries a faint violet cast from the live dark pages */
  --ink-900: #16151b;
  --ink-800: #1f1e26;
  --ink-700: #2a2933;
  --ink-600: #4a4954;
  --ink-500: #6e6d78;
  --ink-400: #9a99a3;
  --ink-300: #c7c6ce;
  --ink-200: #e4e3e8;
  --ink-100: #f2f1f4;
  --ink-050: #f8f8f9;

  /* Signals — red demoted from CTA duty to error-only */
  --signal-danger: #cc220f;
  --signal-danger-bg: #fdedeb;
  --signal-warning: #e8a700;
  --signal-warning-bg: #fdf4de;
  --signal-success: #7f9103;
  --signal-success-bg: #eff4d2;
  --signal-info: #2e5aac;
  --signal-info-bg: #eaf0fa;

  /* Semantic text */
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --text-muted: var(--ink-500);
  --text-disabled: var(--ink-400);
  --text-inverse: var(--wolff-white);
  --text-inverse-secondary: rgba(255, 255, 255, 0.68);
  --text-accent: var(--wolff-lime-700);
  --text-accent-on-dark: var(--wolff-lime);
  --text-link: var(--ink-900);
  --text-link-hover: var(--wolff-lime-700);

  /* Semantic surfaces */
  --surface-page: var(--wolff-white);
  --surface-raised: var(--ink-050);
  --surface-sunken: var(--ink-100);
  --surface-dark: var(--ink-900);
  --surface-dark-raised: var(--ink-800);
  --surface-nav: var(--wolff-black);
  --surface-accent: var(--wolff-lime);
  --surface-accent-soft: var(--wolff-lime-100);
  --surface-photo: var(--wolff-white);

  /* Borders */
  --border-subtle: var(--ink-200);
  --border-default: var(--ink-300);
  --border-strong: var(--ink-900);
  --border-accent: var(--wolff-lime);
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --border-on-dark-strong: rgba(255, 255, 255, 0.28);

  /* Actions */
  --action-primary-bg: var(--wolff-lime);
  --action-primary-bg-hover: var(--wolff-lime-600);
  --action-primary-bg-active: var(--wolff-lime-700);
  --action-primary-text: var(--ink-900);
  --action-secondary-border: var(--ink-900);
  --action-secondary-text: var(--ink-900);
  --action-secondary-bg-hover: var(--ink-900);
  --action-secondary-text-hover: var(--wolff-white);
  --action-ghost-text: var(--ink-600);
  --action-disabled-bg: var(--ink-200);
  --action-disabled-text: var(--ink-400);
  --focus-ring: var(--wolff-lime);

  /* ── Typography ─────────────────────────────────────────── */
  --font-display: "Barlow Condensed", "Ubuntu", -apple-system, sans-serif;
  --font-sans: "Ubuntu", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Ubuntu Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-3xs: 10px;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 38px;
  --text-5xl: 48px;
  --text-6xl: 64px;
  --text-7xl: 84px;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-display: -0.01em;
  --tracking-tight: -0.005em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-eyebrow: 0.14em;
  --tracking-nav: 0.06em;

  /* Role shorthands */
  --type-display: var(--weight-bold) var(--text-6xl) / var(--leading-none) var(--font-display);
  --type-h1: var(--weight-bold) var(--text-5xl) / var(--leading-tight) var(--font-display);
  --type-h2: var(--weight-bold) var(--text-4xl) / var(--leading-tight) var(--font-display);
  --type-h3: var(--weight-bold) var(--text-2xl) / var(--leading-snug) var(--font-sans);
  --type-h4: var(--weight-bold) var(--text-lg) / var(--leading-snug) var(--font-sans);
  --type-body: var(--weight-regular) var(--text-base) / var(--leading-normal) var(--font-sans);
  --type-body-sm: var(--weight-regular) var(--text-sm) / var(--leading-normal) var(--font-sans);
  --type-label: var(--weight-medium) var(--text-sm) / var(--leading-snug) var(--font-sans);
  --type-eyebrow: var(--weight-bold) var(--text-xs) / var(--leading-snug) var(--font-sans);
  --type-spec: var(--weight-regular) var(--text-sm) / var(--leading-snug) var(--font-mono);

  /* ── Spacing — 4px base ─────────────────────────────────── */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;
  --space-14: 160px;

  --section-pad-y: var(--space-12);
  --section-pad-y-compact: var(--space-10);
  --card-pad: var(--space-6);
  --field-pad-y: 11px;
  --field-pad-x: 14px;
  --stack-gap: var(--space-4);
  --grid-gap: var(--space-6);

  /* ── Radii — nearly square, pill for outline buttons ────── */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --radius-button: var(--radius-sm);
  --radius-button-outline: var(--radius-pill);
  --radius-card: var(--radius-none);
  --radius-field: var(--radius-sm);
  --radius-media: var(--radius-none);
  --radius-badge: var(--radius-xs);

  /* ── Elevation — hairlines do the separating ────────────── */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(22, 21, 27, 0.06);
  --shadow-sm: 0 1px 3px rgba(22, 21, 27, 0.1);
  --shadow-md: 0 3px 10px rgba(22, 21, 27, 0.1);
  --shadow-lg: 0 10px 30px rgba(22, 21, 27, 0.13);
  --shadow-xl: 0 24px 60px rgba(22, 21, 27, 0.18);
  --shadow-on-dark: 0 14px 44px rgba(0, 0, 0, 0.55);
  --shadow-accent-focus: 0 0 0 3px rgba(171, 195, 5, 0.38);
  --shadow-inset-hairline: inset 0 -1px 0 var(--border-subtle);
  --overlay-scrim: rgba(22, 21, 27, 0.66);
  --overlay-photo-top: linear-gradient(180deg, rgba(22, 21, 27, 0.72) 0%, rgba(22, 21, 27, 0) 58%);
  --overlay-photo-bottom: linear-gradient(0deg, rgba(22, 21, 27, 0.82) 0%, rgba(22, 21, 27, 0) 62%);
  --blur-glass: saturate(140%) blur(14px);

  /* ── Motion — short, mechanical, no bounce ──────────────── */
  --dur-instant: 80ms;
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-color:
    color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
  --transition-transform: transform var(--dur-base) var(--ease-out);
  --press-scale: 0.985;

  /* ── Layout — two shells, both black ────────────────────── */
  --container-max: 1240px;
  --container-narrow: 760px;
  --container-wide: 1560px;
  --gutter: var(--space-6);
  --gutter-lg: var(--space-9);
  --sidebar-width: 224px;
  --sidebar-width-compact: 184px;
  --topbar-height: 76px;
  --topbar-height-compact: 60px;
  --z-base: 0;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --hit-min: 44px;
}
