/*
 * styles/base.css - reset, fonts, typography and shared controls. Uses styles/tokens.css only.
 */

@font-face {
  font-family: "Luxurious Script";
  src: url(../assets/fonts/luxurious-script/luxurious-script-latin.0f9f57fa49.woff2) format("woff2");
  font-display: swap;
}

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

html {
  color-scheme: dark;
  background: var(--c-room);
  color: var(--c-ink);
  font: 400 var(--t-md)/1.5 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

[hidden] { display: none !important; }

button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* bold caps label, like the type on the album post */
.caps {
  font-family: var(--font-caps);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* pill control on the dark room: lights, motion, guitar mode */
.control {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font: 700 var(--t-xs)/1 var(--font-caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.control[aria-pressed]::before {
  content: "";
  width: 0.7em; height: 0.7em;
  border-radius: 50%;
  border: 1px solid var(--c-ink-dim);
}

.control[aria-pressed="true"]::before {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 6px rgb(var(--c-light) / 0.8);
}

/* round icon button (close, play): 44 px target, centred SVG icon drawn with currentColor */
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--m-fast) linear, color var(--m-fast) linear;
}
.icon-button svg { width: 40%; height: 40%; display: block; }
.icon-button--solid { border-color: transparent; }
