/* MIDNIGHT CHOIR — editable styling, not baked into the artwork */
:root{color-scheme:dark;--background:#060b13;--gold:#d5bd88;--gold-dim:#a89777;--line:rgba(213,189,136,.5);--muted:#b0b5bd;--offwhite:#f0e6d3}
*{box-sizing:border-box}html{background:var(--background)}
body{margin:0;color:var(--offwhite);font-family:Georgia,'Times New Roman',serif;background:var(--background)}
a{color:inherit}
.page{min-height:100svh;display:flex;flex-direction:column}
.site-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:70px;gap:20px;padding:6px clamp(12px,2vw,35px);border-bottom:1px solid var(--line);background:#070c14}
.site-title{color:#e7d4aa;font-size:clamp(17px,1.55vw,29px);letter-spacing:clamp(.2em,.7vw,.52em);text-transform:uppercase;text-decoration:none;white-space:nowrap;text-align:center;padding-left:.4em}
.nav-group{justify-self:end;display:flex;align-items:center;gap:15px}
.nav-pill{display:flex;gap:clamp(8px,1.1vw,18px);align-items:center;padding:7px 11px;border:1px solid var(--gold-dim);border-radius:50px;white-space:nowrap;font:10px/1.2 system-ui,sans-serif;letter-spacing:.14em;color:#abb0b9}
.nav-pill span{display:inline-block;padding:6px 8px}
.nav-pill .current{border:1px solid #8e7e64;border-radius:3px;color:#ead6a8}
.nav-pill .placeholder{cursor:default}
.portal-icon{display:block;border:1px solid #a48d67;padding:3px;width:48px;height:48px;transition:box-shadow .2s ease,transform .2s ease}
.portal-icon:hover,.portal-icon:focus-visible{box-shadow:0 0 15px rgba(116,106,218,.6);transform:translateY(-1px)}
.portal-icon img{display:block;width:100%;height:100%;object-fit:cover}
main{flex:1;display:flex;min-height:0;overflow:hidden}
.hero{display:block;width:100%;height:100%;max-height:calc(100svh - 126px);min-height:500px;object-fit:cover;object-position:center}
.footer{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px clamp(15px,2.5vw,44px);border-top:1px solid var(--line);background:#070c14;color:#c6ae85;font:9px/1.5 system-ui,sans-serif;letter-spacing:.14em}
.footer span:nth-child(2){letter-spacing:.3em}
a:focus-visible,input:focus-visible,button:focus-visible{outline:2px solid #bdabf3;outline-offset:4px}
/* Isolated access page — shared visuals, no client-side authentication. */
.threshold-page{min-height:100svh;display:grid;place-items:center;padding:24px;position:relative;isolation:isolate;background:radial-gradient(ellipse at center,rgba(42,38,66,.45),#060b13 65%)}
.threshold-panel{width:min(100%,420px);padding:clamp(22px,5vw,42px);border:1px solid rgba(213,189,136,.4);background:rgba(6,10,18,.9);box-shadow:0 18px 90px rgba(0,0,0,.44);text-align:center}
.threshold-mark{width:66px;height:66px;display:block;object-fit:cover;margin:0 auto 28px;border:1px solid var(--gold-dim);padding:4px}
.threshold-title{margin:0 0 18px;font-size:26px;letter-spacing:.26em;font-weight:400;color:#eedfba}
.threshold-desc{color:var(--muted);font:12px/1.6 system-ui,sans-serif;letter-spacing:.07em;margin-bottom:30px}
.threshold-form{display:flex;flex-direction:column;gap:13px;text-align:left}
.threshold-form label{font:10px system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#cab68f}
.threshold-form input{width:100%;border:1px solid #676576;padding:15px;background:#101722;color:#f8f8fa;font:18px system-ui,sans-serif;border-radius:0}
.threshold-form button{width:100%;padding:14px;border:1px solid #b6a17c;background:transparent;color:#ebdbbc;letter-spacing:.25em;cursor:pointer;font:11px system-ui,sans-serif}
.threshold-form button:hover{background:rgba(213,189,136,.12)}
.threshold-error{color:#e6b3b0;font:12px/1.5 system-ui,sans-serif;margin:0 0 18px}
.threshold-back{display:inline-block;margin-top:25px;color:#8b92a1;text-decoration:none;font:11px system-ui,sans-serif;letter-spacing:.08em}
.threshold-back:hover{text-decoration:underline}
@media(max-width:1100px){.site-header{grid-template-columns:1fr;gap:10px;padding-block:15px}.site-header>div:first-child{display:none}.nav-group{justify-self:center}.site-title{font-size:clamp(16px,3.1vw,27px);letter-spacing:.31em}.hero{max-height:none;height:calc(100svh - 160px);min-height:450px}.footer{min-height:60px}}
@media(max-width:600px){.nav-group{gap:8px}.nav-pill{gap:0;font-size:8px;letter-spacing:.09em;padding:6px}.nav-pill span{padding:5px}.portal-icon{width:40px;height:40px}.hero{object-position:50% center;min-height:400px}.footer{justify-content:center;text-align:center;flex-wrap:wrap;font-size:8px}.footer span:nth-child(2){width:100%;order:-1}}
