/* ============================================================
   Navisurg Vision — design tokens

   Ported from the Claude Design project "Navisurg Vision Design System"
   (_ds/navisurg-vision-design-system-edf8dd39/tokens/*.css). Values are the
   design system's; treat this file as generated and change it there first.

   One deliberate difference: the design system pulls DM Sans and JetBrains
   Mono from Google Fonts with an @import. Here all three faces are served
   from fonts/, so the page needs no third-party request to render — nginx
   already caches woff2 for 30 days (see nginx.conf).
   ============================================================ */

/* ---- Display: Josefin Sans, the brand face. Variable, 100–700 ---- */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/JosefinSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/JosefinSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Body: DM Sans. A substitution, per the design system's own notice ---- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/DMSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/DMSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Mono: JetBrains Mono. Also a substitution ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Colour
   The brand is three primaries and one secondary. Everything else is either
   a neutral sampled from the brand portal or a two-step state derivation of
   a brand hue. Nothing else is a brand colour.
   ============================================================ */
:root {
  /* --- Brand primaries --- */
  --ink-800: #151515;        /* Operating dark. Default surface for everything on screen. */
  --orange-500: #FF9345;     /* Signal orange. The mark, and emphasis. */
  --panel-100: #FFF0E6;      /* Warm light. Documents, packaging, anything read at length. */

  /* --- Brand secondary --- */
  --blue-400: #A9C2E0;       /* Mist blue. Cool counterweight: in-progress, data, charts, second actions. */

  /* --- Neutral ramp (warm-cast near-neutrals) --- */
  --ink-900: #0D0D0D;        /* deepest, beneath operating dark */
  --ink-700: #211F1D;        /* warm raised dark */
  --ink-600: #2A2A2A;        /* hairline border on dark */
  --ink-500: #3D3C3A;        /* strong border on dark, disabled fill */
  --ink-400: #737271;        /* muted label on dark */
  --ink-300: #8C8885;        /* body copy on dark */
  --ink-200: #C5C2BF;        /* heading on dark */
  --ink-100: #E2E0DE;
  --ink-0:   #FFFFFF;        /* the wordmark on dark, and emphasis text on dark */

  /* --- Warm light ramp --- */
  --panel-50:  #FFF8F2;
  --panel-200: #F6E4D8;
  --panel-300: #E7D3C6;      /* hairline border on warm light */
  --panel-ink: #5C5754;      /* body copy on warm light */

  /* --- Brand hue state derivations (hover / press only) --- */
  --orange-400: #FFA765;
  --orange-600: #E87A28;
  --blue-300: #C3D5EA;
  --blue-500: #8FAED4;

  /* --- Semantic aliases --- */
  --surface-canvas: var(--ink-800);
  --surface-raised: var(--ink-700);
  --surface-sunken: var(--ink-900);
  --surface-card: var(--ink-800);
  --surface-light: var(--panel-100);
  --surface-light-raised: var(--panel-50);
  --surface-accent: var(--orange-500);
  --surface-secondary: var(--blue-400);
  --surface-disabled: var(--ink-500);

  --border-hairline: var(--ink-600);
  --border-strong: var(--ink-500);
  --border-accent: var(--orange-500);
  --border-hairline-light: var(--panel-300);

  --text-strong: var(--ink-0);
  --text-heading: var(--ink-200);
  --text-body: var(--ink-300);
  --text-muted: var(--ink-400);
  --text-disabled: var(--ink-500);
  --text-accent: var(--orange-500);
  --text-secondary: var(--blue-400);
  --text-on-accent: var(--ink-800);
  --text-on-secondary: var(--ink-800);
  --text-on-light: var(--ink-800);
  --text-on-light-body: var(--panel-ink);
  --text-on-light-muted: #8C8580;

  --accent: var(--orange-500);
  --accent-hover: var(--orange-400);
  --accent-press: var(--orange-600);
  --state-progress: var(--blue-400);
  --focus-ring: var(--orange-500);

  /* The brand defines no status palette. Success / warning / error are
     deliberately absent: mist blue is explicitly not a status colour, and
     signal orange is emphasis, not alarm. Do not invent one — ask. */

  /* ---- Typography ---- */
  --font-display: 'Josefin Sans', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;

  --weight-extralight: 200;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Step scale. --text-base is the portal body size. */
  --text-2xs: 10px;
  --text-xs:  11px;
  --text-sm:  13px;
  --text-base: 14px;
  --text-md:  15px;
  --text-lg:  20px;
  --text-xl:  24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 60px;
  --text-5xl: 80px;

  --leading-flat:  1;
  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-body:  1.36;
  --leading-loose: 1.6;

  --tracking-label: 0.16em;   /* section labels */
  --tracking-caps:  0.13em;   /* card labels, eyebrows */
  --tracking-head:  0.1em;    /* letterspaced display heads */
  --tracking-normal: 0;
  --tracking-tight: -0.015em; /* large display sizes */

  --type-display:  var(--weight-extralight) var(--text-4xl)/var(--leading-tight) var(--font-display);
  --type-h1:       var(--weight-light) var(--text-3xl)/var(--leading-tight) var(--font-display);
  --type-h2:       var(--weight-light) var(--text-2xl)/var(--leading-snug) var(--font-display);
  --type-h3:       var(--weight-regular) var(--text-lg)/var(--leading-snug) var(--font-display);
  --type-panel-head: var(--weight-light) var(--text-lg)/var(--leading-snug) var(--font-display);
  --type-body:     var(--weight-regular) var(--text-base)/var(--leading-body) var(--font-sans);
  --type-body-lg:  var(--weight-regular) var(--text-md)/var(--leading-loose) var(--font-sans);
  --type-body-sm:  var(--weight-regular) var(--text-sm)/var(--leading-body) var(--font-sans);
  --type-label:    var(--weight-regular) var(--text-2xs)/var(--leading-flat) var(--font-sans);
  --type-caps:     var(--weight-regular) var(--text-xs)/var(--leading-flat) var(--font-sans);
  --type-mono:     var(--weight-regular) var(--text-xs)/var(--leading-body) var(--font-mono);
  --type-mono-lg:  var(--weight-regular) var(--text-lg)/var(--leading-flat) var(--font-mono);

  /* ---- Spacing. 4px base ---- */
  --space-0:  0px;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  --gap-grid: var(--space-4);
  --pad-card: var(--space-5);
  --pad-section: var(--space-20);
  --pad-gutter: var(--space-6);
  --measure-prose: 64ch;
  --width-container: 1200px;
  --width-narrow: 760px;

  /* ---- Radius and borders ---- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius-card: var(--radius-md);
  --radius-control: var(--radius-sm);
  --radius-input: var(--radius-sm);

  --border-width: 1px;
  --border-width-strong: 2px;
  --border-hairline-rule: var(--border-width) solid var(--border-hairline);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;

  /* ---- Motion. Short, linear-feeling, no bounce, no overshoot ---- */
  --dur-instant: 80ms;
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
  --dur-reveal: 520ms;
  --ease-standard: cubic-bezier(.2, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .24, 1);
  --ease-in: cubic-bezier(.5, 0, 1, 1);
  --transition-control:
    color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    opacity var(--dur-fast) var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-reveal: 0ms;
  }
}

/* Light document scope. Apply to a subtree that sits on warm light. */
[data-surface="light"] {
  --surface-canvas: var(--panel-100);
  --surface-raised: var(--panel-50);
  --surface-card: var(--panel-50);
  --border-hairline: var(--panel-300);
  --border-strong: #D3BBAA;
  --text-strong: var(--ink-800);
  --text-heading: var(--ink-800);
  --text-body: var(--panel-ink);
  --text-muted: var(--text-on-light-muted);
}

/* ============================================================
   Base. Minimal resets and element defaults so a bare page already looks
   like the brand. Component styling lives in components.css.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-body);
  font: var(--type-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); }
h2 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h3 { font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: var(--tracking-normal); }
h4 { font-size: var(--text-md); line-height: var(--leading-snug); letter-spacing: var(--tracking-normal); font-weight: var(--weight-regular); }

p { margin: 0; }

a {
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: var(--transition-control);
}
a:hover { color: var(--accent); }
a:active { color: var(--accent-press); border-bottom-color: var(--accent-press); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: var(--text-xs); }

hr { border: 0; border-top: var(--border-hairline-rule); margin: var(--space-8) 0; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

:where(button, [role=button], a, input, select, textarea, summary):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

::selection { background: var(--orange-500); color: var(--ink-800); }
