/* Shared interface roles. Signature display accents live in brand-cohesion.css. */
:root{
 --font-reading:Studio,Arial,sans-serif;
 --text-primary:#f2e9da;--text-secondary:#d7c8c2;--text-subtle:#c5b5af;
 --text-link:#efcfd1;--text-on-accent:#20171b;
 --surface-base:#080709;--surface-panel:#100c0f;--surface-raised:#211820;
 --border-control:#b79aa4;--border-subtle:#755d67;--focus-ring:#fff2cc;
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;
 --space-5:24px;--space-6:32px;--space-7:48px;--space-8:72px;
 --header-offset:104px;--player-offset:0px;
}
/* Calculated sRGB contrast on opaque #100c0f: primary 16.13:1,
   secondary 11.96:1, subtle 9.80:1, rose link 13.42:1.
   Selected filter #20171b on darkest gradient stop #d2c0ad: 9.90:1.
   These ratios apply to opaque surfaces. Image-backed hero copy has separate
   gradients and requires a rendered-image contrast audit. */
body{font-family:var(--font-reading);color:var(--text-primary)}
nav,button,input,textarea,select,label,.eyebrow,.status,.release-top,
.release-date,.teaser-time,.mini-identity,.filter,.art-tabs,
.destination-note,.footer-links,.footer-credits,.portal-index,.portal-action{
 font-family:var(--font-reading);font-style:normal;
}
p,.release-description,.teaser-explanation,.inside-intro,.body-copy,.lead,
.section-head>p,.thread-heading>p,.lyric-note,.release-date,
.vault-cover-note,.destination-note,.footer p{color:var(--text-secondary)}
.eyebrow,.status,.release-top,.teaser-time,.mini-identity>span{color:var(--text-subtle)}
button,a,input,textarea,summary{touch-action:manipulation}
button,a.button,.matte-button,.listen-button,.menu-toggle,.filter,.art-tabs button,
.footer-links a,.footer-links button,.reader-end a,.header nav a{
 min-height:44px;
}
button{min-width:44px}
input[type=range]{min-height:44px;cursor:pointer}
:where(a,button,input,textarea,select,summary):focus-visible{
 outline:3px solid var(--focus-ring)!important;outline-offset:4px!important;
 box-shadow:0 0 0 7px #080709!important;
}
h1:focus,h2:focus,h3:focus{outline:3px solid var(--focus-ring);outline-offset:6px}
html{scroll-padding-top:var(--header-offset);scroll-padding-bottom:calc(var(--player-offset) + 24px)}
:where([id],a,button,input,textarea,summary){scroll-margin-top:var(--header-offset);scroll-margin-bottom:calc(var(--player-offset) + 24px)}
body:has(.mini-player:not([hidden])){--player-offset:112px;padding-bottom:calc(var(--player-offset) + env(safe-area-inset-bottom,0px))}
.header,body[data-experience=entrance] .header{
 position:sticky;top:0;z-index:25;background:var(--surface-base);min-height:80px;
 border-bottom:1px solid var(--border-subtle);padding:12px 4vw;gap:20px;
}
.header nav{flex-wrap:wrap;gap:8px 20px}
.header nav a{display:inline-flex;align-items:center;color:var(--text-secondary);font-size:13px}
.header nav a[aria-current=page]{color:var(--text-primary);text-decoration:underline;text-underline-offset:6px}
.header .mobile-music{display:none}
.skip{z-index:100;background:var(--surface-panel);color:var(--text-primary);padding:12px}
.entrance-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin:24px auto 0;position:relative;z-index:2;pointer-events:auto}
.entrance-actions a{margin:0;min-height:48px;padding:12px 20px;font:14px/1.5 var(--font-reading);display:inline-flex;align-items:center;justify-content:center}
.filters{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:12px;border-color:var(--border-subtle)}
.filter{font-size:14px;padding:12px 20px;color:var(--text-secondary);border:1px solid var(--border-subtle)}
.filter span{font-size:13px;color:inherit}
.filter.active,.filter.active span{color:var(--text-on-accent);-webkit-text-fill-color:currentColor}
.catalog-links{display:flex;gap:12px 24px;flex-wrap:wrap;margin:16px 0 32px}
.catalog-links a{min-height:44px;display:inline-flex;align-items:center;color:var(--text-link);text-decoration:underline;text-underline-offset:5px}
/* Opaque text panels make contrast independent of changing image crops. */
.portal .portal-copy,.portal-light .portal-copy{background:var(--surface-panel);padding:24px;left:6%;right:6%;bottom:28px;border:1px solid var(--border-subtle)}
.portal-copy p,.portal-light .portal-copy p,.portal .portal-action,.portal .portal-index{color:var(--text-secondary)}
.portal-copy h2,.portal-light .portal-copy h2{color:var(--text-primary)}
.stage-copy{background:var(--surface-panel);padding:32px;max-width:min(660px,100%);border:1px solid var(--border-subtle);margin-block:72px}
.stage-copy p:not(.eyebrow),.stage-copy .eyebrow{color:var(--text-secondary)}
.stage-copy .metal{background:none!important;color:var(--text-primary)!important;-webkit-text-fill-color:currentColor!important}
.unrevealed-copy>h1,.unrevealed-copy>p,.unrevealed-bottom,.stage-note,.mystery-copy>h1,.mystery-copy>p{
 background:var(--surface-panel);box-decoration-break:clone;-webkit-box-decoration-break:clone;
 color:var(--text-primary);width:fit-content;max-width:100%;padding:8px 12px;
}
.unrevealed-copy>p,.mystery-copy>p{color:var(--text-secondary)}
.mystery-copy .mystery-signature{color:var(--rose-gold-light)}
.stage-note{border:1px solid var(--border-subtle)}
.art-view,.vault-cover-overlay,.discovery-open{background:var(--surface-panel);color:var(--text-primary);border:1px solid var(--border-control)}
.discovery-art img,.release .cover img,.teaser-art img,.vault-cover button>img,
.future-cover img,#full-art,.reader-heading img{object-fit:contain}
.discovery-piece:hover img,.vault-cover button:hover>img{transform:none}
.discovery-art,.release .cover,.teaser-art,.vault-cover button{aspect-ratio:1;background:#000}
.release .cover,.teaser-art{overflow:visible}
.release .cover img,.teaser-art img{width:100%;height:100%;aspect-ratio:1}
.release-grid,.approved-teaser-grid{align-items:start}
.release,.teaser-card,.release-copy,.teaser-copy,.song-title-row,.reader-heading>div{min-width:0}
.release h3,.teaser-copy h3{min-height:0;overflow-wrap:anywhere}
.release-top{flex-wrap:wrap;line-height:1.7}
.release-actions,.teaser-actions,.reader-links,.lyric-head,.reader-end{flex-wrap:wrap;gap:12px 20px}
.release-actions a,.release-actions button,.reader-links button,.reader-links a{font-size:14px}
.book-preview{color:var(--text-secondary);padding-block:20px}
.book-preview small{color:var(--text-secondary);opacity:1;font-size:13px}
.book-preview strong,.book-preview>span>span{font-size:14px}
.song-quote,.reader-quote,.door-revelation blockquote{font-family:var(--brand-serif);font-style:normal}
.mini-player{background:var(--surface-panel);border-color:var(--border-control);bottom:max(12px,env(safe-area-inset-bottom,0px));transform:none;left:20px;right:20px;margin-inline:auto;width:calc(100% - 40px);max-width:1040px}
.mini-player button{min-width:44px;min-height:44px;color:var(--text-link)}
.mini-player .mini-progress input{min-height:44px}
.mini-identity>span,.mini-progress span{font-size:12px;color:var(--text-secondary)}
.mini-identity>strong{font-family:var(--font-reading);font-size:16px;line-height:1.5}
.mini-player button:disabled{opacity:1;color:#7f737a}
.mini-player button:disabled .next-icon,.mini-player button:disabled .previous-icon{opacity:.5}
dialog{background:var(--surface-panel);border-color:var(--border-control);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);scroll-padding-block:88px 24px}
.dialog-bar{background:var(--surface-panel);border-color:var(--border-subtle)}
.dialog-bar h2{font:16px/1.5 var(--font-reading)}
.art-tabs{flex-wrap:wrap;border-color:var(--border-subtle);gap:12px}
.art-tabs button{font:14px/1.5 var(--font-reading);border-color:var(--border-control);color:var(--text-secondary)}
.art-tabs button[aria-pressed=true]{background:var(--champagne);color:var(--text-on-accent)}
#art-label{font:14px/1.6 var(--font-reading);color:var(--text-secondary)}
#lyric-text,.preview-transcript{font:16px/1.9 var(--font-reading);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-primary)}
.reader-end .editorial{font-family:var(--brand-serif);font-size:24px!important}
#site-message{max-width:calc(100vw - 32px);font-size:14px}
#site-message.visible{bottom:calc(var(--player-offset) + 20px)}
.book-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:32px 0}
.book-index article{border:1px solid var(--border-subtle);padding:24px;background:var(--surface-panel);min-width:0}
.book-index h3{font:30px/1.2 var(--brand-serif);margin-block:12px}
.book-index p{font:15px/1.7 var(--font-reading)}
.book-index a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;color:var(--text-link)}
@media(max-width:1050px){
 :root{--header-offset:100px}
 .header .mobile-music{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;color:var(--text-on-accent);background:var(--champagne);font:14px/1.5 var(--font-reading);margin-left:auto}
 .header .menu-toggle{display:flex;gap:12px;min-height:44px;padding:8px;color:var(--text-primary);font-size:14px}
 .header nav{display:none;flex-basis:100%;margin:0!important;padding:12px 0;max-height:50dvh;overflow:auto}
 .menu-open .header nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
 .header,body[data-experience=entrance] .header{flex-wrap:wrap;gap:8px 12px;justify-content:space-between}
 .header>.brand{margin:0}.header .founder-logo-compact{width:120px}
 .header nav a{font-size:14px;padding:8px}
 .header-release{display:none}
 .book-index{grid-template-columns:1fr}
}
@media(max-width:700px){
 :root{--header-offset:88px}
 body:has(.mini-player:not([hidden])){--player-offset:160px}
 .wrap{width:calc(100% - 32px)}
 .header,body[data-experience=entrance] .header{min-height:72px;padding:10px 16px;gap:8px}
 .header .brand{max-width:110px}.header .founder-logo-compact{width:106px}.header .brand-plain{font-size:10px;letter-spacing:.5px}
 .header .mobile-music{padding:8px 12px;margin-left:auto;font-size:13px}
 .header .menu-toggle{padding:8px 2px;font-size:13px;gap:5px}
 .header .menu-toggle span{font-size:16px}
 body[data-experience=entrance] .header{justify-content:space-between}
 .entrance-actions{gap:12px}.entrance-actions a{width:100%;max-width:320px}
 .portal .portal-copy,.portal-light .portal-copy{left:16px;right:16px;bottom:20px;padding:20px}
 .portal h2{font-size:clamp(36px,10vw,49px)}
 .portal-index{font-size:10px;letter-spacing:1px;max-width:none}
 .portal-copy p,.portal-action{font-size:14px}
 .stage-copy{margin-block:48px;padding:24px 20px;max-width:100%}
 .stage-copy h1{font-size:clamp(42px,12vw,60px);line-height:1.12;overflow-wrap:anywhere}
 .stage-copy h1 .editorial{font-size:1.05em!important}
 .stage-copy p:not(.eyebrow){font-size:15px}
 .stage-inner{min-height:0}.revealed-stage{min-height:0}
 .unrevealed-copy h1,.mystery-copy h1{font-size:clamp(42px,12vw,59px);overflow-wrap:anywhere}
 .section-head h2,.music h2,.vault-preview h2{font-size:clamp(36px,10vw,43px);overflow-wrap:anywhere}
 .section-head,.thread-heading{gap:24px}
 .release-grid,.approved-teaser-grid{grid-template-columns:minmax(0,1fr)}
 .release-copy h3,.release h3{font-size:32px}
 .song-title-row{align-items:flex-start;gap:12px}
 .song-title-row h3{flex:1}
 .teaser-copy{padding:20px}
 .release-actions{align-items:stretch;flex-direction:column}
 .release-actions .button,.release-actions .text-button{width:100%;justify-content:center}
 .track-progress{flex-wrap:wrap}.track-progress input{min-width:0;flex:1}
 .teaser-sheet-thumb{grid-template-columns:64px minmax(0,1fr);padding:12px;gap:12px}
 .teaser-sheet-thumb img{width:64px;height:auto;object-fit:contain}
 .teaser-sheet-thumb span{font-size:14px}
 .mini-player{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom,0px));width:calc(100% - 16px);max-width:none;padding:8px;gap:4px 8px;grid-template-columns:132px minmax(0,1fr) 44px;grid-template-areas:'track track close' 'transport progress progress'}
 .mini-player .mini-progress input{height:44px;min-height:44px}
 .mini-player .mini-progress{gap:0}
 .mini-player .mini-progress span{font-size:11px;line-height:1.3;margin:0;text-align:right}
 .mini-identity>strong{font-size:14px}.mini-identity>span{font-size:11px;letter-spacing:0}
 .mini-track{min-height:44px}.mini-track>img{width:40px;height:40px}
 .mini-player #mini-close{align-self:center}
 .reader-heading{grid-template-columns:64px minmax(0,1fr);gap:16px}
 .reader-heading img{width:64px;height:64px}
 .reader-heading h2{font-size:30px;overflow-wrap:anywhere}
 .song-reader{padding:20px 16px}
 .reader-links,.lyric-head,.reader-tools{gap:12px;flex-wrap:wrap}
 .reader-links a,.reader-links button,.lyric-head a,.lyric-head button{font-size:14px}
 .reader-links .button{font-size:14px}
 .dialog-bar{padding:8px 12px}
 .art-tabs{padding:12px;gap:10px}.art-tabs button{padding:10px;flex:1}
 .thread-songs{grid-template-columns:minmax(0,1fr)}
 .thread-song{grid-template-columns:72px minmax(0,1fr);gap:16px}
 .thread-song img{width:72px;height:72px}
 .thread-song h3{font-size:28px;overflow-wrap:anywhere}.thread-actions{margin-left:0}
 .thread-result-heading a{white-space:normal}
 .destination-list{grid-template-columns:minmax(0,1fr)}
 .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .footer-links a,.footer-links button{font-size:13px;display:inline-flex;align-items:center;text-align:left}
 .footer-credits p{font-size:12px}
 .footer-wordmark{font-size:27px;overflow-wrap:anywhere}
 .narrative-doors summary{gap:12px}.narrative-doors strong{font-size:27px;overflow-wrap:anywhere}.narrative-doors small{font-size:10px;letter-spacing:1px}
}
@media(max-width:350px){
 .header .brand{max-width:82px}.header .founder-logo-compact{width:82px}.header .mobile-music{padding-inline:8px}.header .menu-toggle{font-size:12px}
 .discovery-shelf,.vault-cover-grid{grid-template-columns:minmax(0,1fr)}
 .discovery-caption h3{font-size:28px}.discovery-piece>p{font-size:12px}
 .ribbon{flex-wrap:wrap;line-height:1.8}.threshold-bottom{flex-wrap:wrap;font-size:9px}
 .mini-player{grid-template-columns:132px minmax(0,1fr) 44px}
 .mini-player .mini-track>img{display:none}
 .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filter{padding:12px 8px}
 .book-index article{padding:20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
.catalogue-primary{padding:20px 0 24px;min-width:0}.teaser-card .catalogue-primary{padding:24px}.catalogue-primary h3{font:400 32px/1.18 var(--brand-serif);overflow-wrap:anywhere}.catalogue-primary .release-top{margin:16px 0}.catalogue-primary .eyebrow{margin:12px 0}.catalogue-primary .track-player{margin-top:16px}.catalogue-primary .save-song.text-button{width:auto;margin-left:16px}.catalogue-primary .listen-button{font-size:15px}.book-index{display:block}.book-index nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-block:24px}.book-index nav a{padding:20px;border:1px solid var(--border-subtle);background:var(--surface-panel)}
@media(max-width:700px){.book-index nav{grid-template-columns:1fr}.catalogue-primary .track-progress span{font-size:12px}.catalogue-primary h3{font-size:32px}}
