/* ============================================================
   BAREFOOT BUNNY — base.css
   Reset + design tokens + typography foundation
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg {
  max-width: 100%;
  display: block;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== DESIGN TOKENS ===== */
:root {
  /* Palette */
  --bg-base: #0B1220;
  --bg-section: #161B2A;
  --bg-card: #1E2538;

  --amber: #D4923E;
  --amber-glow: #F0B862;
  --steel-blue: #3A5368;
  --ice: #8FB9D4;

  --text-primary: #EFE6D4;
  --text-secondary: #9A8D7A;
  --text-on-amber: #0B1220;

  --border-subtle: rgba(212, 146, 62, 0.15);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --fs-hero: clamp(3rem, 8vw, 6rem);
  --fs-h1: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: 2rem;
  --fs-body: 1.125rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7.5rem;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-normal: 300ms;
  --dur-slow: 600ms;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-full: 9999px;
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  font-weight: 400;
}

h1 { font-size: var(--fs-h1); color: var(--amber); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.mono { font-family: var(--font-mono); }

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--amber);
  color: var(--text-on-amber);
}
