/* ============================================================
   LinkFace · Design tokens
   Consolidated from the design system (_ds/.../tokens/*.css):
   colors · typography · spacing · effects · base.
   Brand: blue #2F5597 · amber #FFC000 (accent only).
   Webfonts are loaded via <link> in the document <head> (preconnect),
   not @import here, to avoid render-blocking.
   ============================================================ */

:root {
  /* ---- Brand blue (primary) ---------------------------------- */
  --blue-50:  #eaf0f8;
  --blue-100: #c8d6ec;
  --blue-200: #9fb6dc;
  --blue-300: #7193c9;
  --blue-400: #4f76b6;
  --blue-500: #2f5597; /* brand primary */
  --blue-600: #294d8c;
  --blue-700: #214381;
  --blue-800: #1b3a77;
  --blue-900: #102965;
  --blue: var(--blue-500);

  /* ---- Navy (dark surfaces / hero) --------------------------- */
  --navy-900: #0b1b38;
  --navy-800: #0f2347;
  --navy-700: #173564;

  /* ---- Amber (accent — sparingly) ---------------------------- */
  --amber-300: #ffd454;
  --amber-400: #ffc928;
  --amber-500: #ffc000; /* brand accent */
  --amber-600: #e0a800;
  --amber-700: #b88a00;
  --amber: var(--amber-500);

  /* ---- Ink & neutrals ---------------------------------------- */
  --ink-900: #11192b;
  --ink-800: #1a2336;
  --ink-600: #3d4760;
  --slate-500: #5a6478;
  --slate-400: #828ca3;
  --slate-300: #aab3c5;
  --line: #e6e9f0;
  --line-strong: #d3dcec;

  /* ---- Surfaces ---------------------------------------------- */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef2f9;
  --bg-app: #f2f5fa;

  /* ---- Semantic ---------------------------------------------- */
  --success: #2e8b57;
  --success-bg: #e6f4ec;
  --warning: #d98a00;
  --danger: #d62b2b;
  --info: #2c6fb5;

  --text-strong: var(--ink-900);
  --text-body: var(--ink-800);
  --text-muted: var(--slate-500);
  --text-faint: var(--slate-400);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b9c5dd;
  --text-link: var(--blue-500);

  --surface-page: var(--bg);
  --surface-tint: var(--bg-soft);
  --surface-card: #ffffff;
  --surface-dark: var(--navy-800);
  --surface-inverse: var(--navy-900);

  --border-default: var(--line);
  --border-strong: var(--line-strong);
  --border-focus: var(--blue-500);
  --accent: var(--amber-500);

  /* ---- Typography -------------------------------------------- */
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Roboto Mono', monospace;

  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-2xs: 11px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-heading: 1.18;
  --lh-snug: 1.4;
  --lh-body: 1.6;

  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-eyebrow: 0.12em;
  --ls-caps: 0.04em;

  /* ---- Spacing, radii, layout -------------------------------- */
  --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;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --maxw-content: 1180px;
  --maxw-prose: 720px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 72px;

  --z-nav: 50;
  --z-overlay: 100;
  --z-modal: 200;

  /* ---- Elevation (navy-tinted) ------------------------------- */
  --shadow-xs: 0 1px 2px rgba(15, 35, 71, .06);
  --shadow-sm: 0 1px 2px rgba(15, 35, 71, .06), 0 2px 8px rgba(15, 35, 71, .05);
  --shadow-md: 0 8px 30px rgba(15, 35, 71, .10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 56, .18);
  --ring-focus: 0 0 0 3px rgba(47, 85, 151, .18);
  --ring-amber: 0 0 0 3px rgba(255, 192, 0, .28);
  --glow-amber: 0 6px 18px rgba(255, 192, 0, .30);

  /* ---- Motion ------------------------------------------------ */
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .15s;
  --dur-base: .2s;
  --dur-slow: .35s;
  --transition-base: all var(--dur-base) var(--ease-out);
  --transition-lift: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

/* ============================================================
   Base element styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 .5em;
  font-weight: var(--fw-bold);
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--text-link); text-decoration: none; }
img, svg { max-width: 100%; }
code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Skip link (accessibility) */
.lf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.lf-skip:focus { left: 0; }

.lf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
