/* ============================================================
   BASE — reset, custom properties, typography foundations
============================================================ */

/* Force a light-mode native scrollbar on macOS regardless of which
   section is currently in view, so the scrollbar stays consistent across
   the light/dark background transitions. */
html {
  color-scheme: light;
}

/* Custom properties */
:root {
  /* Colors */
  --color-black:    #000000;
  --color-white:    #ffffff;
  --color-off-white: #f5f5f3;
  --color-mid:      #888888;

  /* Typography */
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-s:    1rem;
  --space-m:    2rem;
  --space-l:    4rem;
  --space-xl:   8rem;
  --space-xxl: 12rem;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-s:    0.875rem;
  --text-base: 1rem;
  --text-m:    1.125rem;
  --text-l:    1.5rem;
  --text-xl:   2.5rem;
  --text-xxl:  4rem;
  --text-hero: clamp(3rem, 6vw, 5.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   800ms;
  --duration-xslow: 1200ms;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-black);
  overflow-x: hidden;
}

/* Base link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
