/* PAIRS Foundation — base tokens and reset */
:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* brand constants (PAIRS Brand Guideline v2) */
  --pairs-navy: #212E5C;
  --royal-blue: #244492;
  --sky-blue: #2CA8E0;
  --sunrise-yellow: #EFBA1C;
  --coral: #E7663E;
  --lilac: #BA8CBF;
  --violet: #68338C;
  --leaf-green: #87BC40;
  --forest-green: #036A38;

  --font-display: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Libre Baskerville', 'Baskerville', Georgia, serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 72rem;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --color-bg: #FBF9F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #F3EFE7;
  --color-surface-navy: #212E5C;
  --color-surface-navy-2: #1A2449;
  --color-border: #E3DED3;
  --color-divider: #ECE7DD;
  --color-text: #1C2238;
  --color-text-muted: #5A6075;
  --color-text-faint: #8E93A6;
  --color-text-inverse: #FBF9F5;
  --color-primary: #212E5C;
  --color-primary-hover: #2B3C78;
  --color-primary-active: #16203F;
  --color-accent: #244492;
  --color-accent-soft: #E6ECF7;
  --color-link: #244492;
  --shadow-sm: 0 1px 2px rgba(33, 46, 92, 0.06), 0 2px 8px rgba(33, 46, 92, 0.05);
  --shadow-md: 0 6px 24px rgba(33, 46, 92, 0.10);
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0F1526;
  --color-surface: #161D33;
  --color-surface-2: #1C2440;
  --color-surface-navy: #0B1020;
  --color-surface-navy-2: #080C1A;
  --color-border: #2A3352;
  --color-divider: #222A47;
  --color-text: #EEF0F6;
  --color-text-muted: #B3B9CC;
  --color-text-faint: #7B829B;
  --color-text-inverse: #0F1526;
  --color-primary: #DCE4F7;
  --color-primary-hover: #FFFFFF;
  --color-primary-active: #C4CFEA;
  --color-accent: #7FB6F0;
  --color-accent-soft: #1C2A4D;
  --color-link: #8EC1F5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-blue); outline-offset: 3px; border-radius: 2px; }
.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; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--pairs-navy); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }
