/* Yamora — design tokens
   Copied from the Yamora Design System ("Falcon" direction).
   Source of truth: Yamora Design System/tokens/ + fonts/fonts.css */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;900&family=Cairo:wght@400;600;700;900&family=Hanken+Grotesk:wght@400;500;600;700&family=Readex+Pro:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* ---- base: sand (surfaces) ---- */
  --sand-1: #EFE9DC;   /* page background */
  --sand-2: #F7F3E9;   /* raised panel / card */
  --sand-3: #E4DCC9;   /* subtle fill, table stripe */
  --sand-0: #FBF9F3;   /* brightest — inputs, popovers */

  /* ---- base: ink (text & rules) ---- */
  --ink-1: #181512;    /* primary text, strong rules */
  --ink-2: #544B40;    /* secondary text */
  --ink-3: #8A8172;    /* muted text, placeholders */

  /* ---- base: brand orange ---- */
  --orange-1: #B4400F; /* brand accent */
  --orange-2: #8F3009; /* hover / pressed */
  --orange-3: #F3D4BE; /* tint text on orange */
  --orange-0: #F7EEE4; /* lightest on-orange */

  /* ---- base: deep blue (secondary accent) ---- */
  --blue-1: #173E75;   /* secondary accent */
  --blue-2: #102C55;   /* hover / pressed */
  --blue-3: #8FA9D4;   /* tint on blue */
  --blue-0: #EDEFF5;   /* lightest on-blue */

  /* ---- base: status ---- */
  --green-1: #3D6B35;
  --amber-1: #9A6A0B;
  --red-1:   #9E2B25;
  --green-tint: #E2E8D9;
  --amber-tint: #F0E4C8;
  --red-tint:   #F0D8D2;

  /* ---- base: lines ---- */
  --line-strong: #181512;  /* 2px editorial rules */
  --line-hair: #C9C2AF;    /* 1px hairlines */

  /* ---- semantic aliases ---- */
  --surface-page: var(--sand-1);
  --surface-card: var(--sand-2);
  --surface-input: var(--sand-0);
  --surface-inverse: var(--ink-1);
  --surface-brand: var(--orange-1);
  --surface-accent: var(--blue-1);

  --text-body: var(--ink-1);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --text-on-brand: var(--orange-0);
  --text-on-accent: var(--blue-0);
  --text-on-inverse: var(--sand-1);
  --text-brand: var(--orange-1);
  --text-accent: var(--blue-1);

  --border-strong: var(--line-strong);
  --border-hair: var(--line-hair);

  --status-success: var(--green-1);
  --status-warning: var(--amber-1);
  --status-danger: var(--red-1);

  --focus-ring: var(--blue-1);
  --overlay: rgba(24, 21, 18, 0.55);

  /* ---- type families ---- */
  --font-display: 'Archivo', 'Cairo', sans-serif;
  --font-body: 'Hanken Grotesk', 'Readex Pro', sans-serif;
  --font-mono: 'Spline Sans Mono', monospace;
  --font-display-ar: 'Cairo', 'Archivo', sans-serif;
  --font-body-ar: 'Readex Pro', 'Hanken Grotesk', sans-serif;

  /* ---- size scale ---- */
  --text-2xs: 11px;
  --text-xs: 13px;
  --text-sm: 15px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 64px;
  --text-5xl: 96px;

  /* ---- weights ---- */
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 900;

  /* ---- tracking ---- */
  --tracking-display: -0.02em;
  --tracking-mono: 0.16em;
  --tracking-nav: 0.02em;

  /* ---- leading ---- */
  --leading-display: 1.02;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.6;
  --leading-body-ar: 1.9;

  /* ---- spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- layout ---- */
  --container-max: 1280px;
  --page-pad-x: 56px;
  --section-pad-y: 96px;

  /* ---- borders ---- */
  --border-w-strong: 2px;
  --border-w-hair: 1px;
  --border-w-heavy: 3px;

  /* ---- radii: the brand is square. ---- */
  --radius-0: 0px;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange-1);
  color: var(--orange-0);
}
