/* ============================================================
   MyDev Codes — design tokens (consolidated /css/ system)
   Site 10 visual elevation (Two Streams): the legacy CSS layer
   (style.css, brand-refresh.css, fonts.css + the dormant css/
   trio) consolidated into /css/tokens.css, /css/components.css,
   /css/site.css. Structure mirrors the Site 8 sibling contract:
   this file's skeleton is the shared base; the parameters are
   this property's own (Space Grotesk display, Inter body, the
   paper/ink/brand palette the pages already carry).
   @font-face folded in from the retired /fonts.css, with the
   font cure applied: Space Grotesk ships as a subset .woff2
   (variable 300–700), Inter as the restored latin .woff2.
   OFL licences: /fonts/OFL-Inter.txt, /fonts/OFL-SpaceGrotesk.txt.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  /* ---- Brand: the property's own blue (pages' --brand) ---- */
  --brand-600: #385f83;   /* primary actions, links */
  --brand-700: #2c4a68;   /* hover states, strong */
  --brand-50:  #eef3f8;   /* tinted surfaces */
  --brand-100: #d8e4f0;
  --accent-500: #678dcb;  /* stream-out blue (incumbent split) */
  --stream-in: #355e9b;   /* input stream (incumbent split) */
  --stream-out: #678dcb;  /* output stream (incumbent split) */
  --error: #b91c1c;

  /* ---- Neutrals: warm slate anchored on the property ink ---- */
  --ink-950: #101d20;
  --ink-900: #172f33;
  --ink-700: #33484d;
  --ink-500: #526568;
  --ink-400: #7d8b8e;
  --paper:   #f7f5ed;
  --paper-2: #efece1;   /* alt section background */
  --line:    #ccd3ca;   /* hairlines */

  /* ---- Front-End Standard aliases (the ported base rules) ---- */
  --brand: var(--brand-600);
  --brand-strong: var(--brand-700);
  --focus: var(--brand-700);
  --surface: #ffffff;
  --ink: var(--ink-900);
  --muted: var(--ink-500);
  --wrap: var(--container);
  --radius-s: var(--radius-sm);
  --radius-m: var(--radius-md);
  --radius-l: var(--radius-lg);
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --dur-1: 120ms;
  --dur-2: var(--dur);
  --dur-3: 320ms;

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid scale — display shrinks gracefully on mobile */
  --text-hero:    clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  --text-h1:      clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  --text-h2:      clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
  --text-h3:      1.25rem;
  --text-lead:    clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-caption: 0.75rem;

  --leading-tight: 1.05;
  --leading-snug:  1.25;
  --leading-body:  1.65;

  --tracking-display: -0.02em;

  /* ---- Spacing (8pt) ---- */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s6: 1.5rem;  --s8: 2rem;   --s12: 3rem;  --s16: 4rem;
  --s24: 6rem;   --s32: 8rem;

  --section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 72rem;          /* 1152px */
  --container-narrow: 44rem;

  /* ---- Shape & depth ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(23 47 51 / 0.06);
  --shadow-md: 0 6px 24px -8px rgb(23 47 51 / 0.14);
  --shadow-lg: 0 24px 64px -24px rgb(23 47 51 / 0.22);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
