/* Maison Caché — the house skin (rebrand v0.2, 3 Nov 2026).
   Loaded by every room AFTER the room's own <style>, so these rules win on equal specificity.
   Each room keeps its own palette in its :root; this file holds what every room shares:
   the header, type, controls, focus and the status bar. Tokens: Design/tokens.css. */

:root{
  --mc-ink:#171322; --mc-ink-deep:#100d18; --mc-ivory:#F3E7D0; --mc-bright-cream:#FFF5E4;
  --mc-parchment:#E7D8B9; --mc-gold:#B99550; --mc-gold-text:#D9B872;
  --mc-display:'Cormorant Garamond',Georgia,serif;
  --mc-body:'Crimson Pro',Georgia,'Times New Roman',serif;
  --mc-ease:200ms ease;
  --head-h:4.25rem;
}

/* the house keeps its crosshair; anything you can press says so */
body{cursor:crosshair}
a,button,[role="button"],[onclick],summary,label,select{cursor:pointer}
:focus-visible{outline:3px solid var(--mc-ivory);outline-offset:4px;box-shadow:0 0 0 7px var(--mc-ink)}
.on-paper :focus-visible{outline-color:var(--mc-ink);box-shadow:0 0 0 7px var(--mc-parchment)}

/* ── header — same on every room ── */
.site-head{position:sticky;top:0;z-index:150;background:var(--mc-parchment);color:var(--mc-ink);
  border-bottom:1px solid rgba(91,69,32,.35)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:var(--head-h);max-width:75rem;margin:0 auto;padding:0 clamp(1.25rem,4vw,3rem)}
.site-head .wordmark{display:inline-flex;align-items:center;min-height:44px;color:var(--mc-ink);text-decoration:none;
  font:600 clamp(1.5rem,2.6vw,1.9rem)/1 var(--mc-display);letter-spacing:0;text-transform:none}
.site-head .wordmark{gap:.75rem}
.site-head .wordmark .mark{width:76px;height:auto;aspect-ratio:1534/854;flex:none} /* brand rule: full emblem never below ~72px wide */
.site-head .site-nav{display:flex;gap:clamp(1rem,3vw,2.4rem)}
.site-head .site-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--mc-ink);text-decoration:none;
  font:500 1.125rem/1.2 var(--mc-body);letter-spacing:0;text-transform:none;border-bottom:1.5px solid transparent;transition:border-color var(--mc-ease)}
.site-head .site-nav a:hover{border-bottom-color:var(--mc-ink)}

/* the sky line sits under the header and scrolls with the page */
.moon-strip{position:absolute!important;top:calc(var(--head-h) + .9rem)!important;right:clamp(1.25rem,4vw,3rem)!important;
  left:auto!important;bottom:auto!important;z-index:20!important;
  font:600 .875rem/1.3 var(--mc-body)!important;letter-spacing:.06em!important;color:var(--mc-gold-text)!important}

/* sub-room way back (the Codex returns to the Sanctum) */
.nav-back{position:static!important;display:inline-flex!important;align-items:center;min-height:44px;margin:1rem clamp(1.25rem,4vw,3rem) 0;
  font:600 1.0625rem/1.2 var(--mc-body)!important;letter-spacing:0!important;text-transform:none!important;
  color:var(--mc-ivory)!important;text-decoration:underline!important;text-underline-offset:6px}

/* ── status bar — readable, never the navigation ── */
#house-status,#status,.house-status{background:var(--mc-ink-deep)!important;border-top:1px solid rgba(185,149,80,.28)!important;
  font-family:var(--mc-body)!important;font-size:.875rem!important;letter-spacing:.02em!important;color:var(--mc-gold-text)!important}
/* the Codex and Sanctum used a corner label; it becomes the same full-width bar as every other room */
.house-status,#sanctum-status{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
  z-index:60!important;padding:.45rem 1.4rem!important;text-align:left!important;color:var(--mc-gold-text)!important;
  background:var(--mc-ink-deep)!important;border-top:1px solid rgba(185,149,80,.28)!important;
  font:400 .875rem/1.4 var(--mc-body)!important;letter-spacing:.02em!important;opacity:1!important}
body{padding-bottom:2.6rem}
#house-status *, #status *{opacity:1}
#house-status-left,#status .l{color:var(--mc-gold-text)!important}
#house-status-right,#status .r{color:rgba(243,231,208,.78)!important;font-size:.875rem!important}
.status-dot,#status .dot{background:var(--mc-gold)!important}

/* ── controls ── */
.btn--primary{background:var(--mc-gold)!important;border-color:var(--mc-gold)!important;color:var(--mc-ink)!important;opacity:1!important}
.btn--primary:hover{background:#CBA960!important;border-color:#CBA960!important}

/* tap targets — standalone links and buttons are at least 44px tall */
.back-link,.garden-footer a,.hallway-strip-room,.btn,.btn-enter,.btn-leave,.shuffle-btn,.cat-tab,
a[style*="display:inline-block"],div[style*="flex-direction:column"] > a{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center}
#btn-s,#btn-n,.bury-btn,.keyhole-btn{min-height:44px;min-width:44px}

/* content never waits for an entrance animation — sections may still slide a little as they arrive */
.fade,.reveal.will-animate{opacity:1!important}

/* ── room hero art (illustration beside the room's opening words) ── */
.room-art{margin:0 auto 2rem;width:min(100%,26rem)}
.room-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:50% 50% 3px 3px / 30% 30% 3px 3px;
  outline:1px solid rgba(185,149,80,.55);outline-offset:10px}

@media (max-width:820px){
  :root{--head-h:6.4rem}
  .site-head .wrap{flex-direction:column;align-items:flex-start;gap:0;padding-top:.35rem;padding-bottom:.2rem}
  .site-head .wordmark{font-size:1.55rem}
  .site-head .site-nav{width:100%;justify-content:space-between;gap:.5rem}
  .site-head .site-nav a{font-size:1.0625rem}
  .moon-strip{top:calc(var(--head-h) + .6rem)!important;font-size:.8125rem!important}
}
@media (max-width:360px){ .site-head .site-nav a{font-size:1rem} }
