/*
 * Neurekka — Foundation
 * Design tokens, reset, and base element styles.
 * Breakpoints — Tailwind's scale, mobile-first (min-width). var() cannot be
 * used inside @media conditions, so values are written literally.
 *   sm: 640px   md: 768px   lg: 1024px   xl: 1280px   2xl: 1536px
 */

:root {
  /* Brand palette — teal and gold from the original site, set on a near-black ink */
  --teal: #208792;
  --teal-bright: #4fd1d9;
  --gold: #e4cb86;
  --gold-soft: #f1dfac;

  --ink: #f2f7f6;
  --ink-soft: #b3c4c4;
  --muted: #74898a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bg: #060d0f;
  --bg-soft: #0a1619;
  --surface: #0f1f23;

  --glow-teal: rgba(32, 135, 146, 0.35);
  --glow-gold: rgba(228, 203, 134, 0.16);

  /* Typography */
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  /* Lets <details> panels transition from height 0 to auto where supported */
  interpolate-size: allow-keywords;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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