/* Invictus Flugtechnik v4.0 design tokens. Vendored from the design system.
   Do not edit here; source of truth is the Claude Design project. */

/* ===== tokens/colors.css ===== */
/* Invictus Flugtechnik — Color tokens
   Base palette from brand_spec.json. Aviation blue + amber on navy.
   "dark" in this brand means: for use on dark/navy backgrounds. */
:root {
  /* ---- Brand base palette ---- */
  --ift-blue: #0B72FF;          /* Invictus Blue — primary, light backgrounds */
  --ift-blue-dark: #3B8EFF;     /* Blue lifted for navy backgrounds (WCAG) */
  --ift-amber: #FF9B00;         /* Amber — origin node, rules, highlight */
  --ift-navy: #0A1628;          /* Navy — primary dark surface */
  --ift-hangar: #2D2A26;        /* Warm near-black */
  --ift-cloud-muted: #8FA0B5;   /* Muted blue-gray — secondary text on navy */
  --ift-editor-gray: #888888;   /* JSON gray on light */
  --ift-legal-muted: #5C564E;   /* Warm gray — legal fine print */
  --ift-ink-dark: #EBE4D8;      /* Warm off-white — text on navy */
  --ift-white: #FFFFFF;
  --ift-ink: #0A1628;           /* Body ink on light = navy */

  /* Tints / surfaces derived from navy (technical, cool) */
  --ift-navy-700: #12233D;      /* Card / panel on navy */
  --ift-navy-600: #1B2F4D;      /* Raised surface / hover on navy */
  --ift-hairline-dark: #25364F; /* Borders / grid lines on navy */
  --ift-cloud-050: #F4F6F9;     /* Lightest cool gray — page bg light */
  --ift-cloud-100: #E7ECF2;     /* Light surface / hairline on light */
  --ift-cloud-200: #D4DCE6;     /* Border on light */

  /* Semantic status (kept close to brand hues) */
  --ift-success: #1E9E5A;
  --ift-warning: #FF9B00;       /* reuses amber */
  --ift-danger:  #E5484D;
  --ift-info:    #0B72FF;       /* reuses blue */

  /* ---- Semantic aliases (light context = default) ---- */
  --color-bg: var(--ift-cloud-050);
  --color-surface: var(--ift-white);
  --color-surface-raised: var(--ift-white);
  --color-surface-sunken: var(--ift-cloud-050);
  --color-border: var(--ift-cloud-200);
  --color-hairline: var(--ift-cloud-100);

  --color-text: var(--ift-ink);
  --color-text-muted: #5E6B7E;
  --color-text-faint: #8A97A8;
  --color-text-legal: var(--ift-legal-muted);
  --color-text-on-accent: var(--ift-white);

  --color-primary: var(--ift-blue);
  --color-primary-hover: #0961D8;
  --color-primary-active: #0850B5;
  --color-accent: var(--ift-amber);
  --color-accent-hover: #E68A00;

  --color-link: var(--ift-blue);
  --color-rule: var(--ift-amber);       /* the signature amber divider */
  --color-code-key: var(--ift-amber);   /* JSON keys */
  --color-code-string: var(--ift-blue); /* JSON values */
  --color-code-punct: var(--ift-editor-gray);
}

/* ---- Dark / navy context ---- */
.ift-dark,
[data-theme="dark"] {
  --color-bg: var(--ift-navy);
  --color-surface: var(--ift-navy-700);
  --color-surface-raised: var(--ift-navy-600);
  --color-surface-sunken: #0C1A2F;
  --color-border: var(--ift-hairline-dark);
  --color-hairline: #1C2D45;

  --color-text: var(--ift-ink-dark);
  --color-text-muted: var(--ift-cloud-muted);
  --color-text-faint: #5E7088;
  --color-text-legal: var(--ift-cloud-muted);
  --color-text-on-accent: var(--ift-navy);

  --color-primary: var(--ift-blue-dark);
  --color-primary-hover: #5BA2FF;
  --color-primary-active: #2C7FF0;
  --color-accent: var(--ift-amber);
  --color-accent-hover: #FFB13A;

  --color-link: var(--ift-blue-dark);
  --color-code-key: var(--ift-amber);
  --color-code-string: var(--ift-blue-dark);
  --color-code-punct: var(--ift-cloud-muted);
}

/* ===== tokens/typography.css ===== */
/* Invictus Flugtechnik — Typography tokens
   Jost for everything UI + wordmark; JetBrains Mono for data, JSON, coordinates,
   contact details. The wordmark sets INVICTUS in 500 with wide tracking;
   FLUGTECHNIK in 400 with even wider tracking. */
:root {
  /* Families */
  --font-sans: "Jost", "Century Gothic", "Futura", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Jost", "Futura", "Century Gothic", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* Weights (Jost ships 400 + 500 in this kit) */
  --weight-regular: 400;
  --weight-medium: 500;

  /* Type scale — Jost runs optically small, so the scale is generous */
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 84px;
  --text-display: 112px;   /* hero stat / cover */

  /* Line heights */
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing — wide tracking is a brand signature for caps/labels */
  --tracking-tightest: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;     /* INVICTUS wordmark */
  --tracking-widest: 0.34em;    /* FLUGTECHNIK / overline labels */

  /* ---- Semantic roles ---- */
  --text-wordmark-1: var(--weight-medium) var(--text-2xl) / 1 var(--font-display);
  --text-display-role: var(--weight-medium) var(--text-display) / var(--leading-tight) var(--font-display);
  --text-h1: var(--weight-medium) var(--text-4xl) / var(--leading-tight) var(--font-display);
  --text-h2: var(--weight-medium) var(--text-3xl) / var(--leading-tight) var(--font-display);
  --text-h3: var(--weight-medium) var(--text-2xl) / var(--leading-snug) var(--font-display);
  --text-h4: var(--weight-medium) var(--text-xl) / var(--leading-snug) var(--font-sans);
  --text-body: var(--weight-regular) var(--text-base) / var(--leading-relaxed) var(--font-sans);
  --text-body-sm: var(--weight-regular) var(--text-sm) / var(--leading-normal) var(--font-sans);
  --text-label: var(--weight-medium) var(--text-xs) / 1 var(--font-sans);
  --text-mono: var(--weight-medium) var(--text-sm) / var(--leading-normal) var(--font-mono);
  --text-tagline: italic var(--weight-regular) var(--text-md) / var(--leading-snug) var(--font-sans);
}

/* ===== tokens/spacing.css ===== */
/* Invictus Flugtechnik — Spacing & layout tokens
   4px base grid. Echoes the print system's tidy, measured rhythm. */
:root {
  --space-0: 0;
  --space-px: 1px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Container widths */
  --container-sm: 640px;
  --container-md: 880px;
  --container-lg: 1120px;
  --container-xl: 1280px;

  /* Page gutters */
  --gutter: var(--space-6);
  --gutter-lg: var(--space-16);

  /* Blueprint grid module (the signature background grid) */
  --grid-module: 48px;
}

/* ===== tokens/effects.css ===== */
/* Invictus Flugtechnik — Radii, borders, shadows, motion
   The brand is precise and technical: restrained radii, hairline borders,
   soft cool shadows. The amber rule and blueprint grid are structural, not
   decorative. Motion is calm and confident — no bounce. */
:root {
  /* Corner radii — modest; the mark's nodes are circular but UI stays crisp */
  --radius-none: 0;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Border widths */
  --border-hairline: 1px;
  --border-thin: 1.5px;
  --border-thick: 2px;
  --rule-weight: 2px;            /* amber divider rule */

  /* Shadows — cool, soft, navy-tinted (not neutral black) */
  --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.10), 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.14), 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.20);

  /* Focus ring — blue, generous (technical/accessible) */
  --focus-ring: 0 0 0 3px rgba(11, 114, 255, 0.32);
  --focus-ring-amber: 0 0 0 3px rgba(255, 155, 0, 0.36);

  /* Glow for nodes / active data points on navy */
  --glow-blue: 0 0 0 4px rgba(59, 142, 255, 0.18);
  --glow-amber: 0 0 0 4px rgba(255, 155, 0, 0.20);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1); /* @kind other */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 200ms; /* @kind other */
  --duration-slow: 360ms; /* @kind other */
  --transition-base: all var(--duration-base) var(--ease-out);

  /* Blueprint grid background (navy). Layer over --ift-navy. */
  --blueprint-line: rgba(143, 160, 181, 0.07);
}

[data-theme="dark"],
.ift-dark {
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* ===== tokens/fonts.css ===== */
/* Invictus Flugtechnik — Webfonts
   Jost (wordmark + UI), Jost Italic (taglines), JetBrains Mono (data/JSON/contact).
   Jost is the brand wordmark face; it also stands in for Futura / Century Gothic. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Jost-400.5fb2009b9ac0.ttf") format("truetype");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Jost-400-Italic.02c23dea682d.ttf") format("truetype");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Jost-500.845f5f797150.ttf") format("truetype");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Medium.38a5e21ca376.ttf") format("truetype");
}

/* ===== tokens/base.css ===== */
/* Invictus Flugtechnik — Base element styling & brand utilities.
   Kept light: design-system consumers get sensible defaults + a few
   signature brand helpers (blueprint grid, amber rule, JSON payload). */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(11, 114, 255, 0.18); }

/* ---- Brand utilities ---- */

/* The wordmark, set in type (when an SVG lockup isn't used) */
.ift-wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1;
}
.ift-wordmark > .sub {
  display: block;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  font-size: 0.5em;
  margin-top: 0.35em;
}

/* Overline / eyebrow label — wide-tracked caps in mono */
.ift-overline {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* The signature amber rule */
.ift-rule {
  border: 0;
  height: var(--rule-weight);
  width: 64px;
  background: var(--color-rule);
  margin: var(--space-4) 0;
}

/* Italic tagline */
.ift-tagline {
  font: var(--text-tagline);
  color: var(--color-text-muted);
}

/* JSON flight-status payload, the brand's hero data motif */
.ift-json {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.ift-json .p { color: var(--color-code-punct); }
.ift-json .k { color: var(--color-code-key); }
.ift-json .s { color: var(--color-code-string); }

/* Blueprint grid surface (navy). Apply to a navy/dark container. */
.ift-blueprint {
  background-color: var(--ift-navy);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: var(--grid-module) var(--grid-module);
}

/* Blueprint grid surface (light). Faint navy grid on cloud — for documents,
   light hero units, and light-mode layouts. */
.ift-blueprint-light {
  background-color: var(--ift-cloud-050);
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.05) 1px, transparent 1px);
  background-size: var(--grid-module) var(--grid-module);
}

/* Mono coordinate / spec label (top corners of blueprint layouts) */
.ift-coord {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-faint);
  text-transform: uppercase;
}
