/* Trainblok - tokens.css */
:root {
  /* Brand: Sky blue */
  --blue-50:  #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-200: #bae6fd;
  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-900: #0c4a6e;
  --violet-50: #f5f3ff;
  --violet-600: #7c3aed;

  /* Slate neutrals */
  --slate-0:   #ffffff;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Status */
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-700: #15803d;
  --orange-100: #fff7ed;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-700: #c2410c;
  --yellow-100: #fef9c3;
  --yellow-800: #854d0e;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-700: #b91c1c;

  /* Semantic aliases */
  --color-bg:         var(--slate-50);
  --color-surface:    var(--slate-0);
  --color-surface-alt: var(--slate-50);
  --color-border:     var(--slate-200);
  --color-border-md:  var(--slate-300);

  --color-text:       var(--slate-700);
  --color-text-strong: var(--slate-900);
  --color-text-muted: var(--slate-500);
  --color-text-faint: var(--slate-400);

  --color-brand:      var(--blue-600);
  --color-brand-bg:   var(--blue-50);
  --color-brand-text: var(--blue-700);
  --color-brand-ring: rgba(2, 132, 199, 0.22);

  /* Typography */
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Epilogue, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-black:  800;

  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base: 1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Radius */
  --r-sm: 0.375rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.25rem;
  --r-pill: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.07);
  --shadow-md: 0 4px 12px rgba(15,23,42,.09);

  /* Layout */
  --nav-h:       3.75rem;
  --tabbar-h:    4.25rem;
  --gutter:      clamp(1rem, 3vw, 1.5rem);
  --max-w:       72rem;
  --max-w-form:  38rem;
  --max-w-sm:    28rem;

  /* Motion */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --focus-ring: 0 0 0 3px var(--color-brand-ring);
}

/* ── Reset base ── */
html { box-sizing: border-box; color-scheme: light; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Layout helpers ── */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
}

.muted  { color: var(--color-text-muted); }
.strong { color: var(--color-text-strong); }
