/* Death Takes It All landing page. Phone first; one breakpoint widens the layout. */
@font-face {
  font-family: 'Pirata One';
  src: url('fonts/PirataOne-Regular.ttf') format('truetype');
  font-display: block;
}

:root {
  --bg: #0b0807;
  --bg-2: #15100d;
  --line: #3a2a20;
  --text: #ece0cc;
  --muted: #bcab97;
  --gold: #ffc83a;
  --gold-hi: #fff0a8;
  --ember: #ff6a2a;
  --blood: #d42a1a;
  --display: 'Pirata One', 'Palatino Linotype', Georgia, serif;
  --body: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--gold); color: #1a0d05; padding: .5rem 1rem; font-weight: bold;
}
.skip:focus { top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 48px 16px 40px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 60% 40%; opacity: .55; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(11,8,7,.15) 0%, rgba(11,8,7,.7) 60%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(11,8,7,.35), rgba(11,8,7,0) 30%, rgba(11,8,7,.6) 75%, var(--bg));
}
.hero-inner { width: 100%; max-width: 760px; text-align: center; }

.logo { margin: 0 auto; width: min(100%, 680px); }
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo text {
  font-family: 'Pirata One', serif;
  font-size: 200px;
  text-anchor: middle;
  letter-spacing: 3px;
}
.lg-glow { animation: smoulder 5s ease-in-out infinite; }
@keyframes smoulder { 50% { opacity: .55; } }

.genre { margin: .75rem 0 0; display: flex; flex-direction: column; gap: .2rem; }
.genre-name {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.genre-decoder { color: var(--muted); font-style: italic; font-size: 1.05rem; }

.hook {
  margin: 1.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 8.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(255, 106, 42, .55), 0 2px 0 #3a0a08;
}

.cta { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.coming {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: var(--text);
}
.btn {
  display: inline-block;
  min-width: 14rem;
  padding: .8rem 1.4rem;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-align: center;
  color: #1a0d05;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--ember));
  border: 1px solid #ffdf80;
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(255, 106, 42, .35);
}
.btn:hover { color: #1a0d05; filter: brightness(1.08); }
.btn-ghost {
  color: var(--gold);
  background: rgba(11, 8, 7, .55);
  border-color: rgba(255, 200, 58, .55);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--gold-hi); background: rgba(40, 20, 10, .7); }
[hidden] { display: none !important; }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 56px 16px; }
h2 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--gold);
  text-align: center;
}
h3 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--gold-hi);
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0, 0, 0, .7), 0 0 60px rgba(212, 42, 26, .12);
}
.frame video, .frame iframe, .frame > a, .frame img { width: 100%; height: 100%; border: 0; object-fit: contain; }

.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.beat {
  position: relative;
  padding: 1.4rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, var(--bg-2), rgba(21, 16, 13, .4));
  border: 1px solid var(--line);
  border-top: 2px solid var(--ember);
}
.beat p { margin: 0 0 .7rem; }
.beat p:last-child { margin-bottom: 0; }
.beat strong { color: var(--gold); }
.beat-n {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: var(--ember);
  margin-bottom: .2rem;
}

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg-2);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 16px 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.small { margin: 0; font-size: .875rem; color: var(--muted); max-width: 40rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta .coming { flex-basis: 100%; }
}
@media (min-width: 900px) {
  .section { padding: 80px 24px; }
  .beats { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .genre-name { font-size: 1.9rem; }
  .genre-decoder { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-glow { animation: none; }
}
