/* ============================================
   BASE — reset, tokens, typography
   ============================================ */

:root {
  /* Coastal Teal palette */
  --teal: #126d85;
  --teal-deep: #0c5469;
  --teal-ink: #0a3a48;
  --cyan: #5fd4e7;
  --cyan-bright: #7be3f0;
  --ink: #0a0e12;
  --ink-2: #1f2a31;
  --muted: #5b6b73;
  --muted-2: #8c9aa1;
  --line: rgba(10, 14, 18, 0.08);
  --line-2: rgba(10, 14, 18, 0.14);
  --surface: #ffffff;
  --surface-2: #f5fafb;
  --surface-teal: #e6f4f7;

  /* Type */
  --font-display: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* Fluid type scale */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.9rem);
  --text-base: clamp(0.98rem, 0.95rem + 0.2vw, 1.05rem);
  --text-md: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  --text-lg: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --text-xl: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --text-2xl: clamp(2.4rem, 1.6rem + 3.5vw, 4rem);
  --text-hero: clamp(2.6rem, 1rem + 12vw, 9rem);

  /* Spacing (4px base) */
  --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;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 14, 18, 0.06), 0 2px 8px rgba(10, 14, 18, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 14, 18, 0.08), 0 8px 32px rgba(10, 14, 18, 0.06);
  --shadow-lg: 0 12px 28px rgba(10, 14, 18, 0.12), 0 24px 64px rgba(10, 14, 18, 0.08);
  --shadow-glow: 0 0 60px rgba(95, 212, 231, 0.35);

  /* Layout */
  --content: 1200px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms var(--ease-out);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  color: var(--ink-2);
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  z-index: 999;
  transition: top 200ms;
}
.skip-link:focus {
  top: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
