/* Darlingside — Blood Moon Dreams */

:root {
  --bg: #0b0709;
  --bg-2: #140d13;
  --ink: #f4ede9;
  --muted: #b3a5b0;
  --faint: #6f6370;
  --line: rgba(244, 237, 233, 0.14);
  --blood: #ff3b6f;      /* magenta-red from the cover */
  --blood-deep: #c4174a;
  --violet: #a06cff;
  --indigo: #343a8c;
  --font: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* film grain over everything, echoing the halftone collage */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--blood); color: #fff; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.caps {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 8px 14px;
}
.skip:focus { left: 8px; }

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

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(11, 7, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.55em;
  font-size: 0.85rem;
  margin-right: -0.55em;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.menu-btn {
  display: none;
  background: none; border: 0; color: var(--ink);
  font: inherit; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem;
  padding: 8px 0; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .wordmark, .menu-btn { position: relative; z-index: 1; }
  .nav {
    position: fixed; inset: 0; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: rgba(11, 7, 9, 0.97);
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .nav a { font-size: 1rem; color: var(--ink); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the fixed overlay size to the header instead of the viewport */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--blood); border-color: var(--blood); color: #fff; }
.btn-primary:hover { background: #fff; border-color: #fff; color: var(--blood-deep); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 110px var(--gutter) 80px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8%; z-index: -2;
  background: url("../img/art-b-1200.jpg") center / cover no-repeat;
  filter: blur(48px) saturate(1.3);
  opacity: 0.55;
  transform: scale(1.1);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 30% 50%, transparent 0%, rgba(11, 7, 9, 0.6) 70%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(11, 7, 9, 0.2), var(--bg) 96%);
}
.hero-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.cover {
  position: relative;
  aspect-ratio: 1;
  box-shadow: 0 40px 120px -20px rgba(255, 59, 111, 0.35), 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy { animation: fade 1.4s 0.3s both; }
.eyebrow { color: var(--blood); margin: 0 0 22px; }
.title-lockup { margin: 0; }
.title-lockup img { width: 100%; max-width: 560px; height: auto; }
.release {
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 1.05rem;
}
.release strong { color: var(--ink); font-weight: normal; letter-spacing: 0.08em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown {
  display: flex; gap: 22px; margin: 0 0 30px; padding: 0; list-style: none;
}
.countdown li { text-align: center; min-width: 52px; }
.countdown b {
  display: block; font-weight: normal; font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.countdown span { color: var(--faint); font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; }
.countdown[hidden] { display: none; }

@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cover { width: min(440px, 100%); margin-inline: auto; }
  .title-lockup img { margin-inline: auto; }
  .cta, .countdown { justify-content: center; }
}

@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .cover, .hero-copy { animation: none; }
}

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

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  margin: 0;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}
.section-head p { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* Album: a single centred column of text over the art-b image */
#album {
  background:
    linear-gradient(rgba(11, 7, 9, 0.7), rgba(11, 7, 9, 0.88)),
    url("../img/art-b-1200.jpg") center / cover;
}
.album-solo { max-width: 720px; text-align: center; }
.album-solo .about p { margin-inline: auto; }
.album-solo .platforms { justify-content: center; margin-top: 36px; }
.about p { color: var(--muted); margin: 0 0 1.1em; max-width: 58ch; }
.about p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.about p { text-wrap: pretty; }
.about a { color: var(--ink); text-decoration-color: var(--blood); text-underline-offset: 4px; white-space: nowrap; }
.about a:hover { color: var(--blood); }
.placeholder { outline: 1px dashed rgba(255, 59, 111, 0.6); outline-offset: 6px; }

/* Streaming / pre-save buttons (in the album section) */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shows */
.shows-widget { min-height: 160px; }
/* Seated widget theming — keeps it on-palette */
#seated-55fdf2c0 { font-family: var(--font) !important; color: var(--ink); }
#seated-55fdf2c0 .seated-event-row { border-color: var(--line) !important; padding-block: 18px !important; }
#seated-55fdf2c0 .seated-event-link,
#seated-55fdf2c0 .seated-follow-link {
  background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important;
  border-radius: 0 !important; letter-spacing: 0.2em !important; font-family: var(--font) !important;
}
#seated-55fdf2c0 .seated-event-link:hover,
#seated-55fdf2c0 .seated-follow-link:hover { background: var(--blood) !important; border-color: var(--blood) !important; }
.shows-fallback { color: var(--muted); }

/* Signup */
.signup {
  text-align: center;
  background:
    linear-gradient(rgba(11, 7, 9, 0.75), rgba(11, 7, 9, 0.9)),
    url("../img/art-c-1200.jpg") center / cover;
}
.signup .section-head p { margin-inline: auto; }
.signup-form {
  display: flex; gap: 12px; max-width: 680px; margin: 0 auto;
}
.signup-form input {
  flex: 1; min-width: 0; min-height: 48px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ink);
  color: var(--ink); font: inherit; font-size: 16px;
}
.signup-form #zip { flex: 0 0 10em; }
.signup-form button { flex: none; padding-inline: 32px; }
.signup-form input::placeholder { color: var(--faint); }
.form-note { color: var(--faint); font-size: 0.8rem; margin-top: 14px; }
@media (max-width: 600px) {
  .signup-form { flex-direction: column; gap: 10px; }
  .signup-form #zip { flex: none; }
}

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px;
}
.contact-grid h3 { margin: 0 0 10px; font-weight: normal; color: var(--blood); }
.contact-grid p { margin: 0; color: var(--muted); }
.contact-grid p + p { margin-top: 14px; }
.contact-grid a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 4px; }
.contact-grid a:hover { text-decoration-color: var(--blood); }

/* Footer */
.site-footer {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
}
.socials { display: flex; justify-content: center; gap: 22px; margin: 0 0 26px; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); transition: color 0.2s; }
.socials a:hover { color: var(--blood); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 18px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Lyrics page ---------- */

.page-hero {
  padding: 150px 0 50px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: url("../img/cover-600.jpg") center / cover;
  filter: blur(60px) saturate(1.2); opacity: 0.35;
}
.page-hero img { width: min(460px, 86%); margin: 18px auto 0; }
.page-hero h1 { margin: 0; font-weight: normal; }

.lyrics-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 6vw, 88px); padding-bottom: 120px;
}
.lyric-index { position: sticky; top: 96px; align-self: start; }
.lyric-index ol { list-style: none; margin: 0; padding: 0; }
.lyric-index a {
  display: block; padding: 7px 0; text-decoration: none; color: var(--muted); font-size: 0.92rem;
  transition: color 0.2s;
}
.lyric-index a:hover, .lyric-index a.active { color: var(--ink); }
.lyric-index .soon { display: block; padding: 7px 0; color: var(--faint); font-size: 0.92rem; }
.page-hero .album-note { color: var(--blood); margin: 18px 0 0; font-size: 0.9rem; }
.lyric-index a.active .num { color: var(--blood); }
.lyric-index .num { color: var(--faint); font-size: 0.78rem; margin-right: 8px; font-variant-numeric: tabular-nums; }

.song { padding: 48px 0; border-bottom: 1px solid var(--line); }
.song:first-child { padding-top: 8px; }
.song h2 {
  margin: 0 0 26px; font-weight: normal;
  text-transform: uppercase; letter-spacing: 0.26em; font-size: 1.05rem;
}
.song h2 .num { color: var(--blood); margin-right: 12px; letter-spacing: 0.1em; }
.song p { margin: 0 0 1.3em; color: #e2d8d6; line-height: 1.75; }
.song .instrumental { color: var(--faint); font-style: italic; }

.lyrics-archive { text-align: center; padding: 0 0 100px; color: var(--muted); }

@media (max-width: 860px) {
  .lyrics-layout { grid-template-columns: 1fr; }
  .lyric-index { position: static; }
  .lyric-index ol { columns: 2; column-gap: 20px; }
}

/* ---------- Lyrics index + album pages ---------- */

.eyebrow-sm { display: block; color: var(--blood); margin-bottom: 14px; }
.album-name {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.2;
}

.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding: 20px 0 120px;
}
.album-card { border-top: 1px solid var(--line); padding-top: 22px; }
.album-card .meta { color: var(--faint); margin: 0 0 8px; font-size: 0.68rem; }
.album-card h2 {
  margin: 0 0 16px; font-weight: normal;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 1.05rem;
}
.album-card h2 a { text-decoration: none; }
.album-card h2 a:hover { color: var(--blood); }
.album-card ol { list-style: none; margin: 0; padding: 0; }
.album-card li { padding: 4px 0; font-size: 0.95rem; }
.album-card li a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.album-card li a:hover { color: var(--ink); }
.album-card li span { color: var(--faint); }
.album-card.upcoming { border-top-color: var(--blood); }
.album-card .album-note { color: var(--blood); margin: -6px 0 14px; font-size: 0.9rem; }

.album-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end;
  padding: 0 0 100px;
}
.album-pager a { text-decoration: none; color: var(--ink); }
.album-pager a:hover { color: var(--blood); }
.album-pager .caps { display: block; color: var(--faint); font-size: 0.66rem; margin-bottom: 6px; }
.album-pager a:last-child { text-align: right; }
.album-pager .all { text-align: center; }
.album-pager .all .caps { color: var(--muted); margin: 0; }
