/* Contemporary typography and a uniform black canvas with archive gold accents. */
:root{--ui-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--surface:var(--bg);--edge:var(--gold);--radius:12px}
body{font-family:var(--ui-font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select{font-family:var(--ui-font)}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.archive-header{border-bottom-color:var(--gold)}
:is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header{height:auto;min-height:144px;padding:27px 5%}
:is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand{width:100%;max-width:1180px;justify-content:space-between;gap:32px}
:is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand>span{flex:1;min-width:0;font:500 clamp(25px,3.05vw,46px)/1.2 Georgia,serif;letter-spacing:.065em;white-space:nowrap}
:is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand .aquila{width:clamp(64px,7vw,108px);height:68px}
:is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand small{font:9px/1.5 var(--ui-font);letter-spacing:.36em;margin-top:12px;color:var(--gold)}
.home-page .hero{min-height:650px}
.home-page .hero-content{width:100%;max-width:1120px;padding:72px 5% 90px}
.home-page .hero h1{font-size:clamp(64px,6.7vw,104px);line-height:1.02;letter-spacing:-.045em;margin:0 0 30px}
.home-page .hero h1>span{display:block}
.home-page .hero h1 em{color:var(--gold)}
.home-page .hero .intro{max-width:490px;font:15px/1.85 var(--ui-font);color:#b9b9ac}
.home-page .hero-art{filter:saturate(.75)}
.hero-comparison{border-radius:8px;background:var(--gold);box-shadow:0 5px 22px #0003;padding:18px 24px;font:600 12px/1.5 var(--ui-font);letter-spacing:.035em}
.hero-comparison small{font:11px/1.5 var(--ui-font);letter-spacing:0;margin-top:4px}
.hero-comparison:hover{background:#d8bd8d;box-shadow:0 8px 30px #0004}
.eyebrow{font-family:var(--ui-font);font-weight:600;letter-spacing:.19em}
.legion-symbols{padding-block:22px;gap:8px 12px}
.legion-symbol{border-radius:8px;padding:12px 4px}
.legion-symbol:hover{background:var(--bg);border-color:var(--gold)}
.symbol-name{font-family:var(--ui-font);font-size:9px;letter-spacing:.025em}
.archive{padding-top:82px;padding-bottom:82px}
.section-heading{align-items:center;margin-bottom:32px}
.section-heading h2{letter-spacing:-.035em}
.section-heading>p{font:13px/1.85 var(--ui-font);max-width:300px}
.controls{align-items:center;padding-bottom:22px;gap:24px;border-bottom-color:var(--line)}
.filters{display:flex;gap:4px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.filters button{min-height:40px;padding:9px 16px;border:1px solid transparent;border-radius:6px;color:#aeb2a1;font:500 12px/1.4 var(--ui-font);white-space:nowrap;transition:background .18s,color .18s,border-color .18s}
.filters button.active{color:var(--paper);border-color:var(--gold);background:var(--bg)}
.filters button:hover{color:var(--paper);background:var(--bg)}
.filters span{font:10px var(--ui-font);padding:2px 5px;border-radius:4px;background:var(--bg);margin-left:5px}
.search{gap:10px;padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:52px;transition:border-color .18s}
.search:focus-within{border-color:var(--gold)}
.search input{font:13px var(--ui-font);width:220px;padding:14px 0;outline:none}
.search input::placeholder{color:#949989}
.archive-meta{font:9px/1.5 var(--ui-font);letter-spacing:.13em;margin:22px 0}
#grid{gap:24px}
.card{border-radius:var(--radius);border-color:var(--edge);background:var(--surface);box-shadow:0 4px 18px #0002;transition:transform .2s,border-color .2s,box-shadow .2s}
.card:hover{border-color:var(--gold);transform:translateY(-3px);box-shadow:0 12px 28px #0004}
.portrait{height:265px}
.portrait img{filter:saturate(.8);transition:transform .4s,filter .3s}
.card:hover .portrait img{transform:scale(1.035);filter:saturate(1)}
.portrait:after{background:linear-gradient(0deg,var(--surface),transparent 50%)}
.badge{top:16px;right:16px;border:1px solid var(--gold);border-radius:5px;padding:5px 8px;background:var(--bg);font:700 10px/1.5 var(--ui-font);letter-spacing:.12em}
.card-copy{padding:8px 23px 23px}
.card h3{font-size:27px;letter-spacing:-.025em;line-height:1.2;margin-bottom:9px}
.legion{font:600 9px/1.5 var(--ui-font);letter-spacing:.14em}
.card-bottom{font:10px/1.6 var(--ui-font);gap:12px;margin-top:21px;padding-top:16px}
.card-bottom>span:last-child{font-size:9px;letter-spacing:.06em;color:var(--gold);white-space:nowrap}
.sealed-record{border-radius:var(--radius);margin-top:32px}
.chapters article{padding:27px 0}
.history-link p{font-family:var(--ui-font);line-height:1.85}
.record-link{font-family:var(--ui-font);font-weight:600;letter-spacing:.1em}
.page-breadcrumb{font-family:var(--ui-font);padding-block:20px}
.archive-figure,.battle-figure,.cinematic-figure,.heraldry-figure,.weapon-card,.book-record{border-radius:10px;overflow:hidden}
.weapon-thumbnail{border-radius:7px;overflow:hidden}
.chapter-index a{font-family:var(--ui-font);transition:color .18s}
.bio-facts{gap:32px}
.sources>div{gap:20px}
footer{font-family:var(--ui-font)}

/* Full-body cinematic art replaces the old cropped comparison portraits. */
.compare-intro{padding-top:65px;padding-bottom:35px;background:var(--bg)}
.compare-intro h1{letter-spacing:-.035em}
.compare-intro>p:not(.eyebrow){font-family:var(--ui-font)}
.arena-controls{background:var(--surface);gap:22px;padding-block:24px}
.arena-controls label,.fighter label{font-family:var(--ui-font);font-weight:500}
.arena-controls button,.comparison-page select{border-radius:8px;min-height:46px;font-family:var(--ui-font)}
.arena-controls button{padding:12px 18px;background:var(--bg);transition:background .18s,border-color .18s}
.arena-controls button:hover{background:var(--bg);border-color:var(--gold)}
.combatants{gap:26px;padding-block:38px}
.fighter{border-radius:14px;box-shadow:0 8px 30px #0003;border-top-width:2px}
.fighter-portrait{height:clamp(360px,43vw,590px);background:var(--bg)}
.fighter-portrait>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none}
.fighter-portrait:after{background:linear-gradient(0deg,#0009,transparent 18%);pointer-events:none}
.fighter-portrait>span{top:18px;left:18px;padding:7px 10px;border:1px solid var(--gold);border-radius:5px;background:var(--bg);font:600 9px/1.5 var(--ui-font);letter-spacing:.12em}
.portrait-expand{position:absolute;bottom:16px;right:18px;z-index:2;padding:8px 11px;border:1px solid var(--gold);border-radius:5px;background:var(--bg);color:var(--paper);font:600 9px/1.5 var(--ui-font);letter-spacing:.06em}
.portrait-expand:hover{color:var(--gold);border-color:var(--gold)}
.portrait-credit{margin:0;padding:12px 26px 23px;font:10px/1.5 var(--ui-font);color:#949b86}
.fighter-body{padding:0 26px 27px}
.fighter-name{margin-top:0;gap:14px}
.fighter-name select{font:23px/1.3 Georgia,serif;padding-block:11px}
.legion-label{font:12px/1.6 var(--ui-font);letter-spacing:.025em;margin:15px 0 22px}
.loadout{gap:18px}
.live-index{padding:12px 16px;border-radius:8px;border-color:var(--gold)}
.live-index span,.loadout-warning{font-family:var(--ui-font)}
.equipment-item{border-radius:8px;padding:12px}
.equipment-item p,.equipment-item small,.fighter-evidence a{font-family:var(--ui-font)}
.equipment-item summary img{border-radius:6px}
.comparison-result,.methodology{border-radius:12px;background:var(--bg)}
.score-pair strong{font-variant-numeric:tabular-nums}
.base-scores span{border-radius:5px}

@media(max-width:950px){
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header{min-height:120px;padding-block:23px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand{gap:22px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand .aquila{width:66px;height:50px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand small{font-size:8px;letter-spacing:.27em}
 .controls{gap:14px;align-items:stretch;flex-wrap:wrap}
 .search{flex:1}.search input{width:100%;min-width:160px}
 .filters button{padding-inline:12px}
 .fighter-name select{font-size:19px}
}
@media(max-width:650px){
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header{min-height:105px;padding:20px 5%}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand{gap:12px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand>span{font-size:clamp(16px,3.7vw,24px);letter-spacing:.035em}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand .aquila{width:34px;height:34px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand small{font-size:6px;letter-spacing:.18em;margin-top:8px}
 .home-page .hero{min-height:570px}
 .home-page .hero-content{padding:58px 6% 68px}
 .home-page .hero h1{font-size:clamp(50px,10vw,64px);letter-spacing:-.045em;line-height:1.04}
 .home-page .hero .intro{font-size:14px;max-width:400px}
 .hero-comparison{padding:16px 18px;gap:12px;font-size:11px}
 .hero-comparison small{font-size:10px}
 .archive{padding:56px 5%}
 .section-heading{align-items:start;gap:15px}
 .section-heading>p{max-width:340px;font-size:12px}
 .controls{flex-direction:column;gap:12px;padding-bottom:18px}
 .filters{width:100%;gap:3px;justify-content:space-between}
 .filters button{flex:1;padding:9px 7px;font-size:11px}
 .filters span{font-size:9px;margin-left:3px}
 .search{min-height:48px;flex:auto}
 #grid{gap:14px}
 .portrait{height:210px}
 .card-copy{padding:5px 14px 17px}
 .card h3{font-size:22px}
 .legion{font-size:8px;letter-spacing:.08em}
 .badge{top:12px;right:10px;font-size:10px;padding:4px 6px}
 .card-bottom{flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:12px;font-size:10px}
 .card-bottom>span:last-child{font-size:8px}
 .compare-intro{padding-top:42px}
 .fighter-body{padding-inline:18px}
 .portrait-credit{padding-inline:18px}
 .fighter-name select{font-size:18px}
 .fighter-name>img{width:40px;height:48px}
 .fighter-portrait>span{left:12px;top:12px}
 .portrait-expand{right:12px;bottom:12px;font-size:8px}
}
@media(max-width:570px){
 .fighter-portrait{height:clamp(420px,130vw,600px)}
 .fighter-name select{font-size:22px}
}
@media(max-width:360px){
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand{gap:8px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .archive-header .brand>span{font-size:15px}
 :is(.home-page,.comparison-page,.quiz-page,.biography-page) .brand .aquila{width:28px}
 .filters button{padding-inline:4px;font-size:10px}
 .portrait{height:180px}
 .card h3{font-size:20px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Shared archive marks and the new Scholam entry. */
.home-page .legion-symbol{border:1px solid var(--gold);background:var(--bg)}
.home-page .legion-symbol:hover{border-color:var(--gold);background:var(--bg)}
.quiz-feature{display:grid;grid-template-columns:1.3fr 1fr;gap:8%;align-items:center;margin:64px 5%;padding:42px;border:1px solid var(--gold);border-radius:14px;background:var(--bg);box-shadow:0 14px 38px #0002}
.quiz-feature h2{font:44px/1.15 Georgia,serif;letter-spacing:-.025em;margin:12px 0 20px}
.quiz-feature p:not(.eyebrow){font:13px/1.9 var(--ui-font);color:#b3b9a2;max-width:590px}
.quiz-feature .quiz-entry{display:inline-flex;align-items:center;gap:25px;margin-top:15px;padding:15px 22px;background:var(--gold);border:1px solid var(--gold);border-radius:7px;font:600 11px/1.6 var(--ui-font);color:#14180f}
.quiz-feature .quiz-entry:hover{background:#dec493}
.quiz-feature-record{border-left:1px solid var(--gold);padding-left:36px}
.quiz-feature-record>p{color:var(--gold)!important;font:24px/1.4 Georgia,serif!important;margin:0 0 22px}
.quiz-feature-record ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:9px}
.quiz-feature-record li{border:1px solid var(--gold);padding:7px 10px;border-radius:5px;color:#c0c3af;font-size:10px}
.quiz-feature-record li:last-child{border-color:var(--gold);color:var(--gold)}
.bio-quotes{margin-top:55px}.quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.primarch-quote{margin:0;padding:26px;background:var(--bg);border:1px solid var(--gold);border-top:2px solid var(--gold);border-radius:10px}.primarch-quote blockquote{font:26px/1.5 Georgia,serif;letter-spacing:-.015em;color:var(--paper);margin:0 0 20px}.primarch-quote figcaption{font:11px/1.8 var(--ui-font);color:#aab398}.primarch-quote figcaption strong{display:block;color:var(--gold);font-weight:500;margin-bottom:7px}.primarch-quote .quote-context{font:11px/1.8 var(--ui-font);margin:12px 0 0;color:#aab398}.citation-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:22px;font:10px/1.8 var(--ui-font)}.citation-links a,.primarch-quote a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
@media(max-width:750px){.quiz-feature{grid-template-columns:1fr;gap:30px;padding:29px;margin-block:40px}.quiz-feature h2{font-size:36px}.quiz-feature-record{border-left:0;border-top:1px solid var(--gold);padding:25px 0 0}.quiz-feature-record>p{font-size:21px!important}.quote-grid{grid-template-columns:1fr}.primarch-quote blockquote{font-size:24px}}

.quiz-feature-record .quiz-feature-detail{font:11px/1.8 var(--ui-font)!important;color:#a5ae93!important;margin:20px 0 0}

/* Static archive filtering and reading navigation. */
#grid .card[hidden]{display:none}
.page-breadcrumb .archive-shortcuts{display:flex;flex-wrap:wrap;gap:14px 24px;margin-left:auto}
.page-breadcrumb [aria-current="page"]{color:var(--paper)}
.related-reading{margin:0 5% 64px;padding-top:34px;border-top:1px solid var(--line)}
.related-reading h2{font-size:clamp(27px,3vw,38px);line-height:1.2;letter-spacing:-.025em;margin:12px 0 18px}
.related-reading>p:not(.eyebrow){max-width:760px;color:var(--muted);font:14px/1.8 var(--ui-font)}
.related-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin-top:24px}
.related-links a{display:block;padding:20px;border:1px solid var(--edge);border-radius:var(--radius);background:var(--surface);color:var(--gold);font:21px/1.3 Georgia,serif;transition:border-color .18s}
.related-links a:hover{border-color:var(--gold)}
.related-links small{display:block;font:11px/1.6 var(--ui-font);color:var(--muted);margin-top:9px}
@media(max-width:650px){.page-breadcrumb .archive-shortcuts{flex-basis:100%;margin-left:0}.related-reading{margin-bottom:40px}}

/* Pair the two activities in the first view. */
.hero-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:14px;margin-top:30px;max-width:820px}
.hero-actions .hero-comparison{margin-top:0;flex:1 1 310px;min-width:0;justify-content:space-between}
.hero-actions .hero-comparison>span:nth-child(2){flex:1}
.hero-actions .hero-quiz{background:var(--surface);color:var(--gold);border-color:var(--gold)}
.hero-actions .hero-quiz small{color:var(--paper)}
.hero-actions .hero-quiz:hover{background:var(--bg)}
/* One responsive gap between the sealed dossier and the Scholam. */
.home-page .archive:has(+.quiz-feature){padding-bottom:0}
@media(max-width:650px){.hero-actions{gap:12px}.hero-actions .hero-comparison{flex-basis:100%}}

/* An illustrated invitation to the two erased Legion records. */
.lost.lost-feature{display:flex;align-items:center;min-height:350px;padding:45px;isolation:isolate;border:1px solid var(--gold);background:#000;position:relative;overflow:hidden}
.lost-feature .lost-feature-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;transition:transform .6s}
.lost.lost-feature:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000a,transparent 75%);opacity:1;z-index:-1}
.lost-feature-copy{max-width:520px}
.lost-feature .sealed-label{color:var(--gold);font:600 9px/1.6 var(--ui-font);letter-spacing:.2em;margin-bottom:18px}
.lost-feature h3{font:500 clamp(36px,4.5vw,66px)/1 Georgia,serif;letter-spacing:.02em;color:var(--paper);margin:0 0 20px}
.lost-feature p{color:#d2cabb;font:14px/1.8 var(--ui-font)}
.lost.lost-feature .record-link{display:inline-flex;align-items:center;gap:26px;width:auto;margin:24px 0 0;padding:13px 18px;border:1px solid var(--gold);border-radius:6px;background:#000c;color:var(--gold);font:600 10px/1.5 var(--ui-font);letter-spacing:.08em}
.lost-feature .record-link span{font-size:22px;line-height:1}
.lost-feature-number{position:absolute;bottom:24px;right:28px;color:var(--gold);font:18px Georgia,serif;letter-spacing:.2em}
.lost-feature:hover .lost-feature-art{transform:scale(1.025)}
.lost-feature:hover .record-link{background:var(--gold);color:#000}
@media(max-width:650px){.lost.lost-feature{min-height:420px;padding:29px 24px;align-items:flex-end}.lost-feature .lost-feature-art{object-position:68% center;opacity:.8}.lost.lost-feature:after{background:linear-gradient(0deg,#000 0%,#0008 65%,#0003)}.lost-feature h3{font-size:42px}.lost-feature .sealed-label{font-size:8px}.lost-feature-number{top:22px;bottom:auto;right:24px}.lost-feature p{font-size:13px}.lost.lost-feature .record-link{padding:13px 15px;font-size:9px;gap:18px}}

/* A quiet title in the artwork's dark corner, with both activities below. */
.home-page .hero.hero-ensemble{display:block;min-height:0;background:var(--bg)}
.home-page .hero-ensemble .hero-content{max-width:none;padding:24px 5% 40px}
.hero-ensemble .hero-support{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);align-items:center;gap:clamp(24px,3vw,48px);min-width:0}
.hero-image-frame{position:relative;isolation:isolate;overflow:hidden}
.hero-image-frame:after{content:'';position:absolute;inset:0 40% 40% 0;background:radial-gradient(ellipse at top left,#0009,transparent 72%);pointer-events:none}
.hero-image-frame>img{display:block;width:100%;height:auto;object-fit:contain}
.hero-ensemble .hero-heading{position:absolute;z-index:1;top:clamp(14px,2.2vw,35px);left:4%;max-width:65%}
.home-page .hero-ensemble h1{font:400 clamp(28px,3.4vw,54px)/1.1 Georgia,serif;letter-spacing:-.03em;color:var(--paper);margin:0;text-shadow:0 2px 18px #000b}
.home-page .hero-ensemble h1>span{white-space:nowrap}
.home-page .hero-ensemble .intro{max-width:540px;margin:0;font-size:14px}
.hero-ensemble .hero-actions{margin-top:0;gap:12px}
.hero-ensemble .hero-actions .hero-comparison{flex-basis:250px;padding:14px 19px}
.hero-ensemble-art{position:relative;margin:0;background:var(--bg)}
.hero-ensemble-art>figcaption{display:flex;justify-content:space-between;gap:12px;padding:16px 5%;color:var(--muted);font:10px/1.6 var(--ui-font);letter-spacing:.035em}
.hero-ensemble-art>figcaption>span:first-child{color:var(--gold);font-weight:600;letter-spacing:.16em}

/* One name, heraldry and epithet treatment shared by every Primarch record. */
.bio-title .primarch-name{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:22px;margin-bottom:25px}
.bio-title .primarch-name>img{width:72px;height:82px;padding:10px;object-fit:contain;border:1px solid var(--gold);border-radius:8px;background:var(--bg)}
.primarch-heading-copy{min-width:0}
.bio-title .primarch-heading-copy h1{font:500 clamp(40px,4.1vw,64px)/1.08 Georgia,serif;letter-spacing:-.025em;color:var(--paper);margin:0;text-wrap:balance;overflow-wrap:break-word}
.bio-title .primarch-heading-copy .bio-epithet{font:italic 23px/1.4 Georgia,serif;color:var(--gold);margin:13px 0 0}
.citation-links .source-note{color:var(--muted)}
.source-link.source-note{text-decoration:none;cursor:default}
@media(max-width:1050px){
 .hero-ensemble .hero-support{grid-template-columns:1fr;gap:24px;text-align:center}
 .home-page .hero-ensemble .intro{max-width:700px;margin-inline:auto}
 .hero-ensemble .hero-actions{width:100%;max-width:820px;margin-inline:auto}
 .hero-ensemble .hero-comparison{text-align:left}
}
@media(max-width:650px){
 .home-page .hero-ensemble .hero-content{padding:20px 6% 30px}
 .hero-ensemble .hero-heading{top:12px;left:4%;max-width:70%}
 .home-page .hero-ensemble h1{font-size:clamp(19px,4.3vw,28px);line-height:1.08}
 .hero-ensemble .hero-actions .hero-comparison{flex-basis:100%}
 .hero-ensemble-art>figcaption{flex-direction:column;gap:4px;font-size:8px;padding-block:12px}
 .bio-title .primarch-name{grid-template-columns:54px minmax(0,1fr);gap:16px;margin-bottom:22px}
 .bio-title .primarch-name>img{width:54px;height:66px;padding:8px}
 .bio-title .primarch-heading-copy h1{font-size:clamp(32px,7.5vw,44px)}
 .bio-title .primarch-heading-copy .bio-epithet{font-size:20px;margin-top:10px}
}

/* The Librarium: a matching gold doorway into the growing article archive. */
.home-page .hero-ensemble .hero-support{grid-template-columns:1fr;gap:24px}
.home-page .hero-ensemble .intro{max-width:840px}
.home-page .hero-ensemble .hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;width:100%}
.home-page .hero-actions .hero-comparison{width:100%;background:var(--gold);border:1px solid var(--gold);color:#100e09;min-width:0;text-align:left}
.home-page .hero-actions .hero-comparison small{color:#342b1c}
.home-page .hero-actions .hero-comparison:hover{background:#dfc18a;border-color:#dfc18a;color:#100e09}
.home-page .hero-actions .hero-comparison:focus-visible{outline:2px solid var(--paper);outline-offset:5px}
.librarium-home{margin:0 5% 70px}
.librarium-home .lost.lost-feature{margin:0;width:100%;border-radius:8px}
.librarium-feature h2{font:500 clamp(34px,4.5vw,62px)/1.08 Georgia,serif;letter-spacing:.02em;color:var(--paper);margin:0 0 20px}
.librarium-hero{position:relative;isolation:isolate;margin:20px 5% 0;min-height:450px;display:flex;align-items:center;border:1px solid var(--gold);border-radius:8px;overflow:hidden;background:#000}
.librarium-art{position:absolute;inset:0;z-index:-2}
.librarium-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.librarium-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#000c, #0006 45%,transparent 80%)}
.librarium-hero-copy{padding:60px 5%;max-width:700px}
.librarium-hero h1{font:500 clamp(44px,6vw,80px)/1.08 Georgia,serif;color:var(--paper);margin:18px 0 24px;letter-spacing:-.025em}
.librarium-hero p:not(.eyebrow){font:15px/1.8 var(--ui-font);color:#e0d8c8}
.librarium-scroll{display:inline-block;margin-top:22px;font:600 10px/1.6 var(--ui-font);letter-spacing:.12em;color:var(--gold);padding:12px 0;border-bottom:1px solid var(--gold)}
.librarium-art-credit{margin:12px 5% 0;text-align:right;color:var(--muted);font:10px/1.6 var(--ui-font)}
.librarium-catalogue{margin:65px 5% 90px;scroll-margin-top:24px}
.librarium-catalogue-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--gold)}
.librarium-catalogue-head h2{font:400 clamp(28px,4vw,42px)/1.2 Georgia,serif;color:var(--paper);margin:10px 0 0}
.librarium-catalogue-head>span{font:10px/1.6 var(--ui-font);letter-spacing:.13em;color:var(--gold);white-space:nowrap}
.librarium-record{display:grid;grid-template-columns:minmax(125px,.3fr) minmax(0,1fr);gap:40px;padding:38px 26px;border-bottom:1px solid #6e5a38;color:var(--paper);text-decoration:none;transition:background .2s}
.librarium-record:hover{background:#c9a6680b}
.librarium-record:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.librarium-record-index{font:10px/1.6 var(--ui-font);letter-spacing:.1em;color:var(--gold);padding-top:4px}
.librarium-record h2{font:400 clamp(27px,3.3vw,40px)/1.18 Georgia,serif;letter-spacing:-.015em;margin:12px 0 18px}
.librarium-record p:not(.eyebrow){color:var(--muted);max-width:740px;font:14px/1.8 var(--ui-font)}
.librarium-read{display:inline-flex;gap:40px;align-items:center;color:var(--gold);font:600 10px/1.6 var(--ui-font);letter-spacing:.12em;margin-top:22px}
.librarium-read span{font-size:23px}
.librarium-editorial{display:grid;grid-template-columns:minmax(125px,.3fr) minmax(0,1fr);gap:40px;padding:35px 26px}
.librarium-editorial>p:last-child{max-width:740px;color:var(--muted);font:13px/1.9 var(--ui-font);margin:0}
@media(max-width:1050px){.home-page .hero-ensemble .intro{margin-inline:auto}.home-page .hero-ensemble .hero-actions{max-width:none}.hero-ensemble .hero-actions .hero-comparison{padding:16px 12px;gap:8px}}
@media(max-width:700px){.home-page .hero-ensemble .hero-actions{grid-template-columns:1fr}.home-page .hero-actions .hero-comparison{padding:17px 20px}.librarium-home{margin:0 6% 48px}.librarium-feature h2{font-size:38px}.librarium-hero{min-height:480px;margin-inline:6%;align-items:end}.librarium-art img{object-position:65% center}.librarium-hero:after{background:linear-gradient(0deg,#000 0%,#0009 60%,#0002)}.librarium-hero-copy{padding:32px 24px}.librarium-hero h1{font-size:47px}.librarium-hero p:not(.eyebrow){font-size:13px}.librarium-catalogue{margin:45px 6% 60px}.librarium-record,.librarium-editorial{grid-template-columns:1fr;gap:18px;padding:28px 4px}.librarium-catalogue-head{gap:12px}.librarium-art-credit{margin-inline:6%;font-size:9px}}
/* Keep the collection shortcut visible on phones; the legacy nav rule is broader. */
.page-breadcrumb .archive-shortcuts a:last-child{display:inline}

/* Pair the two archive doorways with the same section rhythm. */
.quiz-feature + .librarium-home{margin:64px 5%}
@media(max-width:750px){.quiz-feature + .librarium-home{margin:40px 5%}}

/* Pair the Strategium quiz banner with the Librarium feature below it. */
.home-page .quiz-feature{display:block;margin:64px 5%;padding:0;border:0;border-radius:0;box-shadow:none}
.quiz-feature .lost.lost-feature{margin:0;width:100%;border-radius:8px}
.quiz-cinematic-feature h2{font:500 clamp(34px,4.5vw,62px)/1.08 Georgia,serif;letter-spacing:.02em;color:var(--paper);margin:0 0 20px}
.quiz-cinematic-feature .lost-feature-copy{max-width:520px}
@media(max-width:750px){.home-page .quiz-feature{margin:40px 5%}}
@media(max-width:650px){.quiz-cinematic-feature h2{font-size:38px}}

/* A two-row archive preview with consistent portrait frames and clearer labels. */
.home-page #grid .portrait{height:auto;aspect-ratio:4/3;background:#080705}
.home-page #grid .portrait img{object-fit:cover;object-position:center 24%;filter:saturate(.75) contrast(1.06)}
.home-page #grid .card:hover .portrait img{filter:saturate(.9) contrast(1.06)}
.home-page #grid .card h3{font-size:28px;font-weight:600;line-height:1.2;color:var(--paper)}
.home-page #grid .legion{font-size:11px;line-height:1.6;color:#c9bfa9;letter-spacing:.07em}
.home-page #grid .card-bottom{font-size:11px;color:#bab09c;line-height:1.6}
.home-page #grid .card-bottom>span:last-child{font-size:10px;color:var(--gold)}
.home-page .archive-meta{font-size:10px;color:#b5ab98;letter-spacing:.12em}
.grid-toggle{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:235px;margin:30px auto 0;padding:14px 25px;background:var(--gold);color:#151109;border:1px solid var(--gold);border-radius:8px;font:600 12px/1.5 var(--ui-font);cursor:pointer}
.grid-toggle[hidden]{display:none}
.grid-toggle:hover{background:#dfc18a}
.grid-toggle:focus-visible{outline:2px solid var(--paper);outline-offset:5px}
@media(max-width:850px){.home-page #grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-page #grid .card h3{font-size:clamp(18px,3.1vw,25px)}.home-page #grid .legion{font-size:10px;letter-spacing:.035em}.home-page #grid .card-bottom{font-size:10px}.home-page #grid .card-bottom>span:last-child{font-size:9px}.grid-toggle{margin-top:24px}}
@media(max-width:420px){.home-page #grid .card-copy{padding:8px 11px 15px}.home-page #grid .card h3{font-size:19px;overflow-wrap:break-word}.home-page #grid .legion{font-size:9px}.grid-toggle{width:100%}}

/* Identify the subject while retaining the established two-line hero. */
.home-page .hero-ensemble h1>span.hero-subject{display:block;white-space:normal;font:600 clamp(8px,1vw,13px)/1.4 var(--ui-font);letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:7px}
@media(max-width:650px){.home-page .hero-ensemble h1>span.hero-subject{font-size:8px;letter-spacing:.07em;margin-bottom:4px}}

/* Keep privacy controls reachable alongside the fan-project disclaimer. */
footer{flex-wrap:wrap}
footer p{flex:1 1 280px}
/* Horus Heresy archive feature. */
.heresy-home .lost-feature-art{object-position:65% 45%}.heresy-home .lost-feature-copy h2{font:500 clamp(34px,4.5vw,62px)/1.08 Georgia,serif;letter-spacing:.02em;color:#e1bb82;margin:0 0 20px}@media(min-width:701px){.home-page .hero-ensemble .hero-actions:has(.hero-heresy){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact, approved paths from the published Short to its fuller guide. */
.latest-short{margin:0;font-size:14px;line-height:1.65}
.latest-short a{display:inline-block;padding:8px 0;color:var(--gold);text-underline-offset:4px}
.latest-short a>span:first-child{font-weight:600;margin-right:.4em}
.latest-short a:hover,.latest-short a:focus-visible{color:var(--paper)}
.guide-quick-jumps{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:22px 0 0;font-size:13px}
.guide-quick-jumps>span{color:var(--gold);font-weight:600;margin-right:3px}
.guide-quick-jumps a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #665437;border-radius:3px;color:var(--gold);text-decoration:none;line-height:1.4}
.guide-quick-jumps a:hover,.guide-quick-jumps a:focus-visible{border-color:var(--gold);color:var(--paper);background:#c5a77512}
.latest-short a:focus-visible,.guide-quick-jumps a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
