/* Scout web design system, version 1, 14 October 2026.
   Colours: Scout brand guide and the product's own ramp (scout-prototype/app/brand/tokens.css).
   Type: brand-guidance/TYPOGRAPHY.md (Scout column), scaled from the 1080px social canvas to screens.
   Rules carried over: sentence case, no positive letter spacing, no gradient text, one cyan word
   per headline at most, flat colour, spacing on multiples of 8. */

:root {
  /* Neutrals, from the product */
  --black: #000305;
  --n-925: #020609;
  --n-900: #050B10;
  --n-875: #091217;
  --n-850: #0B141A;
  --n-800: #14202A;
  --n-700: #243340;
  --n-600: #384A58;
  --n-500: #526675;
  --n-400: #728693;
  --n-300: #95A6B0;
  --n-200: #B5C2C9;
  --n-100: #D0D9DE;
  --light: #E9F0F2;
  --white: #FFFFFF;

  /* Scout teal ramp; cyan (teal-300) is the one accent */
  --teal-100: #B8F6F7;
  --teal-200: #6FEDEF;
  --cyan: #00E0E0;
  --teal-400: #00C4CC;
  --teal-500: #00A8B0;
  --teal-600: #008B92;
  --teal-700: #006C72;
  --teal-800: #004D52;
  --teal-900: #003236;

  /* Status, from the product */
  --due: #D9951D;
  --due-subtle: #2D1D05;

  /* Roles */
  --bg: var(--black);
  --surface: var(--n-900);
  --surface-raised: var(--n-850);
  --line: var(--n-800);
  --line-strong: var(--n-700);
  --text: var(--light);
  --text-2: var(--n-200);
  --text-3: var(--n-400);
  --accent: var(--cyan);
  --glass: rgba(5, 11, 16, 0.62);
  --glass-line: rgba(233, 240, 242, 0.12);

  /* Type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Revised 15 October 2026 (Shane): headings and text one step smaller, lead one weight lighter */
  --fs-display: clamp(34px, 5.1vw, 76px);
  --fs-h2: clamp(28px, 3.1vw, 46px);
  --fs-h3: clamp(18px, 1.45vw, 22px);
  --fs-lead: clamp(16px, 1.2vw, 18px);
  --fs-body: 15px;
  --fs-label: 14px;
  --fs-caption: 13px;

  /* Spacing, multiples of 8 */
  --s-8: 8px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  --s-48: 48px; --s-64: 64px; --s-80: 80px; --s-96: 96px; --s-128: 128px; --s-160: 160px;
  --gutter: clamp(16px, 6.667vw, 96px);
  --section-y: clamp(96px, 12vw, 160px);
  --max: 1248px;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* Type roles */
.t-display {
  font-family: var(--font-display); font-weight: 500; /* Shane, 15 October 2026: all homepage headings lighter */
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em;
}
.t-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance;
}
.t-lead {
  font-family: var(--font-ui); font-weight: 400;
  font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.01em; color: var(--text-2); text-wrap: pretty;
}
.t-body { font-size: var(--fs-body); font-weight: 400; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.t-label { font-weight: 600; font-size: var(--fs-label); line-height: 1.2; letter-spacing: 0; color: var(--accent); }
.t-caption { font-weight: 500; font-size: var(--fs-caption); line-height: 1.35; letter-spacing: 0; color: var(--text-3); }
.t-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.accent { color: var(--accent); }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  height: 48px; padding: 0 var(--s-24); border-radius: var(--r-sm);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--light); }
.btn-secondary { background: rgba(0, 3, 5, .35); color: var(--white); border-color: rgba(233, 240, 242, .45); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: var(--white); }
.btn-small { height: 40px; padding: 0 var(--s-16); font-size: 14px; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-md);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

/* Motion: reveal on entering view. Everything is visible without script or with motion off. */
.js .reveal { opacity: 0; filter: blur(10px); transform: translateY(16px);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; filter: blur(0); transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
