/* Shared redesign foundation: base, buttons, panels, headings and ambient embers.
   Loads after css/chrome.css (shared tokens, header, footer), then the page's own stylesheet
   (css/homepage.css, css/music.css). */
/* Orbitron and Cinzel are linked from each page's <head> (faster than an @import here, which the browser only finds after downloading this file). */

:root {
    color-scheme: dark;
    --surface: #0b0b10;
    --green: #85efb1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--text); font-family: 'Cinzel', Georgia, serif; font-size: 14px; line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
::selection { color: #fff; background: #6b275e; }
input { caret-color: var(--red); }
html { scrollbar-color: #55445e #08080c; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Ambient embers and cursor trail (js/site.js), ported from the original styles.css/script.js. Both layers
   float above the content (the redesign's opaque panels would hide them otherwise) and ignore pointer events. */
/* The page colour on <main> gives "screen"-blended effects (dividers, atmosphere) a backdrop to blend into. */
main { position: relative; z-index: 1; background: var(--page); }
.embers-layer, .trail-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.embers-layer { z-index: 20; }
.trail-layer { z-index: 30; }
.ember { position: absolute; bottom: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 120, 50, .8), rgba(200, 50, 150, .3)); box-shadow: 0 0 10px rgba(255, 100, 50, .6); animation: ember-rise linear infinite; }
@keyframes ember-rise {
    0% { transform: translate(0, 0); opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { transform: translate(var(--drift), -110vh); opacity: 0; }
}
.trail-particle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 50, 1), rgba(255, 100, 100, .5), transparent); box-shadow: 0 0 10px rgba(255, 120, 50, .8); transform: translate(-50%, -50%); animation: trail-fade 1.2s ease-out forwards; }
.trail-particle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 100, .3), transparent); transform: translate(-50%, -50%); }
@keyframes trail-fade {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, calc(-50% - 30px)) scale(.3); opacity: 0; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 49px; padding: 12px 22px; border: 1px solid var(--line); background: rgba(3,3,5,.72); color: #f8f4fa; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, border-color .2s; }
/* The one filled red style for primary actions: stream, origin story, signup. */
.button-ignite { align-self: end; min-height: 49px; border-color: #fb7971; background: #a52225; font-size: 12px; }
.button-ignite:hover { background: #c53132; }
.button-ignite:disabled { cursor: wait; opacity: .7; }
/* An action that exists but is switched off (for example a pre-save before its link is live): dimmed, no hover. */
.is-disabled { opacity: .45; cursor: not-allowed; }
.button-ignite.is-disabled:hover { background: #a52225; }
.play-icon { width: 25px; height: 25px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; }
.play-icon path { fill: currentColor; stroke: none; }
.play-icon .plus { fill: none; stroke: currentColor; }
/* Streaming icons: Spotify, Apple Music, YouTube Music, Amazon Music, each straight to the song or album.
   scripts/sync-links.mjs writes the links and the glyph sprite; pages set --stream-accent to tint them. */
.dsp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dsp-icon { width: 18px; height: 18px; }
.stream-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stream-icons-label { margin: 0; color: var(--stream-accent, #ff8a84); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.stream-icons-row { display: flex; gap: 8px; }
.stream-dsp { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--stream-accent, #ff8a84) 40%, transparent); border-radius: 50%; color: var(--stream-accent, #ff8a84); transition: color .2s, border-color .2s, background-color .2s; }
.stream-dsp:hover, .stream-dsp:focus-visible { border-color: var(--stream-accent, #ff8a84); background: color-mix(in srgb, var(--stream-accent, #ff8a84) 18%, transparent); color: #fff; }

/* Layout, framed panels and section headings */
.page-sections { width: min(1240px, 94%); margin: 0 auto; }
.frame { position: relative; border: 1px solid var(--line); background: linear-gradient(120deg, #0f0e14, #07070a 55%); }
.frame::before, .frame::after { content: ''; position: absolute; width: 29px; height: 12px; pointer-events: none; }
.frame::before { top: 5px; left: 5px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; opacity: .5; }
.frame::after { bottom: 5px; right: 5px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; opacity: .5; }
.section-heading { text-align: center; margin: 0 0 16px; }
.section-heading.is-left { text-align: left; margin: 0; }
/* One heading style across pages; violet is the standard (the archive keeps its green). */
.section-heading h2 { font-size: 21px; color: var(--violet); letter-spacing: .26em; text-transform: uppercase; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

/* Page hero for inner pages (music, unit, about): eyebrow, oversized metallic title, lede, mono stats. */
.page-hero { position: relative; isolation: isolate; width: min(1240px, 94%); margin: 0 auto; padding: 64px 0 44px; }
.page-hero::before { content: ''; position: absolute; z-index: -1; inset: -40px auto auto -8%; width: 70%; height: 120%; background: radial-gradient(ellipse at 30% 45%, rgba(211, 152, 246, .16), transparent 62%); pointer-events: none; }
.page-eyebrow { color: var(--violet); font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
/* Metallic fill echoes the chrome BLAZE-LACE wordmark; solid fallback colour keeps it readable without background-clip. */
.page-hero h1 { margin-top: 6px; color: #ece8f1; font-size: clamp(56px, 11vw, 148px); line-height: .92; letter-spacing: .03em; text-transform: uppercase; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .page-hero h1 { background: linear-gradient(180deg, #ffffff 0%, #ddd6e8 36%, #7d7590 52%, #f4f0f8 66%, #a59cb4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 28px rgba(211, 152, 246, .22)); }
}
.page-lede { max-width: 64ch; margin-top: 18px; color: #d6cfdc; font-size: 15px; line-height: 1.8; }
.page-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; color: var(--text); font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.page-stats span + span::before { content: '//'; margin-right: 22px; color: var(--violet); }

/* Four-colour energy divider (assets/effects/divider.webp): Ara's lightning, Yuri's crystal, Minji's wave,
   Hana's smoke, in member order. Painted on black, so "screen" drops the background; the ends fade out. */
.energy-divider { display: block; width: min(1400px, 100%); height: auto; margin: 0 auto; mix-blend-mode: screen; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@media (max-width: 1050px) {
    .button-ignite { gap: 10px; padding: 12px 15px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 12px; }
    .page-sections { width: 90%; }
    .section-heading h2 { font-size: 20px; }
    .section-heading p { font-size: 12px; letter-spacing: .16em; }
    .button-ignite { width: 100%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
