/* ============================================================
   Solid x Gesso — theme layer. The ONLY file with raw values.
   Reverse-engineered from the licensed Gesso template (paper, ink,
   cobalt, lilac, ember, moss; Schibsted Grotesk + IBM Plex Mono) and
   expressed as tokens so components use var()/rem only.
   ============================================================ */
:root {
  /* palette: Solid brand (solidteam.com) expressed in Gesso roles.
     Legacy Gesso names (cobalt, lilac, ember, moss, sun) now point at Solid colours
     so page markup keeps working. Gold is a fill with navy text on top; gold-deep is
     the gold that may carry text on paper. */
  --navy: #131720;
  --navy-2: #2b2e36;
  --paper: #f2f1ef;
  --card: #fcfbf9;
  --cream: #fcfbf9;
  --ink: var(--navy);
  --muted: #5a5d63;
  --line: #e1e0dc;
  --line-strong: #c4c3be;
  --gold: #a99170;
  --gold-soft: #c2ad8c;
  --gold-deep: #6e5b3f;
  --gold-tint: #e9e2d5;
  --green: #488550;
  --green-deep: #3b6e43;
  --mint: #e1fbe8;
  --danger: #b3261e;
  --cobalt: var(--gold);
  --cobalt-deep: var(--gold-deep);
  --lilac: var(--gold-tint);
  --ember: var(--green-deep);
  --moss: var(--navy-2);
  --sun: var(--mint);
  --ink-06: rgba(19, 23, 32, 0.06);
  --ink-08: rgba(19, 23, 32, 0.08);
  --ink-12: rgba(19, 23, 32, 0.12);
  --ink-28: rgba(19, 23, 32, 0.28);
  --ink-72: rgba(19, 23, 32, 0.72);
  --cream-55: rgba(252, 251, 249, 0.55);
  --cream-82: rgba(252, 251, 249, 0.82);
  --cream-92: rgba(252, 251, 249, 0.92);
  --white-32: rgba(255, 255, 255, 0.32);
  --paper-84: rgba(242, 241, 239, 0.84);
  --cream-06: rgba(252, 251, 249, 0.06);
  --cream-14: rgba(252, 251, 249, 0.14);
  --gold-32: rgba(169, 145, 112, 0.32);
  --gold-0: rgba(169, 145, 112, 0);

  /* semantic (the names the components read) */
  --brand: var(--gold);
  --brand-deep: var(--gold-deep);
  --brand-text: var(--gold-deep);
  --brand-soft: var(--gold-soft);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-on-ink: var(--cream);
  --text-on-brand: var(--ink);
  --surface-page: var(--paper);
  --surface-card: var(--card);
  --border-default: var(--line);
  --border-strong: var(--line-strong);
  --hover-overlay: var(--ink-06);
  --focus-ring: var(--gold-deep);

  /* typography */
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-micro: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --fs-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --fs-sm: clamp(0.9375rem, 0.88rem + 0.25vw, 1.125rem);
  --fs-body: clamp(1rem, 0.94rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.85rem);
  --fs-h2: clamp(2.25rem, 1.2rem + 3.9vw, 5rem);
  --fs-h2-tight: clamp(2rem, 1.1rem + 2.8vw, 4rem);
  --fs-h1: clamp(2.3rem, 1.1rem + 5.6vw, 8rem);
  --fs-h1-inner: clamp(2.2rem, 1rem + 4.2vw, 5.5rem);
  --fs-statement: clamp(1.5rem, 0.85rem + 2.4vw, 3.25rem);
  --fs-trust: clamp(1.6rem, 1.1rem + 1.6vw, 2.75rem);
  --fs-price: clamp(1.8rem, 1rem + 2.8vw, 4rem);
  --fs-band: clamp(2.25rem, 1.1rem + 4.6vw, 6.5rem);
  --fs-ghost: clamp(7rem, 22vw, 20rem);
  --fs-close: clamp(1.75rem, 1rem + 2.4vw, 3.5rem);
  --fs-brand: clamp(1.05rem, 0.95rem + 0.4vw, 1.4rem);
  --fs-logo: clamp(1.1rem, 0.9rem + 0.7vw, 1.6rem);
  --lh-tight: 1.02;
  --lh-title: 1.04;
  --lh-statement: 1.22;
  --lh-body: 1.55;
  --track-h1: -0.04em;
  --track-title: -0.035em;
  --track-h3: -0.02em;
  --track-mono: 0.16em;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;

  /* spacing (4px rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.375rem;
  --sp-6: 1.75rem;
  --sp-7: 2.25rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 6rem;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --max: 115rem;
  --max-text: 82.5rem;
  --nav-h: clamp(3.75rem, 4.2vw, 4.75rem);
  --section-y: clamp(3rem, 8vh, 6.25rem);
  --section-y-lg: clamp(4rem, 12vh, 8.75rem);
  --section-y-sm: clamp(2rem, 5vw + 1rem, 3.75rem);
  --hero-top: clamp(1.75rem, 6vh, 6.875rem);
  --hero-bottom: clamp(4rem, 10vh, 7.5rem);

  /* radii */
  --r-xs: 0.375rem;
  --r-sm: 0.75rem;
  --r-md: 1.125rem;
  --r-lg: 1.625rem;
  --r-card: 0.875rem;
  --r-pill: 62.5rem;

  /* elevation */
  --shadow-card: 0 0.0625rem 0.125rem var(--ink-06), 0 0.75rem 1.75rem -0.75rem var(--ink-28);
  --shadow-panel: 0 0.0625rem 0 var(--line);
  --shadow-lift: 0 1.5rem 3rem -1rem var(--ink-28);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 300ms;
  --dur: 400ms;
  --dur-slow: 600ms;
  --dur-marquee: 38000ms;
  --dur-band: 30000ms;
  --dur-kenburns: 24000ms;
  --dur-demo: 900ms;
  --dur-sign: 1100ms;
  --dur-pulse: 1200ms;
  --dur-spin: 800ms; --dur-orbit: 48000ms;

  /* composition knobs (component geometry) */
  --fan-w: clamp(6.5rem, min(14vw, 30svh), 23.75rem);
  --cascade-w: clamp(5.5rem, 9vw, 12.5rem);
  --plan-w: clamp(6.75rem, 16vw, 18.125rem);
  --work-w: clamp(10rem, 17vw, 20rem);
  --people-h: 9.375rem;
  --avatar-unit: 0.0625rem;
  --band-h: clamp(20rem, 56vh, 40rem);
  --close-h: clamp(25rem, 46vw, 51.25rem);
  --phone-w: clamp(12.5rem, 16vw, 17.5rem);
  --token-s: clamp(2.5rem, 3.4vw, 4rem);
  --dock-s: clamp(2.125rem, 2.6vw, 2.875rem);
  --dock-mark: clamp(3rem, 3.6vw, 4rem);
  --btn-h: clamp(2.75rem, 2.6vw + 1.375rem, 3.375rem);
  --btn-x: clamp(1.125rem, 1.4vw, 1.625rem);
  --studio-h: clamp(20rem, 60vh, 44rem);
  --tool-s: clamp(1.625rem, 2.2vw, 2.5rem);
}

:root { color-scheme: light; }

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur: 1ms;
    --dur-slow: 1ms;
    --dur-marquee: 1ms;
    --dur-band: 1ms;
    --dur-kenburns: 1ms;
    --dur-demo: 1ms;
    --dur-sign: 1ms;
    --dur-pulse: 1ms;
    --dur-spin: 1ms;
    --dur-orbit: 1ms;
  }
}
