/* ==========================================================================
   Base styles: brand fonts, design tokens, minimal reset, shared utilities.
   Component styles live in css/components/, section styles in css/sections/.
   See styleguide.md for how these tokens should be used.
   ========================================================================== */

/* ---------- Brand fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/libre-baskerville-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour — sampled from the Audira Sound title card */
  --color-bg: #000000;            /* page background; matches video black */
  --color-surface: #0a1418;       /* raised surfaces, soft glow behind logo */
  --color-accent: #4fa3b8;        /* teal accent */
  --color-accent-strong: #7fd0dd; /* hover / focus ring */
  --color-text: #d8f1ec;          /* mint-white body text */
  --color-text-muted: #8fb3b8;    /* secondary text, idle icons */

  /* Brand logo colours (used by .brand-logo) */
  --color-brand-mint: #cdeee5;    /* logo mark + centre of "AUDIRA" */
  --color-brand-teal: #3b86a8;    /* outer edges of "AUDIRA" */
  --color-brand-blue: #3e9cc6;    /* "SOUND" */

  /* Typography — brand fonts: Libre Baskerville (display) + Outfit (UI/body) */
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --tracking-wide: 0.35em;        /* spaced capitals, echoes "S O U N D" */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  /* Radius & motion */
  --radius-pill: 999px;
  --duration-fast: 150ms;
  --duration-reveal: 1200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: dark;
}

/* ---------- Minimal reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

/* ---------- Utilities ---------- */

/* Hides content visually while keeping it available to screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
