:root {
  --night: #05070f;
  --ink: #0b0e1a;
  --blood: #9c1a24;
  --blood-hot: #d23a3a;
  --bone: #eadfcb;
  --bone-dim: #a99f8d;
  --candle: #e9a24a;
  --line: rgba(234, 223, 203, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night); color: var(--bone);
  font: 20px/1.6 "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.display { font-family: "Cinzel Decorative", Georgia, serif; font-weight: 900; }

/* nav */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  background: linear-gradient(#05070fcc, transparent);
}
nav .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
nav .mark img { height: 30px; width: auto; display: block; }
nav .mark span { font-family: "Cinzel Decorative", serif; font-weight: 700; font-size: 15px; letter-spacing: .08em; }
nav ul { display: flex; gap: clamp(14px, 3vw, 34px); list-style: none; }
nav ul a { text-decoration: none; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); transition: color .2s; }
nav ul a:hover { color: var(--bone); }

/* hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 9vh, 96px);
  background:
    linear-gradient(0deg, #05070f 0%, #05070fcc 22%, #05070f00 55%),
    linear-gradient(90deg, #05070f99 0%, #05070f00 55%),
    url("./hero.jpg") 20% center / cover no-repeat, var(--night);
  overflow: hidden;
}
.hero-inner { max-width: 640px; animation: rise 1.4s ease-out both; }
.eyebrow { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--blood-hot); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 4.6vw, 76px); overflow-wrap: anywhere; line-height: .95; text-shadow: 0 4px 40px #000; }
h1 small { display: block; font-size: .32em; letter-spacing: .3em; font-weight: 700; color: var(--bone-dim); margin: 6px 0; }
.tag { margin: 24px 0 32px; font-size: clamp(20px, 2.4vw, 26px); font-style: italic; color: var(--bone); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 14px 34px; text-decoration: none;
  font: 700 15px "Cinzel Decorative", serif; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--blood); transition: all .25s;
}
.btn.primary { background: var(--blood); color: var(--bone); box-shadow: 0 0 36px #9c1a2466; }
.btn.primary:hover { background: var(--blood-hot); box-shadow: 0 0 56px #d23a3a88; transform: translateY(-2px); }
.btn.ghost { color: var(--bone-dim); border-color: var(--line); }
.btn.ghost:hover { color: var(--bone); border-color: var(--bone-dim); }
.btn:focus-visible, nav a:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.meta { margin-top: 22px; font-size: 15px; letter-spacing: .12em; color: var(--bone-dim); }
.scroll { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 28px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); writing-mode: vertical-rl; text-decoration: none; }
.scroll::after { content: ""; display: block; width: 1px; height: 54px; margin: 12px auto 0; background: var(--bone-dim); animation: drip 2.4s ease-in-out infinite; }

/* sections */
section { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px); }
.wrap { max-width: 1060px; margin: 0 auto; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 28px; }
h2::after { content: ""; display: block; width: 72px; height: 2px; background: var(--blood); margin-top: 16px; }
p + p { margin-top: 1em; }

.story { background: radial-gradient(ellipse 70% 80% at 80% 0%, #1a0b12 0%, var(--night) 70%); }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story blockquote { font-style: italic; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; color: var(--bone); border-left: 2px solid var(--blood); padding-left: 24px; }
.story p { color: #cfc5b2; }

.features { background: var(--ink); border-block: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.card { background: var(--ink); padding: 32px 28px; transition: background .3s; }
.card:hover { background: #12101c; }
.card .n { font: 700 13px "Cinzel Decorative", serif; letter-spacing: .3em; color: var(--blood-hot); }
.card h3 { font: 700 20px "Cinzel Decorative", serif; margin: 12px 0 10px; letter-spacing: .03em; }
.card p { font-size: 18px; color: var(--bone-dim); }

.play { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, #2a0c14 0%, var(--night) 70%); }
.play .wrap { max-width: 640px; }
.play h2::after { margin-inline: auto; }
.play p { color: var(--bone-dim); margin-bottom: 32px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0 0 40px; font-size: 17px; color: var(--bone-dim); }
kbd { font: 600 14px "Cormorant Garamond", serif; border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 9px; border-radius: 3px; color: var(--bone); margin-right: 6px; }

footer { padding: 36px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); text-align: center; font-size: 15px; letter-spacing: .1em; color: var(--bone-dim); }
footer .mark { height: 64px; width: auto; display: block; margin: 0 auto 20px; opacity: .9; }

/* theme song toggle */
.song {
  position: fixed; left: clamp(16px, 4vw, 48px); bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  font: 600 14px "Cormorant Garamond", serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone); background: #05070fcc; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; backdrop-filter: blur(6px); transition: border-color .2s;
}
.song:hover { border-color: var(--bone-dim); }
.song:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.song i { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.song i b { width: 3px; background: var(--blood-hot); height: 4px; }
.song.on i b { animation: eq 1s ease-in-out infinite; }
.song.on i b:nth-child(2) { animation-delay: -.3s; }
.song.on i b:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* embers */
#embers { position: absolute; inset: 0; pointer-events: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes drip { 0%, 100% { transform: scaleY(.3); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 760px) {
  nav ul { display: none; }
  .story .wrap { grid-template-columns: 1fr; }
  .hero { background:
    linear-gradient(0deg, #05070f 12%, #05070fcc 40%, #05070f00 75%),
    url("./hero.jpg") 12% center / cover no-repeat, var(--night); }
  .scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  #embers { display: none; }
}
