@font-face {
  font-family: "Gloock";
  src: url("../assets/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07140e;
  --bg-raise: #10261c;
  --ink: #f4fff6;
  --muted: #d5eee0;
  --hot: #d6ff6a;
  --spotify: #1ed760;
  --gather: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

::selection {
  background: var(--spotify);
  color: var(--bg);
}

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 78% 42%, #143528 0%, transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--spotify);
  color: var(--bg);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #1a6b3c;
  border-radius: 99px;
  border: 2px solid var(--bg);
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 4px;
}

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

a { color: var(--hot); text-underline-offset: 0.18em; }

button, a { -webkit-tap-highlight-color: transparent; }

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

#liquid-back,
#liquid-front {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

#liquid-front { z-index: 2; }

.mark {
  position: fixed;
  z-index: 4;
  left: 50%;
  top: 40%;
  width: 200px;
  height: 200px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mark svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

html.is-live #liquid-back,
html.is-live #liquid-front {
  opacity: 1;
  transition: opacity 0.45s linear;
}

main { position: relative; z-index: 1; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 7;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--ink);
  transform: translateY(-140%);
}

.skip:focus { transform: none; }

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) max(22px, 7vw) 8px;
  background: var(--bg);
  border-bottom: 1px solid rgba(213, 238, 224, 0.16);
}

.brand {
  color: var(--ink);
  font-family: Gloock, serif;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bar-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bar-nav a:hover { color: var(--ink); }

.bar-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(213, 238, 224, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#burst {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--spotify);
  opacity: 0;
}

#burst.go {
  opacity: 1;
  transition: opacity 0.38s linear;
}

.hero { height: 220vh; }

.hero-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: max(12vh, 84px) 7vw 14vh;
}

.drift {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

html.is-live .drift { opacity: 1; }

.still {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.38);
  will-change: transform;
}

h1 {
  margin: 0 0 1.1rem;
  font-family: Gloock, serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  letter-spacing: -0.035em;
  line-height: 0.88;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(7, 20, 14, 0.92);
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(7, 20, 14, 0.92);
}

.portrait {
  width: min(52vh, 440px);
  height: auto;
  aspect-ratio: 1;
  justify-self: end;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.scroll-cue {
  position: absolute;
  left: 7vw;
  bottom: max(28px, 4.5vh, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.scroll-cue:hover { color: var(--ink); }

.visit { height: 200vh; }

.visit-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12vh, 84px) 7vw 10vh;
}

.visit-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(36px, 8vw, 120px);
}

.visit-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.visit-name {
  font-family: Gloock, serif;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.visit-handle {
  color: var(--muted);
  font-weight: 600;
}

.visit-link:hover .visit-name { color: var(--hot); }

.songs { height: 480vh; }

.feature { height: 340vh; }

.feature-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: max(8vh, 76px) 7vw 8vh;
}

.feature-cover {
  width: min(34vh, 280px);
  margin: 0;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
}

.feature-copy {
  position: relative;
  z-index: 2;
  width: min(34rem, 88vw);
  text-align: center;
}

.feature-copy h2 { text-shadow: 0 2px 18px rgba(7, 20, 14, 0.95); }

.feature-copy p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(7, 20, 14, 0.95);
}

.reprise { height: 260vh; }

.reprise-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: max(8vh, 76px) 8vw 8vh;
}

.corner-cover {
  position: absolute;
  z-index: 0;
  width: min(26vh, 200px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
}

.corner-songs { right: 5vw; bottom: 6vh; }

.corner-names { left: 5vw; bottom: 7vh; }

.stage h2,
.column,
.names { position: relative; z-index: 1; }

.names {
  margin: 0;
  padding: 0;
  max-width: 12ch;
  list-style: none;
  font-family: Gloock, serif;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(7, 20, 14, 0.92);
}

.stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: max(8vh, 76px) 7vw 10vh;
  perspective: 1200px;
}

h2 {
  margin: 0;
  align-self: start;
  font-family: Gloock, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-shadow: 0 2px 18px rgba(7, 20, 14, 0.92);
}

.column {
  position: relative;
  width: min(720px, 100%);
  height: 92px;
  margin: 0 auto;
  transform-style: preserve-3d;
  align-self: center;
}

.row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  column-gap: 4px;
  align-items: center;
  min-height: 84px;
  padding: 10px 8px 10px 10px;
  background: var(--bg-raise);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transform-origin: 50% 50%;
}

.row.is-focus {
  background: #173528;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
}

.row.is-focus .name,
.row.is-focus .time { color: var(--hot); }

.main {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.35fr) minmax(0, 1fr) 3.4rem;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.main img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #163024;
}

.titles { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.name,
.by,
.album {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.by,
.album {
  color: var(--muted);
  font-size: 0.92rem;
}

.time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.more {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.more svg { fill: currentColor; }

.more:hover,
.row.is-open .more {
  background: #1e4634;
  color: var(--ink);
}

.detail {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding: 4px 8px 6px 74px;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail[hidden] { display: none; }

.detail p { margin: 0; }

.elsewhere {
  position: relative;
  z-index: 1;
  padding: 14vh 7vw 10vh;
}

.elsewhere h2 {
  margin: 0 0 1.6rem;
  font-family: Gloock, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.link-list {
  list-style: none;
  max-width: 38rem;
  margin: 0;
  padding: 0;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  padding: 16px 0;
  border-top: 1px solid rgba(213, 238, 224, 0.18);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.link-list li:last-child a { border-bottom: 1px solid rgba(213, 238, 224, 0.18); }

.link-list span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.link-list a:hover { color: var(--hot); }

.close { height: 280vh; }

.close-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
}

#spotify-go {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px max(92px, 16vh);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  cursor: pointer;
}

#spotify-go:hover .listen-label,
#spotify-go:focus-visible .listen-label { color: var(--hot); }

#spotify-go:disabled { cursor: wait; }

.logo-fallback { display: none; }

.close-note {
  position: absolute;
  left: 50%;
  bottom: max(22px, 4.5vh);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 20, 14, 0.82);
  text-align: center;
  color: var(--muted);
}

.noscript {
  position: relative;
  z-index: 3;
  padding: 24px;
}

html.reduce #liquid-back,
html.reduce #liquid-front,
html.no-gl #liquid-back,
html.no-gl #liquid-front,
html.reduce .mark,
html.no-gl .mark { display: none; }

html.reduce .logo-fallback,
html.no-gl .logo-fallback {
  display: block;
  margin-bottom: 8px;
}

html.reduce .songs,
html.no-gl .songs,
html.reduce .feature,
html.no-gl .feature,
html.reduce .reprise,
html.no-gl .reprise { height: auto; }

html.reduce .feature-pin,
html.no-gl .feature-pin,
html.reduce .reprise-pin,
html.no-gl .reprise-pin {
  position: static;
  height: auto;
  min-height: 70svh;
}

html.reduce .stage,
html.no-gl .stage {
  position: static;
  height: auto;
  perspective: none;
  padding-bottom: 12vh;
}

html.reduce .column,
html.no-gl .column {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html.reduce .row,
html.no-gl .row {
  position: static;
  opacity: 1;
  transform: none;
}

html.reduce .drift,
html.no-gl .drift {
  position: relative;
  inset: auto;
  z-index: 1;
  opacity: 1;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4vh 7vw 2vh;
}

html.reduce .still,
html.no-gl .still {
  position: relative;
  width: 100% !important;
  transform: none !important;
  opacity: 1;
}

@media (max-width: 800px) {
  .bar-toggle { display: inline-flex; align-items: center; }

  .bar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px max(18px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-bottom: 1px solid rgba(213, 238, 224, 0.16);
  }

  .bar-nav.is-open { display: flex; }

  .bar-nav a {
    padding: 14px 0;
    font-size: 1.15rem;
  }

  .hero-pin {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: max(8vh, 76px) 22px 14vh;
  }

  .portrait {
    width: min(58vw, 280px);
    justify-self: start;
    order: -1;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
    white-space: normal;
  }

  .visit-pin { padding: max(10vh, 84px) 22px 8vh; }

  .visit-pair {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .visit-name { font-size: clamp(2.8rem, 14vw, 4rem); }

  .elsewhere { padding: 10vh 22px 8vh; }

  .lede { font-size: 1.12rem; }

  .stage { padding: max(7vh, 76px) 16px 8vh; }

  .main { grid-template-columns: 52px minmax(0, 1fr) 3rem; }

  .album { display: none; }

  .main img { width: 52px; height: 52px; }

  .detail { padding-left: 8px; }

  .close-note { bottom: max(18px, 3.5vh); }

  .feature-cover { width: min(68vw, 280px); }

  .feature-pin { gap: 16px; padding: max(6vh, 76px) 22px 6vh; }

  .names { font-size: clamp(2.1rem, 10vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero { height: auto; }

  .hero-pin {
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .drift {
    position: relative;
    inset: auto;
    opacity: 1;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 4vh 7vw 2vh;
  }

  .still {
    position: relative;
    width: 100% !important;
    transform: none !important;
  }

  #liquid-back,
  #liquid-front { display: none; }

  .logo-fallback { display: block; margin-bottom: 8px; }

  .songs,
  .visit,
  .feature,
  .reprise { height: auto; }

  .visit-pin {
    position: static;
    height: auto;
    min-height: 70svh;
  }

  .feature-pin,
  .reprise-pin {
    position: static;
    height: auto;
    min-height: 70svh;
  }

  .stage {
    position: static;
    height: auto;
    perspective: none;
    padding-bottom: 12vh;
  }

  .column {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .row {
    position: static;
    opacity: 1;
    transform: none;
  }
}
