:root {
  color-scheme: dark;
  --ivory: #f5eee5;
  --champagne: #e0c3a3;
  --muted: #dbcfc3;
  font-family: system-ui, sans-serif;
  background: #18171a;
  color: var(--ivory);
}
* { box-sizing: border-box; }
body {
  --gutter: clamp(1.5rem, 7vw, 7.5rem);
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, #17151bd9 0%, #19161c59 62%, #17151b25),
    linear-gradient(0deg, #101014be 0%, #10101400 58%),
    url("mountain-twilight.jpg") center 54% / cover no-repeat,
    #2a2329;
}
header, footer { padding-inline: var(--gutter); }
header {
  padding-top: max(2rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: .8rem;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .75rem;
  font-weight: 650;
}
.station-mark {
  width: 1.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.station-mark::before {
  content: "";
  width: .34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--champagne);
}
main { display: grid; align-items: center; padding: 3rem var(--gutter) 2rem; }
.hero { width: min(100%, 31rem); }
h1 {
  font: 400 clamp(4.1rem, 10vw, 9rem)/.83 Georgia, serif;
  letter-spacing: -.075em;
  margin: 0 0 clamp(2.3rem, 6vh, 4.2rem) -.045em;
}
h1 em { font-weight: 400; color: var(--champagne); }
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
  min-height: 6.5rem;
  padding: .95rem 1rem;
  border: 1px solid #e5d4c450;
  border-radius: 1.1rem;
  background: #201c22d9;
}
button {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--champagne);
  color: #251d20;
  cursor: pointer;
}
button:hover { background: #f3dbc1; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
.icon { border: .56rem solid transparent; border-right: 0; border-left: .86rem solid; margin-left: .15rem; }
[data-state="playing"] .icon, [data-state="loading"] .icon {
  margin: 0;
  width: .78rem;
  height: 1rem;
  border: solid currentColor;
  border-width: 0 .25rem;
}
.track { overflow-wrap: anywhere; }
.track p { margin: 0; }
.eyebrow { color: var(--champagne); font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .19em; }
#song { font-size: clamp(1rem, 2.8vw, 1.22rem); margin-top: .23rem; }
#artist, #status, footer { color: var(--muted); font-size: .85rem; }
#artist { margin-top: .12rem; }
#status { margin: .8rem 0 0 .2rem; }
footer { padding-bottom: max(1.8rem, env(safe-area-inset-bottom)); }
footer a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
footer span { margin-left: .25em; }
@media (max-width: 600px) {
  body { background-position: center, center, 58% center; }
  main { padding-top: 2.5rem; }
}
