/* FABS — primary theme and full-screen chapters.
   Every visual value is customizable; no CSS frameworks required. */
:root {
  color-scheme: dark;
  --black: #000; --red: #f00000; --lion-red: #ff0000;
  --white: #fff; --pink: #ff46ba; --purple: #a04aff; --green: #3dfb73;
  --font-display: Rockwell, 'Roboto Slab', 'DejaVu Serif', Georgia, serif;
  --font-body: 'DejaVu Sans', Arial, Helvetica, sans-serif;
  --nav-height: 3.65rem; --chapter-rule: 3px;
  --chapter-gutter: clamp(1rem, 3vw, 4rem);
  --letter-width: clamp(2.8rem, 6vw, 4.25rem);
  --chapter-min: 100svh;
  --intro-duration: 5000ms;
  --scroll-behavior: smooth;
}
* {box-sizing: border-box}
html {scroll-behavior: var(--scroll-behavior); background:var(--black)}
body {margin:0; background:var(--black);color:var(--white);font-family:var(--font-body);overflow-x:hidden}
button, a { -webkit-tap-highlight-color: transparent }
button {font:inherit;cursor:pointer}
a {color:inherit}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--pink);outline-offset:4px}
.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}
/* Fixed header overlays chapters; chapters remain exactly one viewport high. */
.site-header {position:fixed;z-index:100;top:0;left:0;right:0;height:var(--nav-height);display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#040404;border-bottom:var(--chapter-rule) solid var(--red);padding:0 var(--chapter-gutter);transition:opacity .4s ease,visibility .4s ease}
.wordmark{font-family:var(--font-display);font-weight:1000;color:var(--red);font-size:clamp(1.5rem,2.8vw,2.55rem);text-decoration:none;line-height:1}
.main-nav{display:flex;align-items:stretch;justify-content:space-between;flex:1;max-width:800px;height:100%}
.main-nav a{display:flex;align-items:center;justify-content:center;min-width:clamp(2.6rem,7vw,6rem);font-family:var(--font-display);font-size:clamp(1.2rem,1.9vw,1.7rem);font-weight:900;line-height:1;text-decoration:none;border-left:2px solid var(--red);transition:background .2s,color .2s}
.main-nav a:first-child{border-left:0}
.main-nav a:hover,.main-nav a.active{background:var(--red);color:var(--white)}
.menu-toggle {display:none;border:0;background:transparent;width:3rem;height:3rem;padding:.6rem}
.menu-toggle span {display:block;height:3px;background:white;margin:.33rem 0}
/* Parts are hidden before the deferred animation initializes, preventing a
   one-frame flash of the fully assembled artwork on slower devices. */
.js:not(.intro-complete) .anarcholion .lion-part{opacity:0}
/* Initially only A exists visually. Keep non-JS fallback usable. */
.js:not(.intro-complete) .site-header {opacity:0;visibility:hidden;pointer-events:none}
.js:not(.intro-complete) .chapter:not(#chapter-a){display:none}
/* ASCII control language: consistent across animation and music controls.
   Native title tooltips appear on hover; aria-labels support assistive tech. */
.ascii-button{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:900;letter-spacing:.05em;line-height:1;min-width:2.7rem;min-height:2.7rem;background:#170000;color:#fff;border:1px solid #ad0000;padding:.5rem .7rem}
.ascii-button:hover{background:#b40000;border-color:#ff5252}
.skip-intro{position:fixed;bottom:clamp(1rem,5vh,2.25rem);right:clamp(1rem,4vw,2rem);z-index:101;display:none}
.skip-intro:hover{border-color:var(--red);background:#610000}
.replay-intro{position:absolute;z-index:3;right:clamp(1rem,4vw,2rem);bottom:clamp(1rem,5vh,2.25rem);display:none}
.js.intro-complete #chapter-a .replay-intro{display:block}
/* Do not show an animation-only control for visitors who prefer reduced motion. */
@media (prefers-reduced-motion:reduce){.replay-intro{display:none!important}}
.intro-complete .skip-intro,.no-js .skip-intro{display:none}
/* Each chapter has an exact viewport height. Inner text areas scroll if needed. */
.chapter{height:100vh;height:100dvh;position:relative;background:var(--black);border-bottom:var(--chapter-rule) solid var(--red);overflow:hidden;isolation:isolate;scroll-snap-align:start;scroll-snap-stop:normal}
#chapters{scroll-snap-type:y proximity}
.chapter-letter{position:absolute;top:calc(var(--nav-height) + clamp(.65rem,2.5vh,1.8rem));left:clamp(.65rem,2.5vw,1.8rem);z-index:2;background:var(--red);color:var(--white);font-family:var(--font-display);font-weight:1000;font-size:clamp(1.6rem,3.4vw,3.6rem);line-height:1;padding:.12em .18em;border-bottom:4px solid #ff2f2f;box-shadow:0 .42rem 0 -2px var(--black)}
.chapter-body{height:100%;width:100%;min-width:0;padding:calc(var(--nav-height) + clamp(.5rem,2vh,1.2rem)) var(--chapter-gutter) clamp(.65rem,1.5vh,1.5rem) calc(var(--chapter-gutter) + var(--letter-width));display:flex;justify-content:center;align-items:center}
/* A: SVG is live in the page (not an <img>) to expose all the lion parts. */
.chapter--lion{display:grid;place-items:center}
.lion-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:1.25rem clamp(2.5rem,9vw,8rem)}
.anarcholion{height:min(88dvh, 88%);width:min(90vw,850px);max-width:100%;color:var(--lion-red);overflow:visible;object-fit:contain}
.anarcholion .lion-part{transform-box:fill-box;transform-origin:center;will-change:transform,opacity}
.anarcholion.ignition{animation:lion-ignite .95s ease-out both}
/* N: copied orientation of the original αναρχια.ελ rule, red lower-left and black upper-right. */
.chapter--flag { background:linear-gradient(to top right, red 50%, black 50%); }
.chapter-body--flag {padding-left:var(--chapter-gutter);flex-direction:column;text-align:center;gap:clamp(.4rem,1.6vh,1.3rem);text-shadow:0 2px 12px #000,0 2px 2px #000}
.fabs-masthead,.display-title,.player-head h2 {font-family:var(--font-display);font-weight:1000;line-height:1.06;letter-spacing:.01em}
.fabs-masthead{font-size:clamp(3.8rem,12vw,10rem);margin:0}
.band-subtitle{font-family:var(--font-display);font-weight:900;font-size:clamp(.85rem,2.15vw,1.9rem);line-height:1.25;margin:0}
.band-genre{font-size:clamp(.85rem,2.2vw,1.75rem);font-style:italic;margin:.15rem 0 0}
/* Band and album use no artificial frames; whitespace only as layout. */
.split-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1rem,4vw,4.25rem);align-items:center}
.band-portrait,.album-art{margin:0;min-height:0;max-width:100%;display:flex;justify-content:center;align-items:center}
.band-portrait img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - var(--nav-height) - 2rem);object-fit:contain;display:block}
.band-copy,.album-copy{text-align:center;min-width:0}
.display-title{font-size:clamp(1.85rem,4.2vw,5.25rem);margin:0;overflow-wrap:normal;text-wrap:balance}
.midline{font-family:var(--font-display);font-size:clamp(.85rem,1.6vw,1.6rem);font-weight:900;padding:.6rem 0;margin:1.05rem auto .7rem;border-top:3px solid var(--red);border-bottom:3px solid var(--red);max-width:28rem}
.small-caps{font-size:clamp(.7rem,1.25vw,1.2rem);letter-spacing:.04em;font-weight:800;line-height:1.35}
.translation{font-style:italic;font-size:clamp(.85rem,1.4vw,1.25rem);line-height:1.35}
.album-art img{display:block;max-height:calc(100dvh - var(--nav-height) - 2rem);max-width:100%;width:auto;object-fit:contain;border:0;box-shadow:none}
.album-copy .display-title{font-size:clamp(1.8rem,3.8vw,4.8rem)}
.title-rule{height:4px;background:var(--red);width:78%;margin:1.4rem auto 0}
/* K: a purely graphic player until explicitly activated; table scrolls internally. */
.player-layout{flex-direction:column;align-items:stretch;justify-content:center;gap:clamp(.65rem,2vh,1.35rem);padding-right:clamp(1rem,4vw,4rem);max-width:1600px;margin:auto}
.player-head{text-align:center}
.player-head h2{font-size:clamp(.95rem,2.3vw,2.1rem);margin:0 auto .35rem;line-height:1.18}
.player-head p{font-family:var(--font-display);font-weight:900;color:var(--red);font-size:clamp(1.2rem,3vw,2.7rem);margin:0}
.player-interface{display:flex;flex-direction:column;min-height:0;flex:1;max-height:min(74dvh,820px)}
.transport{display:flex;align-items:center;gap:clamp(.35rem,1vw,.8rem);flex-shrink:0;min-height:3.4rem}
.control{border:0;background:transparent;color:#fff;padding:.45rem;font-size:clamp(1rem,2vw,1.6rem);line-height:1}
.control:hover{color:var(--red)}
.control--play{background:var(--red);color:#fff;min-width:3.1rem;min-height:2.8rem}
.control--play:hover{background:#ac0000;color:#fff}
.player-time{white-space:nowrap;font-size:clamp(.68rem,1.1vw,1rem);font-weight:700}
.player-progress{flex:1;height:.55rem;background:#777;min-width:0;position:relative;border-radius:50px;overflow:hidden}
.player-progress span{display:block;height:100%;background:var(--red);width:0;transition:width .15s linear}
.player-state{font-size:clamp(.67rem,1vw,.85rem);color:#ccc;min-width:0;white-space:nowrap;max-width:16ch;overflow:hidden;text-overflow:ellipsis}
.track-scroll{min-height:0;overflow-y:auto;overflow-x:auto;scrollbar-color:#c30000 #141414;scrollbar-width:thin;overscroll-behavior:contain}
.track-table{border-collapse:collapse;width:100%;table-layout:fixed;color:var(--white);font-size:clamp(.77rem,1.45vw,1.15rem)}
.track-table th,.track-table td{padding:clamp(.35rem,.9vh,.7rem) .7rem;border-bottom:1px solid #666;vertical-align:middle;text-align:left}
.track-table th{background:#790000;position:sticky;top:0;z-index:1;letter-spacing:.055em;font-size:clamp(.75rem,1.2vw,1.15rem)}
.track-table th:first-child,.track-table td:first-child{width:3.8rem;text-align:center}
.track-table th:last-child,.track-table td:last-child{width:8rem;text-align:right}
.track-table tr.current{background:var(--red)}
.track-table tr:not(.current):hover{background:#2b0000}
.track-button{background:none;color:inherit;border:0;font-size:inherit;text-align:left;font-weight:700;padding:0;line-height:1.3;width:100%}
.track-button:hover{text-decoration:underline}
.track-number,.duration-cell{font-variant-numeric:tabular-nums}
.player-credit{text-align:center;font-size:clamp(.68rem,1vw,.82rem);color:#bbb;margin:0}
.player-credit a{color:#fff;text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:3px}
.player-credit a:hover{color:var(--pink)}
/* I: white finale; longer text scrolls *inside* this one-viewport panel. */
.chapter--info{color:var(--black);background:#fff;border-bottom:0}
.chapter--info .chapter-letter{box-shadow:none}
.info-layout{padding-right:clamp(1rem,4vw,4rem);min-height:0}
.info-scroll{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:safe center;align-items:center;text-align:center;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;gap:clamp(.65rem,2vh,1.3rem);padding:0 clamp(.2rem,2vw,2rem) .8rem}
.info-lead,.info-outro,.history-links{width:100%;max-width:1000px;font-family:var(--font-body);font-weight:750;font-size:clamp(.86rem,1.35vw,1.35rem);line-height:1.32}
.info-lead p,.info-outro p,.history-links p{margin:.24em auto}
.info-emphasis{letter-spacing:.01em}
.history-links{color:#c40000;font-weight:850}
.history-links a{color:#bb0000;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;transition:color .18s ease,text-decoration-color .18s ease}
.history-links a:hover{color:#ff2255;text-decoration-color:#ff2255}
/* Official YouTube player. It is visible when playing, including when docked.
   The video iframe itself remains unobstructed. This is NOT audio-only playback. */
.video-shade:not([hidden]){position:fixed;inset:0;z-index:198;background:#000c}
.video-dialog{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);z-index:199;margin:0;color:#fff;background:#080808;border:2px solid var(--red);max-height:94dvh;max-width:min(960px,96vw);width:100%;padding:clamp(.65rem,2vw,1rem);overflow:auto;box-shadow:0 1rem 4rem #000b}
.video-dialog::backdrop{display:none}
.dialog-bar,.dialog-controls,.dialog-tools{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.dialog-bar h2{margin:0;font-family:var(--font-display);font-size:clamp(.85rem,1.8vw,1.45rem)}
.dialog-tools{justify-content:flex-end;flex-shrink:0}
.dialog-tools .ascii-button{min-width:2.4rem;min-height:2.4rem}
.dialog-controls button{background:#a50000;color:#fff;border:1px solid #f33;padding:.45rem .8rem;font-weight:800;font-family:ui-monospace,monospace}
.dialog-controls button:hover{background:#f00}
.now-playing{margin:.55rem 0;font-weight:700;font-size:clamp(.72rem,1.15vw,1rem)}
.youtube-frame{width:100%;min-height:200px;aspect-ratio:16/9;background:#161616;display:grid;place-items:center}
.youtube-frame iframe{display:block;width:100%;height:100%;border:0;min-height:200px}
.dialog-controls{justify-content:center;flex-wrap:wrap;margin-top:.65rem}
.dialog-note{font-size:.75rem;color:#ccc;margin-bottom:0}
.dialog-note a{color:#fff;text-decoration-color:var(--red)}
/* Dock is a visible, actionable mini-player rather than a concealed audio iframe.
   On narrow screens width still permits a minimum 200px high video area. */
.video-dialog.is-docked{top:auto;left:auto;right:max(.55rem,env(safe-area-inset-right));bottom:max(.55rem,env(safe-area-inset-bottom));transform:none;width:min(360px,calc(100vw - 1.1rem));max-height:75dvh;padding:.55rem;overflow:auto}
.video-dialog.is-docked .youtube-frame{min-height:200px;aspect-ratio:16/9}
.video-dialog.is-docked .dialog-bar h2{font-size:.8rem}
.video-dialog.is-docked .now-playing{font-size:.7rem;margin:.3rem 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-dialog.is-docked .dialog-controls,.video-dialog.is-docked .dialog-note{display:none}
@media (max-width:380px){.video-dialog.is-docked .youtube-frame{min-height:200px}}
/* During the opening do not scroll into hidden chapters. */
.js:not(.intro-complete) body{overflow:hidden}
.skip-intro{display:none}
.js:not(.intro-complete) .skip-intro{display:block}
html{scroll-snap-type:y proximity}
