/* Two complete palettes; photography keeps its original colour and contrast. */
:root{
  --muted:#575d51;
  --surface:#e0dcd2;
  --surface-soft:#f1eee7;
  --footer-surface:#d9d5ca;
  --header-surface:rgba(234,231,223,.96);
  --accent:#515c46;
  --placeholder:#5a6253;
  --muse-filter:brightness(0);
  --halo:rgba(73,86,58,.18);
  --hero-wash:linear-gradient(180deg,rgba(234,231,223,.66),rgba(234,231,223,.18) 24%,transparent 50%,rgba(234,231,223,.22) 62%,rgba(234,231,223,.93) 100%);
  --hero-shadow:0 1px 25px rgba(234,231,223,.6);
  --curtain:#e0dcd2;
}
:root[data-theme="dark"]{
  --paper:#101210;
  --ink:#f0ede5;
  --muted:#b0b4a7;
  --line:rgba(240,237,229,.25);
  --surface:#1c1f1a;
  --surface-soft:#171a15;
  --footer-surface:#090c09;
  --header-surface:rgba(16,18,16,.96);
  --accent:#c5cea8;
  --placeholder:#aeb5a3;
  --muse-filter:none;
  --halo:rgba(197,206,168,.17);
  --hero-wash:linear-gradient(180deg,rgba(9,12,9,.88),rgba(9,12,9,.46) 25%,rgba(9,12,9,.04) 48%,rgba(9,12,9,.4) 63%,rgba(9,12,9,.97) 100%);
  --hero-shadow:0 2px 24px rgba(0,0,0,.7);
  --curtain:#171a15;
  color-scheme:dark;
}
html{background:var(--paper)}
body,.archive-page,.legacy,.next-story,.site-footer,.gallery-dialog,.portal{color:var(--ink)}
.archive-page,.legacy,.next-story,.gallery-dialog{background:var(--paper)}
.archive-page{--line:inherit}
.site-footer{background:var(--footer-surface)}
body[data-page="archive"] .site-header{color:var(--ink)}
.site-header.is-scrolled,body[data-page="archive"] .site-header.is-scrolled{background:var(--header-surface);border-color:var(--line)}
.header-brand img,body[data-page="archive"] .header-brand img,.footer-brand>img,.maison-emblem>img,.filter-assistance img,.page-transition>img{filter:var(--muse-filter)}
.cover{background:var(--surface)}
.cover-wash{background:var(--hero-wash)}
.cover-note,.cover-edition,.cover-title,.cover-bottom{text-shadow:var(--hero-shadow)}
.cover-bottom{border-color:var(--line)}
.photo-link,.photo-button,.collection-cover .photo-button{background:var(--surface)}
.photo-expand{background:var(--header-surface);color:var(--ink)}
.index-heading>p,.index-preview figcaption,.row-number,.row-title>small,.archive-note,.legacy-copy>.label,.legacy-copy>p,.legacy-foot,.footer-top>p,.footer-bottom{color:var(--muted)}
.collection-row.is-previewed,.collection-row:hover,.menu-body nav a:hover,.submit-button:hover,.plan-row summary:hover .plan-name>span,.search-result:hover .search-result-title,.local-service-link:hover{color:var(--accent)}
.home-invitation h2>span,.collection-copy h1>span,.contact-intro>p>span,.catalog-heading h1 em{color:var(--accent)}
.next-story>a,.footer-bottom,.footer-navigation,.replay-entry,.gallery-top,.gallery-bottom{border-color:var(--line)}
.maison-emblem:before{border-color:var(--line);opacity:.5}
.form-field input::placeholder,.form-field textarea::placeholder,.site-search-form input::placeholder{color:var(--placeholder);opacity:1}
.plan-row[open],.search-result-emblem{background:var(--surface-soft)}
.gallery-stage>button{background:var(--surface);border-color:var(--line)}
.gallery-thumbs>button[aria-pressed="true"]{border-color:var(--ink)}
.portal-panel{background:var(--paper)}
.portal-halo{border-color:var(--halo);box-shadow:0 0 140px 20px var(--halo),inset 0 0 70px var(--halo)}
.portal-halo:before{border-color:var(--halo)}
.portal-muse img{filter:var(--muse-filter)}
.muse-ground{background:var(--ink)}
.portal-core>.label,.portal-core>p:not(.label),.portal-bottom{color:var(--muted)}
.portal-enter{border-color:var(--accent)}
.page-transition>span{background:var(--curtain)}
/* The Musa cursor uses difference blending and stays white in both themes. */
.musa-cursor>img{filter:none}

/* The header changes mode in one tap; the menu and entrance show both choices. */
.theme-toggle,.theme-options{display:none}
.theme-enabled .theme-toggle{display:inline-flex}
.theme-enabled .theme-options{display:inline-flex}
.theme-toggle{align-items:center;justify-content:center;gap:9px;min-height:44px;min-width:44px;padding:0 10px;border:1px solid var(--line);border-radius:30px;color:inherit;flex-shrink:0}
.theme-toggle svg,.theme-options svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.3;fill:none;flex-shrink:0}
.theme-toggle .theme-sun{display:none}
.theme-toggle [data-theme-label]{font-size:9px;letter-spacing:.06em;text-transform:uppercase}
[data-theme="dark"] .theme-toggle .theme-sun{display:block}
[data-theme="dark"] .theme-toggle .theme-moon{display:none}
.theme-toggle:hover{background:var(--surface-soft)}
.theme-options{align-items:center;border:1px solid var(--line);padding:3px;border-radius:30px;gap:3px;flex-shrink:0}
.theme-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;min-width:91px;padding:8px 15px;border-radius:24px;font-size:10px;letter-spacing:.04em}
.theme-options button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.theme-options button:focus-visible{outline-color:var(--ink);outline-offset:5px}
.theme-options button:not([aria-pressed="true"]):hover{background:var(--surface)}
.menu-appearance{display:none;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:15px 0;margin-top:auto}
.theme-enabled .menu-appearance{display:flex}
.menu-appearance>.label{color:var(--muted);font-size:9px}
.portal .theme-options{position:absolute;left:50%;bottom:19px;transform:translateX(-50%);z-index:3;background:var(--paper)}
.portal .theme-options button{font-size:9px;min-width:86px}
.portal.is-leaving .theme-options{opacity:0;pointer-events:none;transition:opacity .25s}
.header-actions{gap:18px}
@media(min-width:761px) and (max-width:1250px){.header-actions .header-contact{display:none}}
@media(max-width:760px){
  .header-actions{gap:9px}
  .header-search{justify-content:center;min-width:40px}
  .theme-toggle{width:44px;padding:0}
  .theme-toggle [data-theme-label]{display:none}
  .theme-toggle svg{width:19px;height:19px}
  .menu-appearance{gap:12px;padding:12px 0}
  .menu-appearance>.label{font-size:8px}
  .theme-options button{min-width:77px;font-size:9px;padding:8px 12px}
  .navigation .menu-body{padding-top:23px;padding-bottom:23px;min-height:200px}
  .portal .theme-options{bottom:20px}
  .portal-bottom{display:none}
  .portal-core{padding-bottom:88px}
}
@media(max-width:420px){.header-actions .header-archive{display:none}}
@media(prefers-reduced-motion:no-preference){body,dialog,.archive-page,.legacy,.next-story,.site-footer,.plan-row,.photo-expand,.theme-toggle,.theme-options button{transition:background-color .3s,color .3s,border-color .3s}}
