/* Made in Motion design tokens. The one source every surface imports: website, HQ, documents, video kit.
   Signed off by Uwais 6 Nov 2026. Rules for using them: DESIGN.md at the repo root.
   Fonts: import ./fonts/mim/fonts.css alongside this file. */
:root {
  /* colour: grounds */
  --mim-night: #17110E;        /* page ground on screen */
  --mim-leather: #3B241C;      /* print, packaging, film ground (as texture where there's room). Not on the website */
  --mim-espresso: #2B1E18;     /* website dark sections */
  --mim-board: #1A1614;        /* cards, print bands, HQ surfaces */

  /* colour: the one accent, two depths */
  --mim-oxblood: #6E1E2A;      /* buttons, totals, tiles, the italic word in print */
  --mim-oxblood-hover: #7D2431;
  --mim-oxblood-deep: #4A141C; /* big fields: bands, section backgrounds, end cards */

  /* colour: paper and type */
  --mim-cream: #E6DCCB;        /* paper; all type on dark */
  --mim-mist: #B3A898;         /* secondary type on dark */
  --mim-stone: #8A7F74;        /* quiet surfaces only, never text */
  --mim-ink: #1D1714;          /* type on cream */
  --mim-ink-soft: #5D5249;     /* secondary type on cream */
  --mim-rose: #E3A6AB;         /* errors on dark: text and field line */
  --mim-rule: rgb(230 220 203 / .22);
  --mim-rule-soft: rgb(230 220 203 / .12);
  --mim-focus: rgb(230 220 203 / .45);

  /* type */
  --mim-script: "Pinyon Script", "Snell Roundhand", cursive;   /* the wordmark + one accent word per website section */
  --mim-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --mim-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* statement = var(--mim-sans), weight 800, font-stretch 62%, uppercase, line-height .92 */
  --mim-display: clamp(3.25rem, 6.6vw, 6rem);    /* 52 -> 96px */
  --mim-h1: clamp(2.5rem, 4.4vw, 4rem);          /* 40 -> 64px */
  --mim-h2: clamp(2rem, 3vw, 2.75rem);           /* 32 -> 44px */
  --mim-h3: clamp(1.5rem, 2vw, 1.75rem);         /* 24 -> 28px */
  --mim-statement: clamp(2.75rem, 5vw, 4.5rem);  /* 44 -> 72px */
  --mim-lead: clamp(1.125rem, 1.4vw, 1.25rem);   /* 18 -> 20px */
  --mim-body: clamp(1rem, 1.1vw, 1.0625rem);     /* 16 -> 17px */
  --mim-small: .875rem;                          /* 14px, never under 13px on screen */

  /* space: 8px rhythm */
  --mim-s1: 4px;  --mim-s2: 8px;  --mim-s3: 12px; --mim-s4: 16px; --mim-s5: 24px; --mim-s6: 32px;
  --mim-s7: 48px; --mim-s8: 64px; --mim-s9: 96px; --mim-s10: 128px; --mim-s11: 160px;
  --mim-max: 1240px; --mim-gutter: 24px;

  /* shape */
  --mim-r-image: 4px; --mim-r-field: 6px; --mim-r-card: 8px; --mim-r-pill: 999px;
  --mim-control: 40px;          /* 44px on phones, see below */

  /* depth: physical objects only (cards, paper, phones). UI stays flat */
  --mim-shadow-object: 0 24px 48px rgb(0 0 0 / .4);

  /* motion */
  --mim-ease: cubic-bezier(.16, 1, .3, 1);
  --mim-quick: 200ms; --mim-reveal: 600ms; --mim-signature: 1600ms;
}
@media (max-width: 600px) { :root { --mim-control: 44px } }
@media (prefers-reduced-motion: reduce) { :root { --mim-quick: 0ms; --mim-reveal: 0ms; --mim-signature: 0ms } }
