/* ==========================================================================
   Gokamu "Lobe & Line" design tokens
   Source of truth for colour, type, space, radius, elevation and motion.
   In Next.js this file becomes src/styles/tokens.css, imported once in layout.
   ========================================================================== */

:root {
  /* ── Brand ─────────────────────────────────────────────── */
  --ink: #10094C;          /* Gokamu navy, from the logo + letterhead */
  --ink-2: #1D1573;        /* hover / raised navy */
  --ink-3: #2C2394;
  --on-ink: #F3F1FF;
  --indigo: #4A3AFF;       /* interactive: links, focus, active */
  --indigo-soft: #ECEAFF;
  --volt: #C8F04A;         /* signal accent: always with navy text */
  --volt-2: #B4E02C;
  --volt-soft: #F3FBD6;

  /* ── Neutrals ──────────────────────────────────────────── */
  --paper: #F7F6FB;
  --surface: #FFFFFF;
  --surface-2: #EFEDF8;
  --fg: #120F2E;
  --muted: #5B5878;
  --line: #E1DEEF;
  --line-strong: #BCB7D9;
  --band: #10094C;         /* dark section background */
  --band-fg: #F3F1FF;
  --band-muted: #A9A4D6;
  --band-line: rgba(243, 241, 255, .14);

  /* ── Status ────────────────────────────────────────────── */
  --ok: #0E7A57;   --ok-soft: #E2F5EC;
  --warn: #9A5800; --warn-soft: #FDF0DA;
  --err: #C0322B;  --err-soft: #FCE6E4;
  --info: #2F55D4; --info-soft: #E5ECFE;

  /* ── Logo treatment (navy SVG; dark mode turns it white) ── */
  --logo-filter: none;
  --logo-blend: normal;

  /* ── Type ──────────────────────────────────────────────── */
  --f-sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --display-stretch: 78%;  /* condensed, echoes the tall wordmark */
  --display-weight: 720;

  --t-mono: .6875rem;      /* 11px labels, eyebrows */
  --t-xs: .8125rem;        /* 13 */
  --t-sm: .9375rem;        /* 15 */
  --t-md: 1.0625rem;       /* 17 body */
  --t-lg: 1.25rem;         /* 20 lead */
  --t-h4: 1.375rem;        /* 22 */
  --t-h3: 1.75rem;         /* 28 */
  --t-h2: clamp(2rem, 3.6vw, 2.75rem);
  --t-h1: clamp(2.6rem, 5.4vw, 4.25rem);
  --t-display: clamp(3.1rem, 8vw, 6.5rem);

  /* ── Space (4px base) ──────────────────────────────────── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --section: clamp(64px, 9vw, 128px);
  --content: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));

  /* ── Shape ─────────────────────────────────────────────── */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --stroke: 2px;           /* the "line" in Lobe & Line: round caps everywhere */

  /* ── Elevation ─────────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(16, 9, 76, .06), 0 1px 1px rgba(16, 9, 76, .04);
  --shadow-2: 0 6px 18px -6px rgba(16, 9, 76, .16), 0 2px 4px rgba(16, 9, 76, .05);
  --shadow-3: 0 24px 48px -16px rgba(16, 9, 76, .28);

  /* ── Motion ────────────────────────────────────────────── */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.5, 0, .2, 1.4);
  --d-fast: .15s; --d-med: .28s; --d-slow: .6s;

  color-scheme: light;
}

/* Dark theme: same tokens, re-pointed. Never hard-code a colour in components. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #C9C3FF; --ink-2: #DCD8FF; --ink-3: #ECEAFF; --on-ink: #10094C;
    --indigo: #9E94FF; --indigo-soft: #221C5E;
    --volt: #C8F04A; --volt-2: #D6F76E; --volt-soft: #23301A;
    --paper: #09061F; --surface: #110C33; --surface-2: #19134A;
    --fg: #ECEAFB; --muted: #A29EC8; --line: #272161; --line-strong: #433C8A;
    --band: #140D52; --band-fg: #F3F1FF; --band-muted: #A9A4D6; --band-line: rgba(243, 241, 255, .14);
    --ok: #5FD3A6; --ok-soft: #0D2E26; --warn: #F5B356; --warn-soft: #33230B;
    --err: #FF8A80; --err-soft: #3A1418; --info: #8DAAFF; --info-soft: #14204A;
    --logo-filter: brightness(0) invert(1); --logo-blend: normal;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 6px 18px -6px rgba(0, 0, 0, .6);
    --shadow-3: 0 24px 48px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #C9C3FF; --ink-2: #DCD8FF; --ink-3: #ECEAFF; --on-ink: #10094C;
  --indigo: #9E94FF; --indigo-soft: #221C5E;
  --volt: #C8F04A; --volt-2: #D6F76E; --volt-soft: #23301A;
  --paper: #09061F; --surface: #110C33; --surface-2: #19134A;
  --fg: #ECEAFB; --muted: #A29EC8; --line: #272161; --line-strong: #433C8A;
  --band: #140D52; --band-fg: #F3F1FF; --band-muted: #A9A4D6; --band-line: rgba(243, 241, 255, .14);
  --ok: #5FD3A6; --ok-soft: #0D2E26; --warn: #F5B356; --warn-soft: #33230B;
  --err: #FF8A80; --err-soft: #3A1418; --info: #8DAAFF; --info-soft: #14204A;
  --logo-filter: brightness(0) invert(1); --logo-blend: normal;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 6px 18px -6px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 48px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display {
  font-family: var(--f-sans);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h4 { font-stretch: 100%; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--volt); color: #10094C; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
