/* =====================================================================
   VidiScope GmbH — Design Tokens
   Colors, typography, spacing, radii, shadows, motion.
   Import this once at the root of any page using the design system.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'MS Reference Sans Serif';
  src: url('/fonts/REFSAN.TTF') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ─── BRAND COLORS ────────────────────────────────────────────────── */
  /* Primary blues — corporate, trustworthy, the structural anchor */
  --vs-midnight-navy: #071A2F;   /* deepest — primary backgrounds, brand */
  --vs-slate-blue:    #243B53;   /* mid — surfaces on dark, secondary nav */

  /* Accent yellows — the shutter blades. Warm, analytical, focused */
  --vs-gold:          #D9A440;   /* deepest gold — primary accent */
  --vs-amber:         #E8B452;   /* mid amber — highlights, hover */
  --vs-warm-sand:     #F2A01F;   /* most saturated — CTAs, alerts */

  /* ─── NEUTRALS ────────────────────────────────────────────────────── */
  /* Cool, slightly blue-tinted greys derived from Slate Blue */
  --vs-neutral-0:     #FFFFFF;
  --vs-neutral-50:    #F7F9FB;
  --vs-neutral-100:   #EEF2F6;
  --vs-neutral-200:   #DCE3EB;
  --vs-neutral-300:   #B9C4D1;
  --vs-neutral-400:   #8593A5;
  --vs-neutral-500:   #5A6A7E;
  --vs-neutral-600:   #3F4E62;
  --vs-neutral-700:   #2A3849;
  --vs-neutral-800:   #15202E;
  --vs-neutral-900:   #0B131D;

  /* ─── SEMANTIC SURFACE / TEXT (LIGHT) ─────────────────────────────── */
  --bg-canvas:        var(--vs-neutral-50);
  --bg-surface:       var(--vs-neutral-0);
  --bg-surface-2:     var(--vs-neutral-100);
  --bg-inverse:       var(--vs-midnight-navy);

  --fg-1:             var(--vs-midnight-navy);   /* primary text */
  --fg-2:             var(--vs-slate-blue);      /* secondary text */
  --fg-3:             var(--vs-neutral-500);     /* tertiary, captions */
  --fg-4:             var(--vs-neutral-400);     /* placeholder, disabled */
  --fg-on-dark:       var(--vs-neutral-0);
  --fg-on-accent:     var(--vs-midnight-navy);   /* navy text on gold */

  --border-subtle:    var(--vs-neutral-200);
  --border-default:   var(--vs-neutral-300);
  --border-strong:    var(--vs-slate-blue);
  --border-on-dark:   rgba(255,255,255,0.10);

  /* ─── SEMANTIC ACCENT ROLES ───────────────────────────────────────── */
  --accent:           var(--vs-warm-sand);       /* primary CTA */
  --accent-hover:     var(--vs-gold);
  --accent-press:     #B8861F;
  --accent-soft:      #FBE9C7;                   /* tinted backgrounds */
  --accent-ring:      rgba(242,160,31,0.35);

  /* ─── STATUS ──────────────────────────────────────────────────────── */
  --status-success:   #1E8E5A;
  --status-success-soft: #E1F3EA;
  --status-warning:   var(--vs-warm-sand);
  --status-warning-soft: #FBE9C7;
  --status-danger:    #C53434;
  --status-danger-soft: #FBE3E3;
  --status-info:      var(--vs-slate-blue);
  --status-info-soft: #E2EAF3;

  /* ─── TYPOGRAPHY ──────────────────────────────────────────────────── */
  /* Display / logo — MS Reference Sans Serif (brand font, loaded from fonts/REFSAN.TTF) */
  --font-display: 'MS Reference Sans Serif', 'Aptos', 'Segoe UI', system-ui, sans-serif;
  /* Body / UI — Inter as specified in the CI */
  --font-sans:    'Inter', 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Type scale (modular ~1.250) */
  --fs-xs:    12px;
  --fs-sm:    13px;
  --fs-base:  15px;
  --fs-md:    16px;
  --fs-lg:    18px;
  --fs-xl:    22px;
  --fs-2xl:   28px;
  --fs-3xl:   36px;
  --fs-4xl:   48px;
  --fs-5xl:   64px;
  --fs-6xl:   84px;

  /* Line heights */
  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-loose:  1.65;

  /* Letter spacing */
  --ls-tight:    -0.02em;
  --ls-display:  -0.015em;
  --ls-normal:   0;
  --ls-wide:     0.04em;
  --ls-eyebrow:  0.14em;   /* small-caps eyebrows used in CI overview */

  /* Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* ─── SPACING (4 px base) ─────────────────────────────────────────── */
  --space-0:  0;
  --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;

  /* ─── RADII ───────────────────────────────────────────────────────── */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-2xl:  20px;
  --radius-pill: 999px;

  /* ─── SHADOWS ─────────────────────────────────────────────────────── */
  /* Cool, navy-tinted — never pure black */
  --shadow-xs:  0 1px 2px rgba(7, 26, 47, 0.06);
  --shadow-sm:  0 2px 4px rgba(7, 26, 47, 0.06), 0 1px 2px rgba(7, 26, 47, 0.04);
  --shadow-md:  0 4px 12px rgba(7, 26, 47, 0.08), 0 2px 4px rgba(7, 26, 47, 0.04);
  --shadow-lg:  0 12px 28px rgba(7, 26, 47, 0.12), 0 4px 8px rgba(7, 26, 47, 0.06);
  --shadow-xl:  0 24px 48px rgba(7, 26, 47, 0.18), 0 8px 16px rgba(7, 26, 47, 0.08);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-focus: 0 0 0 3px var(--accent-ring);

  /* ─── MOTION ──────────────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --dur-fast:    120ms;
  --dur-base:    180ms;
  --dur-slow:    280ms;
  --dur-slower:  480ms;

  /* ─── LAYOUT ──────────────────────────────────────────────────────── */
  --container-narrow: 760px;
  --container:        1120px;
  --container-wide:   1320px;
}

/* =====================================================================
   SEMANTIC ELEMENT STYLES — opt-in via the .vs-prose / .vs class
   Use these on the document root or on a scoped wrapper to get the
   complete typographic system without overriding host pages.
   ===================================================================== */

.vs, .vs-prose {
  font-family: var(--font-sans);
  color: var(--fg-1);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vs h1, .vs-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
  margin: 0 0 var(--space-6);
  text-wrap: balance;
}
.vs h2, .vs-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.vs h3, .vs-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0 0 var(--space-3);
}
.vs h4, .vs-h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0 0 var(--space-2);
}
.vs p, .vs-p {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.vs small, .vs-caption {
  font-size: var(--fs-sm);
  color: var(--fg-3);
  line-height: var(--lh-normal);
}
.vs .vs-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.vs code, .vs-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-surface-2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--fg-1);
}

/* Underline accent — the gold tick used in the CI alongside titles */
.vs-rule-gold {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
