/* =============================================================
   GLOBAL — Reset, base typography, body, utilities
   Depends on: tokens.css (must be loaded first)
   ============================================================= */


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

html {
  /* value */
  scroll-behavior: /* value */;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  background-color: var(--color-void);
  color: var(--color-mist);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

#main-content {
  /* value */
}


/* -----------------------------------------------------------
   SELECTION
----------------------------------------------------------- */
::selection {
  background-color: /* value */;
  color: /* value */;
}


/* -----------------------------------------------------------
   BASE LINKS
----------------------------------------------------------- */
a {
  color: var(--color-dusk);
  text-decoration: /* value */;
  transition: color var(--transition-base);
}

a:hover {
  color: /* value */;
}

a:focus-visible {
  outline: /* value */;
  outline-offset: /* value */;
  border-radius: var(--radius-sm);
}


/* -----------------------------------------------------------
   BASE HEADINGS
----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-bone);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
}


/* -----------------------------------------------------------
   GRAIN OVERLAY — canvas hook
   The canvas is injected by js/grain.js onto #hero-grain.
   This rule positions the body-level pseudo-element if a
   full-page grain is ever needed; currently unused.
----------------------------------------------------------- */
body::after {
  content: '';
  display: /* value */;
  position: /* value */;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
  opacity: 0; /* disabled at body level — hero uses canvas instead */
}


/* -----------------------------------------------------------
   UTILITY CLASSES
----------------------------------------------------------- */

/* Accessible hide — visible to screen readers, invisible to sighted users */
.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;
}

/* Centred, max-width layout container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* Reveal — initial hidden state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Stagger delays for scroll-reveal elements (below fold) */
.reveal[data-reveal-index="0"] { transition-delay: 0ms; }
.reveal[data-reveal-index="1"] { transition-delay: 100ms; }
.reveal[data-reveal-index="2"] { transition-delay: 200ms; }
.reveal[data-reveal-index="3"] { transition-delay: 300ms; }

/* Safety net — hero content snaps in after 2s if JS never fires */
.hero [data-reveal-index] {
  animation: heroFallback 0s 2s forwards;
}

@keyframes heroFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Visible state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion — disable all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* -----------------------------------------------------------
   RESPONSIVE — mobile: container + section padding
----------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .music,
  .about,
  .press,
  .playlists,
  .signup {
    padding-top: var(--space-14);
    padding-bottom: var(--space-14);
  }
}


/* -----------------------------------------------------------
   BASE BUTTON — shared across all CTA styles
   Component-specific overrides live in component CSS files.
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: /* value */;
  border: /* value */;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  background-color: transparent;
  color: /* value */;
  border-color: /* value */;
}

.btn--ghost:hover {
  background-color: /* value */;
  color: /* value */;
}
