/* ============================================================
   base.css — design tokens, reset, root typography
   samluker.ninja rebuild — aurora bioluminescent
   ============================================================ */

:root {
  /* Palette ---------------------------------------------------- */
  --void:        #08090d;
  --void-deep:   #050608;
  --void-soft:   #0d0f15;

  --white-cool:  #eef0f4;
  --white-muted: #9aa0ac;
  --white-dim:   #5a6070;

  /* Aurora — emission only, never as flat UI fills.
     Exposed as tokens for use by shaders and JS, NOT for CSS UI. */
  --aurora-teal:   #4aedc6;
  --aurora-violet: #a78bfa;
  --aurora-rose:   #f4a4b4;

  --focus-ring: rgba(167, 139, 250, 0.55);

  /* Type ------------------------------------------------------- */
  --font-display: "Mona Sans", "Inter Variable", "Inter", system-ui, sans-serif;
  --font-body:    "Mona Sans", "Inter Variable", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  --type-display-01: clamp(64px, 12vw, 180px);
  --type-display-02: clamp(48px, 8vw, 96px);
  --type-heading-01: clamp(32px, 4vw, 48px);
  --type-body:       clamp(16px, 1.2vw, 17px);
  --type-mono:       12px;

  --leading-tight: 0.95;
  --leading-snug:  1.1;
  --leading-body:  1.55;

  --tracking-mono: 0.12em;
  --tracking-wide: 0.2em;

  /* Rhythm ----------------------------------------------------- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 160px;

  --gutter: clamp(24px, 5vw, 96px);
  --content-max: 1320px;

  /* Motion ----------------------------------------------------- */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);

  --dur-fast:   180ms;
  --dur-normal: 320ms;
  --dur-slow:   600ms;
  --dur-epic:   1200ms;

  /* Layering --------------------------------------------------- */
  --z-canvas: 0;
  --z-content: 10;
  --z-cursor: 100;
  --z-nav: 50;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Lenis will override scroll behavior; keep this as a fallback for reduced-motion. */
}

body {
  background-color: var(--void);
  color: var(--white-cool);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  /* Custom cursor takes over on desktop; OS cursor only on touch / form fields. */
}

@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
}

input, textarea, select, button { cursor: auto; }

::selection {
  background-color: var(--aurora-violet);
  color: var(--void);
}

/* Type defaults ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--white-cool);
}

p {
  max-width: 62ch;
  color: var(--white-cool);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: 2px;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

/* Accessibility utilities ------------------------------------- */
.sr-only {
  position: absolute;
  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;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--void);
  border: 1px solid var(--white-cool);
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}

.skip-link:focus {
  top: var(--space-3);
}

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