/* ==========================================================================
   FLATOUT — design tokens
   Single source of truth. Nothing in components should hard-code a colour,
   a duration, or a spacing value that lives here.
   ========================================================================== */

:root {
  /* ---- brand palette -------------------------------------------------- */
  --c-carbon: #171717;
  --c-ink: #0e0e0d;
  --c-graphite: #232322;
  --c-slate: #2c2c2a;
  --c-ivory: #f2eee4;
  --c-paper: #faf8f2;
  --c-white: #ffffff;
  --c-silver: #a6a6a6;
  --c-oak: #b68b52;
  --c-oak-deep: #8f6c3c;
  --c-coast: #537d8a;

  /* ---- semantic: dark (default page theme) ---------------------------- */
  --bg: var(--c-ink);
  --bg-raised: var(--c-carbon);
  --bg-sunken: #0a0a09;
  --text: #ece9e1;
  --text-dim: #9d9a92;
  /* Labels render at 11px, so this step has to clear 4.5:1, not 3:1. */
  --text-faint: #918d84;
  --line: rgba(242, 238, 228, 0.13);
  --line-strong: rgba(242, 238, 228, 0.3);
  --accent: var(--c-oak);
  --accent-ink: #1a1206;
  --scrim: rgba(10, 10, 9, 0.55);

  /* ---- typography ------------------------------------------------------ */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-mega: clamp(3.15rem, 8.4vw, 8.25rem);
  --fs-h1: clamp(2.6rem, 6vw, 5.75rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.5rem);
  --fs-h3: clamp(1.45rem, 2.1vw, 2.05rem);
  --fs-statement: clamp(1.75rem, 3.1vw, 3rem);
  --fs-lead: clamp(1.06rem, 1.25vw, 1.375rem);
  --fs-body: clamp(0.98rem, 0.62vw + 0.82rem, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-mono: 0.6875rem;
  --fs-mono-lg: 0.75rem;

  --lh-display: 0.86;
  --lh-heading: 1.02;
  --lh-body: 1.62;
  --lh-lead: 1.5;

  --ls-display: -0.02em;
  --ls-heading: -0.012em;
  --ls-mono: 0.16em;
  --ls-mono-wide: 0.24em;

  /* ---- space ----------------------------------------------------------- */
  --gutter: clamp(1.15rem, 3.6vw, 4.25rem);
  --gutter-tight: clamp(1rem, 2vw, 2rem);
  --section-y: clamp(5rem, 10.5vw, 10.5rem);
  --section-y-tight: clamp(3.5rem, 6vw, 6rem);
  --max: 1680px;
  --max-prose: 62ch;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* ---- motion ---------------------------------------------------------- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 200ms;
  --dur-2: 380ms;
  --dur-3: 720ms;
  --dur-4: 1100ms;

  /* ---- structure ------------------------------------------------------- */
  --nav-h: 74px;
  --hair: 1px;
  --radius: 2px; /* sharp, machined. the only radius scale on the page. */

  /* One photographic grade for every image on the page: pulled off full
     colour so stock photography reads as a single commissioned shoot. */
  --grade: saturate(0.78) contrast(1.05) brightness(0.93);

  /* ---- layers ---------------------------------------------------------- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 40;
  --z-nav: 60;
  --z-overlay: 70;
  --z-dialog: 80;
  --z-skip: 90;
}

/* Light block — used exactly once, for the printed menu card. */
[data-theme="light"] {
  --bg: var(--c-ivory);
  --bg-raised: var(--c-paper);
  --bg-sunken: #e6e1d5;
  --text: #17140f;
  --text-dim: #5d5850;
  --text-faint: #837d73;
  --line: rgba(23, 20, 15, 0.14);
  --line-strong: rgba(23, 20, 15, 0.34);
  --accent: var(--c-oak-deep);
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }
}
