@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #070a10;
  --deep: #0d1320;
  --line: rgba(240, 230, 208, 0.14);
  --cream: #f0e6d0;
  --mist: #a9b1bf;
  --moon: #e9c27b;
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 380;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 3px; }

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

[hidden] { display: none !important; }

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

/* hero: on phones the video sits on top and the words start below Selma's face */

.hero { position: relative; isolation: isolate; }

.hero-media { position: relative; height: 64svh; overflow: hidden; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--night) url("/media/hero_poster.webp") 50% 30% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--night) 0%, rgba(7, 10, 16, 0.6) 22%, rgba(7, 10, 16, 0) 48%);
}

.hero-copy {
  position: relative;
  margin-top: -9svh;
  padding: 0 var(--gutter) calc(48px + env(safe-area-inset-bottom));
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--moon);
}

.name {
  margin: 0;
  font-weight: 420;
  font-size: clamp(2.5rem, 11vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tagline {
  margin: 14px 0 24px;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  opacity: 0.9;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 480;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-main { background: var(--cream); color: var(--night); border: 1px solid var(--cream); }
.btn-main:hover { background: #fff7e6; }

.btn-ghost { background: rgba(7, 10, 16, 0.35); color: var(--cream); border: 1px solid rgba(240, 230, 208, 0.5); }
.btn-ghost:hover { border-color: var(--cream); }

/* hero play button: triangle, pause bars while playing, progress as a thin line underneath */
.hp-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
#hero-play.is-playing .hp-icon { width: 11px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
#hero-play::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--progress, 0) * 100%);
  background: var(--moon);
}

.hero-small { margin: 16px 0 0; font-size: 0.9rem; color: var(--mist); }
.next-line { margin: 8px 0 0; font-size: 0.9rem; color: var(--mist); }
.next-line:empty { display: none; }

/* sections */

main > section { padding: clamp(56px, 11vw, 112px) var(--gutter); }

.section-title {
  margin: 0 0 24px;
  font-size: 0.8rem;
  font-weight: 460;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moon);
}

/* excuse */

.excuse { background: linear-gradient(to bottom, var(--night), var(--deep)); }

.excuse-card { margin: 0; max-width: 44rem; min-height: 7em; }

.excuse-text {
  margin: 0;
  font-size: clamp(1.7rem, 6.6vw, 3rem);
  font-weight: 360;
  line-height: 1.18;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.excuse-text.swap { opacity: 0; transform: translateY(6px); }

.excuse-song { margin-top: 18px; color: var(--mist); font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.excuse-song a { color: var(--cream); }

.excuse-play {
  font: inherit;
  font-size: 0.85rem;
  color: var(--moon);
  background: none;
  border: 1px solid rgba(233, 194, 123, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 36px;
  cursor: pointer;
}

.excuse-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.excuse-note { min-height: 1.5em; margin: 14px 0 0; color: var(--mist); font-size: 0.9rem; }

/* releases */

.music { background: var(--deep); }

.releases {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  max-width: 900px;
}

.rel {
  background: rgba(240, 230, 208, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rel-art { position: relative; aspect-ratio: 1; background: #000; }

.rel-art img, .rel-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rel-art video { opacity: 0; transition: opacity 0.4s ease; }
.rel.is-live .rel-art video { opacity: 1; }

.rel-play {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--night);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.rel-play svg { width: 18px; height: 18px; }
.rel-play .ring { position: absolute; inset: -4px; width: 54px; height: 54px; transform: rotate(-90deg); pointer-events: none; }
.rel-play .ring circle { fill: none; stroke: var(--moon); stroke-width: 3; stroke-dasharray: 157; stroke-dashoffset: 157; }

.rel-body { padding: 14px 16px 12px; }
.rel-title { margin: 0 0 2px; font-size: 1.08rem; font-weight: 460; line-height: 1.3; }
.rel-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.95rem; }

.coming-title { margin-top: 44px; }

.coming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 900px; }

.soon {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.soon img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.soon-text { display: grid; min-width: 0; }
.soon-title { font-weight: 460; line-height: 1.25; }
.soon-when { color: var(--mist); font-size: 0.88rem; }

.soon-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 230, 208, 0.45);
  background: none;
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.soon-play svg { width: 15px; height: 15px; }
.soon-link { font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }

/* playlists */

.playlists { background: linear-gradient(to bottom, var(--deep), var(--night)); }

.pl-row {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: 64%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}

.pl { scroll-snap-align: start; text-decoration: none; display: grid; gap: 4px; align-content: start; }
.pl img { border-radius: var(--radius); aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); transition: transform 0.25s ease; }
.pl:hover img { transform: translateY(-3px); }
.pl-name { margin-top: 8px; font-weight: 460; }
.pl-sub { color: var(--mist); font-size: 0.9rem; }

@media (min-width: 700px) {
  .pl-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; max-width: 1200px; }
}

/* gallery */

.gallery { padding-left: 0 !important; padding-right: 0 !important; }
.gallery .section-title { padding: 0 var(--gutter); }

.gal-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.gal-strip img {
  height: min(56vh, 520px);
  width: auto;
  flex: 0 0 auto;
  border-radius: var(--radius);
  scroll-snap-align: start;
  object-fit: cover;
}

/* footer */

.foot {
  padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 18px; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; letter-spacing: 0.08em; }
.socials a:hover { color: var(--moon); }

.foot-line { margin: 0 0 6px; color: var(--mist); }
.foot-small { margin: 0; color: var(--mist); font-size: 0.8rem; opacity: 0.8; }

/* wide screens: text left, Selma right */

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--gutter);
    background: radial-gradient(ellipse at 72% 45%, rgba(233, 194, 123, 0.08), transparent 55%), var(--night);
  }
  .hero-media { order: 2; height: min(86svh, 900px); aspect-ratio: 9 / 16; justify-self: center; border-radius: 22px; box-shadow: 0 30px 120px rgba(233, 194, 123, 0.1), 0 0 0 1px var(--line); }
  .hero-shade { background: linear-gradient(to top, rgba(7, 10, 16, 0.35), rgba(7, 10, 16, 0) 35%); }
  .hero-copy { order: 1; margin: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .excuse-text, .rel-art video, .btn, .pl img { transition: none; }
}
