/* ------------------------------------------------------------
   Mellowdy.app — shared basics.
   turntable.css draws the record player, shelf.css the record shelf.
   ------------------------------------------------------------ */

:root {
  --paper: #ece6d6;       /* light text on dark wood */
  --dust: #b9a98f;        /* quiet text on dark wood */
  --lamp: #f2b866;        /* the one warm accent */
  --wax: #0c0d0d;         /* vinyl */

  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Onest", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- info button (top right of the player) and its popup ---------- */

.info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 230, 214, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--dust);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.info:hover { color: var(--paper); border-color: rgba(236, 230, 214, 0.6); background: rgba(0, 0, 0, 0.4); }

.about {
  width: min(24rem, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.about::backdrop {
  background: rgba(8, 6, 4, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.about__card {
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #4a2a14 0%, #3b2010 100%);
  box-shadow:
    0 0 0 1px rgba(236, 230, 214, 0.14),
    0 20px 50px rgba(0, 0, 0, 0.6);
}

.about__title {
  margin: 0 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.about__text {
  margin: 0 0 0.4rem;
  color: var(--dust);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.about__text a {
  color: var(--lamp);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.about__close {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1rem;
  border: 1px solid rgba(236, 230, 214, 0.35);
  border-radius: 8px;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.about__close:hover { background: rgba(236, 230, 214, 0.08); }

@media (prefers-reduced-motion: reduce) {
  .info { transition: none; }
}
