/* =========================================================
   Political Idioms — design tokens
   Ported from the Motion Lab token set. Values are deliberately
   unchanged so ported component CSS drops in without retuning.
   ========================================================= */

/* Self-hosted fonts. Drop the woff2 files listed in
   assets/fonts/FONTS.txt into this folder; until then the stacks in
   --font-* fall back to system faces. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces — paper first, cards lift off it with white */
  --bg: #f6f4f1;
  --bg-2: #efece7;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --surface-3: #f1eee9;

  /* Lines */
  --line: rgba(16, 19, 28, 0.1);
  --line-soft: rgba(16, 19, 28, 0.06);
  --line-strong: rgba(16, 19, 28, 0.2);

  /* Ink — every value clears AA contrast on --bg and --surface */
  --ink: #10131c;
  --text: #10131c;
  --text-2: #545a68;
  --text-3: #7d8492;

  /* Iridescent set, sampled from the swirl artwork */
  --iris-pink: #f5a8c8;
  --iris-lilac: #b8a6f2;
  --iris-sky: #9ec8f5;
  --iris-mint: #a3e4d0;
  --iris-peach: #ffcba4;
  --iris-butter: #ffe9a8;

  /* Saturated versions for text and icons that must hold contrast */
  --violet: #6b4fd8;
  --cyan: #0f9c8b;
  --amber: #b4711d;
  --pink: #d63f7f;

  --grad-brand: linear-gradient(115deg, var(--violet), var(--pink) 55%, var(--amber));
  --grad-warm: linear-gradient(115deg, var(--pink), var(--amber));

  /* The signature iridescent wash — cards, buttons, panels */
  --grad-iris: linear-gradient(
    118deg,
    var(--iris-lilac) 0%,
    var(--iris-pink) 24%,
    var(--iris-peach) 44%,
    var(--iris-butter) 60%,
    var(--iris-mint) 78%,
    var(--iris-sky) 100%
  );

  --grad-iris-soft: linear-gradient(
    118deg,
    rgba(184, 166, 242, 0.55) 0%,
    rgba(245, 168, 200, 0.55) 26%,
    rgba(255, 203, 164, 0.5) 48%,
    rgba(163, 228, 208, 0.5) 74%,
    rgba(158, 200, 245, 0.55) 100%
  );

  /* Footer and other inverted panels */
  --navy: #0e1420;
  --navy-2: #161d2c;
  --on-navy: #f3f4f8;
  --on-navy-2: rgba(243, 244, 248, 0.66);

  /* Commerce states */
  --ok: #147d4d;
  --warn: #b4711d;
  --danger: #c62f39;
  --price: var(--ink);
  --swatch-ring: rgba(16, 19, 28, 0.22);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 19, 28, 0.05), 0 4px 12px -6px rgba(16, 19, 28, 0.1);
  --shadow-md: 0 2px 6px rgba(16, 19, 28, 0.05), 0 18px 40px -22px rgba(16, 19, 28, 0.28);
  --shadow-lg: 0 4px 10px rgba(16, 19, 28, 0.05), 0 34px 70px -30px rgba(16, 19, 28, 0.32);

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 44px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --shell: min(1280px, 90vw);
  --nav-h: 74px;

  color-scheme: light;
}
