/*
 * iolette design tokens.
 * Copied verbatim from "iolette Design System — Web Export" (source of truth: iolette.DS.mvp in Figma).
 * Do not edit values here by hand; update the design system and re-export.
 */
:root {
  /* Brand colors (iolette Color / brand/*) */
  --midnight: #0f1735;
  --cobalt: #4a66ff;
  --olivine: #26340d;
  --peridot: #a7c267;
  --plaster: #e9e2da;
  --white: #ffffff;

  /* Blue scale */
  --blue-50: #eef1ff;
  --blue-100: #dce3ff;
  --blue-200: #b8c5ff;
  --blue-300: #8fa3ff;
  --blue-400: #6b83ff;
  --blue-500: var(--cobalt);
  --blue-600: #3a50d6;
  --blue-700: #2d3da3;
  --blue-800: #1f2a6e;
  --blue-900: var(--midnight);

  /* Green scale */
  --green-50: #f5f8ea;
  --green-100: #ecf1d6;
  --green-200: #dae4b3;
  --green-300: #c5d58f;
  --green-400: #b6cc79;
  --green-500: var(--peridot);
  --green-600: #86a045;
  --green-700: #5f7533;
  --green-800: #405220;
  --green-900: var(--olivine);

  /* Neutral scale */
  --neutral-0: var(--white);
  --neutral-50: #f5f2ee;
  --neutral-100: var(--plaster);
  --neutral-200: #d6d1cb;
  --neutral-300: #b9b3ab;
  --neutral-400: #8e8b88;
  --neutral-500: #5e5f64;
  --neutral-600: #3a3d47;

  /* Red scale: system only (errors, alerts) */
  --red-50: #fef0ed;
  --red-100: #fdddd6;
  --red-200: #fabbae;
  --red-300: #f59380;
  --red-400: #ef6750;
  --red-500: #e8402a;
  --red-600: #c73320;
  --red-700: #9e2818;
  --red-800: #6e1d12;

  /* Opacity helpers used by the app */
  --midnight-70: rgba(15, 23, 53, 0.7);
  --midnight-40: rgba(15, 23, 53, 0.4);
  --cobalt-40: rgba(74, 102, 255, 0.4);
  --cobalt-20: rgba(74, 102, 255, 0.2);

  /* Font families */
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Roboto Serif", Georgia, serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Sizes */
  --control-height: 52px;
  --icon-button: 40px;

  /* Shadow */
  --shadow-soft: 0 6px 4px rgba(15, 23, 53, 0.05);
  --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.25);
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--midnight);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Type styles. Display scales from 44/42 (phones) to 67/65.1 (desktop). */
.t-display,
.t-display-italic {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 67px);
  line-height: 0.972;
  letter-spacing: 0;
}
.t-display-italic { font-style: italic; }
.t-h1 { font: 500 32px/34px var(--font-sans); letter-spacing: -1px; }
.t-h2 { font: 500 24px/26px var(--font-sans); letter-spacing: -0.6px; }
.t-h3 { font: 500 20px/22px var(--font-sans); letter-spacing: -0.2px; }
.t-body { font: 400 16px/24px var(--font-sans); }
.t-body-bold { font: 600 16px/24px var(--font-sans); }
.t-body-small { font: 400 14px/20px var(--font-sans); }
.t-body-small-medium { font: 500 14px/20px var(--font-sans); }
.t-caption { font: 400 12px/normal var(--font-sans); letter-spacing: 0.4px; }
.t-caps { font: 500 11px/normal var(--font-mono); text-transform: uppercase; }
