/* Signals From A Dark Planet — shared styles for all pages */

:root {
  --bg: #07090e;
  --bg-raised: #10141c;
  --line: #232a36;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --signal: #f4c98a;        /* warm glow from the waveform art */
  --signal-strong: #ffdca8;
  --max: 1120px;
  --display: "Oxanium", "Eurostile", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-strong); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.nav { display: flex; gap: 28px; }

.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--signal); }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; justify-content: center; gap: 4px; padding-block: 10px; }
  .brand { font-size: 0.7rem; letter-spacing: 0.08em; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(82vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  background:
    linear-gradient(180deg, rgba(7,9,14,0.35) 0%, rgba(7,9,14,0.55) 60%, var(--bg) 100%),
    url("images/hero-signal.jpg") center / cover no-repeat;
}

.hero-logo {
  width: min(520px, 92vw);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto 8px;
  /* logo sits on a dark rectangle; fade its edges and blend it into the sky */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at center, #000 34%, transparent 46%);
  mask-image: radial-gradient(circle at center, #000 34%, transparent 46%);
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.hero p {
  color: var(--text);
  max-width: 34em;
  margin: 0 auto 28px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.page-head {
  padding: 72px 0 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7,9,14,0.6), var(--bg)),
    url("images/hero-signal.jpg") center 45% / cover no-repeat;
}
.page-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: 0.12em; }
.page-head p { color: var(--muted); max-width: 40em; margin: 0; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: #14100a;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--signal-strong); color: #14100a; box-shadow: 0 0 24px rgba(244,201,138,0.35); }

.btn.ghost { background: transparent; color: var(--text); border-color: rgba(230,232,236,0.4); }
.btn.ghost:hover { border-color: var(--signal); color: var(--signal); box-shadow: none; }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--signal);
  margin: 0 0 10px;
}

.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.lede { color: var(--muted); max-width: 40em; }

/* Release feature: cover + text side by side */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  align-items: center;
}
.feature img { width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card-body > :last-child.btn { margin-top: 14px; }

/* Video thumbnail that links out (swap for an embed when ready) */
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.2s; opacity: 0.85; }
.thumb:hover img { transform: scale(1.03); opacity: 1; }
.thumb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7,9,14,0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4c98a' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  border: 1px solid rgba(244,201,138,0.6);
}

/* Responsive 16:9 box for YouTube iframes */
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Merch product image */
.product-img { aspect-ratio: 1 / 1; background: #0d0c0c; display: grid; place-items: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
/* Store product photos are 3:4 on white */
.merch-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.merch-img { aspect-ratio: 3 / 4; background: #fff; }
.merch-img img { object-fit: contain; transition: transform 0.3s; }
.merch-img:hover img { transform: scale(1.03); }
.price { font-family: var(--display); color: var(--text) !important; font-size: 1.05rem !important; letter-spacing: 0.06em; }

/* Track list */
.tracks { list-style: none; padding: 0; margin: 20px 0 28px; counter-reset: t; }
.tracks li {
  counter-increment: t;
  display: flex; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tracks li::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--display);
  color: var(--signal);
  min-width: 2ch;
}

/* Album player: track list rows are buttons */
.player li { align-items: center; padding: 0; }
.player li::before { padding-block: 10px; }
.player button {
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.player button:hover { color: var(--signal); }
.player li span { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.player li.playing button { color: var(--signal); }
.player li.playing::before { content: "\25B6"; font-size: 0.75rem; }

#album-audio { width: 100%; margin-top: 4px; color-scheme: dark; }

/* Mailing list / callout */
.callout {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(244,201,138,0.10), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 56px 24px;
}
.callout p { color: var(--muted); max-width: 34em; margin: 0 auto 24px; }

/* Mailing-list signup (MailerLite form, restyled) */
.signup { max-width: 460px; margin: 0 auto; }
.signup form { margin: 0; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup .ml-field-group { flex: 1 1 220px; }
.signup input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus { outline: none; border-color: var(--signal); }
.signup .ml-error input[type="email"] { border-color: #e5484d; }
.signup .ml-form-embedSubmit { flex: 0 0 auto; }
.signup .ml-form-embedSubmit .btn { cursor: pointer; width: 100%; height: 100%; }
.callout .eyebrow { color: var(--signal); }
.signup .ml-form-embedSubmit .loading { opacity: 0.7; cursor: default; }
.signup .signup-thanks { color: var(--signal); margin: 0 auto; }
@media (max-width: 480px) { .signup .ml-form-embedSubmit { flex: 1 1 100%; } }

/* Lyrics page */
.lyrics-index { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.lyrics-index h2 { font-size: 1.2rem; }
.lyrics-index ol, .lyrics-index ul { margin: 0; padding-left: 1.4em; color: var(--muted); }
.lyrics-index li { padding: 3px 0; }
.lyrics .song { max-width: 36em; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.lyrics .song:last-child { border-bottom: 0; }
.lyrics .song h3 { font-size: 1.35rem; color: var(--signal); }
.lyrics .song p { margin: 0 0 1.3em; }
.lyrics .to-top { font-size: 0.85rem; color: var(--muted); }
.lyrics .to-top:hover { color: var(--signal); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 20px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--signal); }
