/* ============================================
   beatz — design tokens
   ============================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black/archivo-black-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #0e0e10;
  --surface: #1a1a1d;
  --surface-raised: #232326;
  --yellow: #ffc700;
  --yellow-pale: #ffeb94;
  --gold: #c98f1f;
  --orange: #ff5a36;
  --grey: #8a8a91;
  --grey-dim: #5a5a60;
  --line: #2a2a2e;
  --text: #f5f3ee;

  /* type — Archivo Black for display (closest free match to Deezer's
     proprietary "Deezer Sans" headline font), Space Grotesk for body/UI */
  --font-display: 'Archivo Black', 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;

  /* squircle signature — used consistently for art + key surfaces */
  --squircle: 28% 28% 32% 28% / 32% 28% 32% 28%;
  --squircle-sm: 24%;
  --squircle-lg: 38px;

  /* layout */
  --sidebar-w: 232px;
  --nowplaying-h: 84px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-yellow: 0 4px 18px rgba(255, 199, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* visible keyboard focus, always */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-raised);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--grey-dim); }

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

/* squircle utility — the signature shape, applied to art + key tiles only */
.squircle {
  border-radius: var(--squircle);
  overflow: hidden;
}

.squircle-img {
  border-radius: var(--squircle);
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-raised);
}

.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;
}
