/* Siren Hours. Dark ocean, eclipse, cyan wisp, amber horizon. */

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

:root {
  --abyss: #04080d;
  --deep: #07111a;
  --tide: #0b1b27;
  --text: #e8eded;
  --muted: #a3b5ba;
  --dim: #7f959d;
  --cyan: #86d8e2;
  --cyan-soft: rgba(134, 216, 226, 0.18);
  --amber: #e8a062;
  --line: rgba(134, 216, 226, 0.2);
  --font: "Jost", "Avenir Next", "Century Gothic", "Futura", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 56px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--abyss);
  color: var(--text);
  border: 1px solid var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 8, 13, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(4, 8, 13, 0.78); backdrop-filter: blur(12px); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
}

.brand {
  display: none;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
}

.nav-links { display: flex; gap: clamp(18px, 4vw, 36px); }
.nav-links a,
.footer-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(232, 237, 237, 0.88);
  transition: color 0.25s ease;
}
.nav-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.26em; bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.footer-links a:hover { color: var(--cyan); }
.nav-links a:hover::after,
.footer-links a:hover::after { transform: scaleX(1); }

@media (max-width: 399px) {
  .nav-links { gap: 16px; }
  .nav-links a { letter-spacing: 0.16em; }
  .nav-links a::after { right: 0.16em; }
}

@media (min-width: 520px) {
  .nav { justify-content: space-between; }
  .brand { display: inline-block; }
}

/* From tablet up the header floats over the hero and turns solid after it */
@media (min-width: 720px) {
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: linear-gradient(180deg, rgba(4, 8, 13, 0.7), rgba(4, 8, 13, 0));
    border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background 0.35s ease, border-color 0.35s ease;
  }
  .nav { min-height: 68px; }
  .js .brand { opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s; }
  .js .site-header.is-scrolled .brand { opacity: 1; visibility: visible; }
  .site-header.is-scrolled {
    background: rgba(4, 8, 13, 0.9);
    border-bottom-color: var(--line);
  }
  @supports (backdrop-filter: blur(8px)) {
    .site-header.is-scrolled { background: rgba(4, 8, 13, 0.7); backdrop-filter: blur(14px); }
  }
  /* Without script the header scrolls away instead of floating */
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .brand { opacity: 1; visibility: visible; }
}

/* ---------- Hero (approved banner, never cropped past its wordmark) ---------- */

.hero {
  position: relative;
  /* Height follows the art: the banner is 16:9 and its wordmark spans ~56% of its
     width, so the box never gets taller than 0.877 x width. Cover then keeps the
     whole wordmark and tagline in view from phones to ultrawide. */
  height: min(100svh, 87.7vw);
  overflow: hidden;
  background: var(--abyss);
}
@supports not (height: 100svh) {
  .hero { height: min(100vh, 87.7vw); }
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: hero-in 1.6s ease-out both;
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: none; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(4, 8, 13, 0), rgba(4, 8, 13, 0.62) 55%, var(--abyss));
  pointer-events: none;
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vh, 34px);
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(232, 237, 237, 0.9);
}
.hero-cue span { padding-left: 0.34em; }
.hero-cue::after {
  content: "";
  width: 1px;
  height: clamp(18px, 4vh, 40px);
  background: linear-gradient(180deg, var(--cyan), rgba(134, 216, 226, 0));
}
.hero-cue:hover { color: var(--cyan); }

/* ---------- Shared section pieces ---------- */

.section { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; }

.eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-left: 0.34em;
}

.h2-brand {
  text-align: center;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em;
  line-height: 1.3;
}
.h2-brand--left { text-align: left; padding-left: 0; }

.lead {
  max-width: 58ch;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
}

.mini-title {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(134, 216, 226, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* The horizon: one hairline, amber at the edges, cyan at the centre */
.horizon {
  position: relative;
  width: min(760px, 72%);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(232, 160, 98, 0), rgba(232, 160, 98, 0.6) 30%, rgba(134, 216, 226, 0.75) 50%, rgba(232, 160, 98, 0.6) 70%, rgba(232, 160, 98, 0));
  box-shadow: 0 0 26px 1px rgba(232, 160, 98, 0.16);
}

/* ---------- Listen ---------- */

.listen { padding-top: clamp(40px, 6vw, 72px); }

.song-title {
  margin-top: 16px;
  text-align: center;
  font-weight: 200;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.byline {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  padding-left: 0.34em;
}

.frame {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  aspect-ratio: 16 / 9;
  /* YouTube requires the embedded viewport to be at least 200px x 200px.
     Below ~356px of frame width the 16:9 height would fall under 200px. */
  min-height: 202px;
  background: #02050a;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(70, 170, 190, 0.28), 0 0 120px -50px rgba(232, 160, 98, 0.2);
}
.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pull {
  max-width: 34ch;
  margin: clamp(32px, 5vw, 52px) auto 0;
  text-align: center;
  font-weight: 250;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin-top: 26px;
  font-size: 0.95rem;
}

