/* Muugart, next. Same visual language as the journey edition of Burning
   Rainbow: the artwork carries the page, type is quiet, one stage width. */
:root {
  --serif: "TeX Gyre Pagella", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sign: "Barlow Semi Condensed", Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --bg: #0b0d14; --ink: #efe9df; --soft: #a9a59c; --accent: #ffb86b; --card: #141824;
  --stage: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2 { font-family: var(--sign); font-weight: 700; font-stretch: 78%; text-transform: uppercase; line-height: .92; margin: 0; }
h2 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.eyebrow { font-family: var(--sign); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.lede { font-size: 1.12em; margin: 1rem 0 0; max-width: 34rem; }
.small { font-family: var(--sign); font-size: .78rem; letter-spacing: .06em; color: var(--soft); margin: 1.2rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 0; }
.actions.center { justify-content: center; }
.actions[hidden] { display: none; }
.btn { display: inline-block; font-family: var(--sign); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px; background: var(--accent); color: #17100a; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
.btn:hover { filter: brightness(1.12); }
.credit { position: absolute; right: 1rem; bottom: .8rem; margin: 0; font-family: var(--sign); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(1rem, calc(50% - var(--stage) / 2)); background: rgba(11, 13, 20, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--sign); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.top a { color: var(--ink); text-decoration: none; }
.top-brand { font-weight: 700; letter-spacing: .24em; }
.top-nav { display: flex; gap: 1.4rem; }
.top-nav a { opacity: .78; }
.top-nav a:hover { opacity: 1; color: var(--accent); }

.hero { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; padding: 0 max(1.25rem, calc(50% - var(--stage) / 2)) 14vh; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: drift 60s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,13,20,.25), transparent 30%, rgba(11,13,20,.55) 70%, var(--bg)); }
.hero-in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(4rem, 17vw, 12rem); letter-spacing: -.01em; }
.hero-line { font-size: 1.2em; margin: 1rem 0 0; max-width: 30rem; }
.hero-welcome { font-family: var(--sign); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 1.4rem 0 0; }
.hero-welcome + .actions { margin-top: 1rem; }
.hero .credit { z-index: 1; }

.band { position: relative; max-width: var(--stage); margin: 0 auto; padding: clamp(4rem, 12vh, 8rem) 1.25rem; }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.cover3d { border: 0; padding: 0; background: none; cursor: pointer; perspective: 1600px; aspect-ratio: 2 / 3; width: 100%; }
.cover3d-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3,.7,.2,1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.cover3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; border-radius: 2px 4px 4px 2px; }
.cover3d .cover-back { transform: rotateY(180deg); }
.cover3d.turned .cover3d-in { transform: rotateY(180deg); }
.cover3d:hover .cover3d-in { transform: rotateY(-8deg); }
.cover3d.turned:hover .cover3d-in { transform: rotateY(188deg); }
.book:nth-child(even) .cover3d, .book:nth-child(even) .book-art { order: 2; }
.home-empty { max-width: var(--stage); margin: 0 auto; padding: 6rem 1.25rem; color: var(--soft); }
.book-art { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.book-art img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s; }
.book:hover .book-art img { scale: 1.05; }

.band-head { margin-bottom: 2.2rem; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 13vw, 150px); grid-auto-flow: dense; gap: 6px; }
.mosaic a { overflow: hidden; display: block; }
.mosaic a:nth-child(1), .mosaic a:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4), .mosaic a:nth-child(11) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transition: scale .8s, filter .5s; }
.mosaic a:hover img { scale: 1.08; filter: none; }

.music, .magnus { max-width: none; padding-left: max(1.25rem, calc(50% - var(--stage) / 2)); padding-right: max(1.25rem, calc(50% - var(--stage) / 2)); overflow: hidden; }
.band-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .22; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.music-in { position: relative; }
.tracks { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: t; max-width: 40rem; }
.tracks li { counter-increment: t; display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .6rem 1rem; padding: .9rem 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.12); }
.tracks li::before { content: counter(t, decimal-leading-zero); font-family: var(--sign); font-size: .8rem; letter-spacing: .1em; color: var(--accent); }
.track-title { font-family: var(--sign); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.tracks a.go { font-family: var(--sign); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.tracks audio { grid-column: 2 / -1; width: 100%; height: 36px; }
.tracks a.go[data-play] { color: #17100a; background: var(--accent); border-radius: 2px; padding: .5rem 1rem .5rem .8rem; }
.tracks a.go[data-play]::before { content: ""; display: inline-block; margin-right: .5rem; border-left: .55rem solid currentColor; border-top: .35rem solid transparent; border-bottom: .35rem solid transparent; }
.tracks button.go { font-family: var(--sign); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #17100a; background: var(--accent); border: 0; border-radius: 2px; padding: .5rem 1rem .5rem .8rem; cursor: pointer; }
.tracks button.go::before { content: ""; display: inline-block; margin-right: .5rem; border-left: .55rem solid currentColor; border-top: .35rem solid transparent; border-bottom: .35rem solid transparent; }
.tracks [hidden] { display: none; }
.seek { grid-column: 2 / -1; display: flex; align-items: center; gap: .9rem; }
.seek-bar { flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) center / 100% 2px no-repeat; }
.seek-bar i { display: block; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); position: relative; }
.seek-bar i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.seek-time { font-family: var(--sign); font-size: .72rem; letter-spacing: .08em; color: var(--soft); min-width: 5.5rem; text-align: right; }
.tracks li.playing .track-title { color: var(--accent); }
.sc-frame { grid-column: 1 / -1; width: 100%; height: 120px; border: 0; border-radius: 3px; }

.magnus { display: grid; }
.magnus-in { position: relative; max-width: 38rem; }
.magnus .band-art { opacity: .3; }
.magnus h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.magnus p { margin: 1.1rem 0 0; }
.draft { display: inline-block; font-family: var(--sign); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; padding: .25rem .6rem; background: #7a2e12; color: #fff; margin-top: 1.4rem; }

.foot { text-align: center; padding: 4rem 1.25rem 5rem; color: var(--soft); font-size: .95em; }
.foot p { margin: 0 auto; max-width: 36rem; }

.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 1s, translate 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@keyframes drift { from { scale: 1; } to { scale: 1.12; translate: -1.5% 1%; } }
@media (max-width: 720px) {
  .book { grid-template-columns: 1fr; }
  .book-art { aspect-ratio: 16 / 10; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .top-nav { gap: .9rem; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; translate: none; } html { scroll-behavior: auto; } }
