:root{--key-ink:#f3efe5;--key-top:#353837;--key-foot:#202322;--key-line:#66685f;--key-glint:#e3dfc528;--key-focus:#dab783}
.detail-body,.offerings,.inquiry{
  --key-ink:#282a26;--key-top:#f7f5eb;--key-foot:#e1dfd4;--key-line:#999b8d;--key-glint:#fff9;--key-focus:#685331
}
:is(.opening-links a,.door-actions a,.film-rail a,.story-mast a,.offer-action,.detail-end a,
 .footer-inner>a,.contact-form button,.mast-inner>a:not(.brand),.perception-top a,.map-foot button,.ref-chip,.source-open,
 .atlas-primary,.atlas-light,.exit,#guide,.construct nav button,.notebook-link,.beyond,
 .sheet-top .close,.note-links button,#evidence,.study-controls button,.document-link,.running-head .close){
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;
  padding:.55em 1.2em;border:1px solid var(--key-line);border-radius:3px;line-height:1.45;
  font-family:inherit;font-weight:530;font-size:1rem;letter-spacing:.025em;text-align:center;text-decoration:none;
  background:linear-gradient(173deg,var(--key-top),var(--key-foot));color:var(--key-ink);
  box-shadow:inset 0 1px var(--key-glint),0 2px 3px #0002;cursor:pointer;text-shadow:none;
  transition:border-color .24s,box-shadow .24s,filter .24s;
}
:is(.opening-links a,.door-actions a,.film-rail a,.story-mast a,.detail-end a,.footer-inner>a,.contact-form button,
 .mast-inner>a:not(.brand),.perception-top a,.map-foot button,.ref-chip,.source-open,.atlas-primary,.atlas-light,
 .exit,#guide,.construct nav button,.notebook-link,.beyond,.sheet-top .close,.note-links button,#evidence,.study-controls button,.document-link,.running-head .close):hover:not(:disabled),
.offer-row:hover .offer-action{filter:brightness(1.09);border-color:var(--key-focus);text-decoration:none;color:var(--key-ink)}
:is(.opening-links a,.door-actions a,.film-rail a,.story-mast a,.detail-end a,.footer-inner>a,.contact-form button,.construct button,.construct a,.sheet button):active:not(:disabled){box-shadow:inset 0 1px 3px #0004}
:is(a,button,select,summary):focus-visible{outline:2px solid var(--key-focus);outline-offset:3px}
.opening-links a,.contact-form button,.detail-end a:first-child{--key-top:#e6dfcc;--key-foot:#c6beaa;--key-line:#ada48e;--key-ink:#21231e}
.contact-form button{--key-top:#373c38;--key-foot:#202522;--key-ink:#faf8ee}
.wake-key{gap:0}
.film-rail{border:0}.film-rail a,.story-mast a{font-size:.94rem}
.offer-row{grid-template-columns:minmax(0,.91fr) minmax(0,1fr) max-content;align-items:center}
.offer-action{justify-self:end;font-size:.96rem}
.offer-row:hover h3{text-decoration:none}
.footer-inner{gap:.6rem 1rem}.footer-inner>a{font-size:.94rem}
.detail-end a{margin-right:.65rem}
.mast-inner nav{display:flex;align-items:center;gap:0}
.mast-inner nav a{min-height:44px;display:inline-flex;align-items:center;padding:.4rem clamp(.5rem,1.2vw,1.3rem);border-radius:2px}
.mast-inner nav a:hover,.crumbs a:hover{background:#80877e20;text-decoration:none}
.mast-inner nav a:last-child{border:1px solid #7b7b70;box-shadow:inset 0 1px #d2cebb1c;margin-left:.5rem;color:#f0efdf}
.construct nav button::before,.construct nav button::after,.notebook-link::after{content:none}
.construct .bottom nav{gap:.45rem}
.construct .bottom button:disabled{cursor:default;filter:none}
.construct .exit,.construct #guide,.construct nav button,.notebook-link,.beyond,.sheet{--key-ink:#e5ebdf;--key-top:#263029;--key-foot:#17211a;--key-line:#677566;--key-glint:#e3ebdf18}
.construct.epilogue .beyond{--key-top:#413c30;--key-foot:#292820;--key-line:#92816a;--key-ink:#ecdab5}
.sheet #evidence{color:var(--key-ink);padding:.55em 1em;text-decoration:none}
.notebook-link{margin-top:.8rem}
@media(max-width:45rem){
 .offer-row{grid-template-columns:minmax(0,1fr) auto;gap:.65rem 1rem}.offer-row h3{grid-column:1/-1}
 .offer-row p{grid-column:1/-1;grid-row:2}.offer-action{grid-row:3;grid-column:1/-1;justify-self:start;margin-top:.3rem}
 .mast-inner nav{gap:0;flex-wrap:wrap}.mast-inner nav a{font-size:.94rem;padding:.3rem .42rem}
 .mast-inner nav a:last-child{margin-left:.15rem}.footer-inner>a:first-of-type{margin-left:0}
}
@media(max-width:25rem){.construct nav button{padding:.5rem .8rem}.mast-inner nav a{padding:.3rem .31rem;font-size:.9rem}}
@media(max-width:45rem){
 .mast-inner:has(nav[aria-label]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding-block:.3rem .15rem}
 .mast-inner:has(nav[aria-label]) .brand{grid-area:1/1/2/4;justify-self:start}
 .mast-inner nav[aria-label]{display:contents}
 .mast-inner nav[aria-label] a{grid-row:2;justify-content:center;font-size:1rem;padding:.2rem 0;white-space:nowrap}
 .mast-inner nav[aria-label] a:last-child{grid-area:1/2/2/4;justify-self:end;margin:0;padding:.25rem .62rem}
}
@media(max-width:24rem){.mast-inner:has(nav[aria-label]) .brand .wordmark{width:clamp(7.75rem,37vw,9.5rem)}}
@media(prefers-reduced-motion:reduce){a,button{transition:none!important}}
