@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700&display=swap');

/* One visual language across rooms, rituals, listening and the shop.
   Namespaced tokens intentionally do not override page-specific --ink. */
:root {
  --aida-bg:#21191d; --aida-surface:#302329; --aida-paper:#f6efe3;
  --aida-ink:#30212a; --aida-gold:#dfc59b; --aida-muted:#c4b2a7;
  --aida-text:#f3e7d4; --aida-line:rgba(223,197,155,.28);
  --aida-serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --aida-sans:Manrope,Arial,sans-serif;
}
body[data-visual-page]{font-family:var(--aida-sans);-webkit-font-smoothing:antialiased}
body[data-visual-page] :is(h1,h2,h3){font-family:var(--aida-serif);font-weight:500}
body[data-visual-page] :is(button,input,select,textarea){font-family:var(--aida-sans)}
body[data-visual-page] :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--aida-gold);outline-offset:4px}
body[data-visual-page] :is(.primary,.button,.choice-button){border-radius:8px}
body[data-visual-page] :is(.primary,.button.primary):not(:disabled){background:var(--aida-gold);border-color:var(--aida-gold);color:var(--aida-ink);min-height:48px;font-family:var(--aida-sans);font-weight:600}
body[data-visual-page] :is(.primary,.button.primary):not(:disabled):hover{background:#ecd7b5}

/* Header dimensions and navigation are shared even when the page name changes. */
body[data-visual-page] :is(.shop-header,.music-header,.evening-header){max-width:1536px;min-height:104px;padding:22px 5%;background:var(--aida-bg);color:var(--aida-text);border-bottom:1px solid var(--aida-line);gap:22px}
body[data-visual-page] :is(.shop-brand>span:last-child,.music-header .brand>span:last-child,.evening-brand){font-family:var(--aida-serif);font-size:29px;font-weight:500;letter-spacing:.025em}
body[data-visual-page] :is(.shop-brand small,.music-header .brand small,.evening-brand span,.house-brand small){font:600 8px/1.4 var(--aida-sans);letter-spacing:.22em;color:var(--aida-gold);margin-top:8px}
body[data-visual-page] :is(.brand-mark,.music-header .brand>span:first-child,.brand-seal){display:grid;place-items:center;flex-shrink:0;width:38px;height:46px;border:1px solid var(--aida-line);border-radius:22px 22px 3px 3px;color:var(--aida-gold);font:29px/1 Georgia,serif}
.evening-header .evening-brand{position:relative;padding-left:52px}
.evening-header .evening-brand::before{content:'✧';position:absolute;left:0;top:0;display:grid;place-items:center;width:37px;height:45px;border:1px solid var(--aida-line);border-radius:22px 22px 3px 3px;color:var(--aida-gold);font:29px/1 Georgia,serif}
body[data-visual-page] .app-navigation{background:var(--aida-surface);color:var(--aida-text);border-color:var(--aida-line);font-family:var(--aida-sans);gap:4px;padding:4px}
body[data-visual-page] .app-navigation>a{font:500 12px/1.2 var(--aida-sans);min-height:44px;padding:10px 16px;border:0;border-radius:24px;color:var(--aida-text);text-decoration:none;justify-content:center}
body[data-visual-page] .app-navigation>a[aria-current]{background:var(--aida-gold);color:var(--aida-ink);border:0}
body[data-visual-page] .app-navigation>a:hover{background:#dfc59b18}
body[data-visual-page] .app-navigation>a[aria-current]:hover{background:#ecd7b5}
body[data-visual-page] .app-navigation--bar{background:var(--aida-bg);border-radius:0;padding:6px 20px}
body[data-visual-page] :is(.languages,.aida-language){gap:2px;padding:3px;border:1px solid var(--aida-line);border-radius:28px;background:var(--aida-bg);color:var(--aida-text);flex-shrink:0}
body[data-visual-page] .languages button{display:grid;place-items:center;min-width:42px;width:42px;min-height:42px;height:42px;padding:6px;border:0;border-radius:24px;font:500 11px/1.2 var(--aida-sans);background:transparent;color:var(--aida-text)}
body[data-visual-page] .languages button[aria-pressed=true]{background:var(--aida-gold);color:var(--aida-ink)}
body[data-visual-page] .aida-language{font:500 11px/1.2 var(--aida-sans)}
body[data-visual-page] .aida-language button{min-height:42px;min-width:42px}
body[data-visual-page] .aida-language button[aria-pressed=true]{background:var(--aida-gold)!important;color:var(--aida-ink)!important}

/* Editorial shop and evening surfaces; artwork retains its own atmosphere. */
body[data-visual-page=shop]{--deep:var(--aida-bg);--gold:var(--aida-gold);--paper:var(--aida-paper)}
body[data-visual-page=evening]{--deep:var(--aida-bg);--panel:var(--aida-surface);--gold:var(--aida-gold)}
body[data-visual-page=shop] :is(.scene-caption p,.product-title,.product-card h3,.evening-invitation h2){font-family:var(--aida-serif)}
body[data-visual-page=shop] :is(.filters button,.book-edition select){border-radius:8px}
body[data-visual-page=shop] :is(.filters button[aria-pressed=true],.book-link){background:var(--aida-surface);color:var(--aida-text)}
body[data-visual-page=shop] :is(.collection,.product-card){color:var(--aida-ink)}

/* The immersive home keeps its position system and visual effects. */
body[data-visual-page=cinema]{background:var(--aida-bg);color:var(--aida-text)}
body[data-visual-page=cinema] #experience{overflow:clip}
body[data-visual-page=cinema] #experience>header a{font-family:var(--aida-serif);font-size:36px;color:var(--aida-text)}
body[data-visual-page=cinema] :is(.tools button,.study-actions button,.study-back,.library-choice,.incense-controls button,#candle-new,#candle-create){font-family:var(--aida-sans);min-height:46px;border-radius:8px;background:#302329eb;color:var(--aida-text);border-color:var(--aida-line)}
body[data-visual-page=cinema] .study-actions #study-altar{background:var(--aida-gold);color:var(--aida-ink)}
body[data-visual-page=cinema] .panel>article{background:var(--aida-surface);color:var(--aida-text);border-color:var(--aida-line);border-radius:16px}
body[data-visual-page=cinema] :is(.panel h2,.panel h3,.study-caption h2,.cabinet-welcome p){font-family:var(--aida-serif);color:var(--aida-text)}
body[data-visual-page=cinema] :is(form input,textarea,select){background:var(--aida-bg);color:var(--aida-text);border:1px solid var(--aida-line);border-radius:8px}
body[data-visual-page=cinema] .panel p{color:var(--aida-muted)}
body[data-visual-page=cinema] #experience .secret-house-entry{background:#302329ee;color:var(--aida-gold);border-color:var(--aida-line);border-radius:12px}
body[data-visual-page=cinema] #experience .secret-house-entry strong{font-family:var(--aida-serif)}
body[data-visual-page=cinema] #experience .secret-house-entry small{color:var(--aida-muted);font-family:var(--aida-sans)}
body[data-visual-page=cinema] #study #study-music-library{background:var(--aida-surface);color:var(--aida-text);border-color:var(--aida-line);border-radius:8px;font-family:var(--aida-sans)}
body[data-visual-page=cinema] #study #study-secret-house{background:var(--aida-gold);color:var(--aida-ink);border-color:var(--aida-gold);border-radius:8px}
body[data-visual-page=cinema] #study #study-secret-house strong{font-family:var(--aida-serif)}
body[data-visual-page] .home-music{background:#21191df2;border-color:var(--aida-line);color:var(--aida-gold)}
body[data-visual-page] .home-music button{font-family:var(--aida-sans);color:var(--aida-gold)}
body[data-visual-page=secret-house] .masthead{background:var(--aida-bg);border-color:var(--aida-line)}
body[data-visual-page=secret-house] .house-brand{font-family:var(--aida-serif)}
body[data-visual-page=secret-house] .house-brand>span:last-child{font-size:24px;letter-spacing:.08em}
body[data-visual-page=secret-house] :is(dialog,.choice-button,.chapter-card,.retreat-controls,.retreat-letter){border-radius:12px}
body[data-visual-page=secret-house] .header-actions .languages{border:1px solid var(--aida-line);padding:3px}

/* Embedded rituals inherit typography, without altering candle/canvas geometry. */
body:is([data-visual-page=room],[data-visual-page=cards],[data-visual-page=living]){--gold:var(--aida-gold)}
body:is([data-visual-page=room],[data-visual-page=cards],[data-visual-page=living]) button{border-radius:8px;min-height:44px}
body:is([data-visual-page=room],[data-visual-page=cards],[data-visual-page=living]) header a{font-family:var(--aida-serif)}

@media(max-width:1000px){
  body[data-visual-page] :is(.shop-header,.music-header,.evening-header){flex-wrap:wrap;gap:18px;padding:20px 5%}
  body[data-visual-page] :is(.shop-header,.music-header)>.app-navigation,body[data-visual-page] .evening-header>[data-app-navigation]{order:3;flex-basis:100%;width:100%}
  body[data-visual-page] :is(.shop-header,.music-header,.evening-header) .app-navigation{width:100%;justify-content:stretch}
  body[data-visual-page] :is(.shop-header,.music-header,.evening-header) .app-navigation>a{flex:1;min-width:0}
}
@media(max-width:600px){
  body[data-visual-page] :is(.shop-header,.music-header,.evening-header){padding:18px 6%;gap:17px}
  body[data-visual-page] :is(.shop-brand>span:last-child,.music-header .brand>span:last-child,.evening-brand){font-size:26px}
  body[data-visual-page] .app-navigation>a{min-width:0;flex:1;padding:10px 7px;font-size:11px}
  body[data-visual-page] .app-navigation--bar{padding-inline:10px}
  body[data-visual-page=cinema] #experience>header a{font-size:30px}
  body[data-visual-page=secret-house] .masthead{height:auto;min-height:138px;padding:18px 6% 12px;display:flex;flex-direction:column;align-items:stretch;gap:14px}
  body[data-visual-page=secret-house] .house-brand{align-self:flex-start;justify-content:flex-start;width:calc(100% - 100px);min-height:46px;margin-right:100px;gap:10px}
  body[data-visual-page=secret-house] .house-brand>span:last-child{font-size:17px;letter-spacing:.04em}
  body[data-visual-page=secret-house] .house-brand small{display:block;font-size:7px;letter-spacing:.16em}
  body[data-visual-page=secret-house] .header-actions{width:100%;justify-content:space-between;flex-wrap:wrap;gap:5px}
  body[data-visual-page=secret-house] .header-actions .languages{position:absolute;right:6%;top:18px;width:auto}
  body[data-visual-page=secret-house] .header-actions>button,body[data-visual-page=secret-house] .header-actions>a{min-height:44px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Decorative line icons stay monochrome on iOS, independent of emoji fonts. */
svg.aida-arrow{display:inline-block;width:1.15em;height:1.15em;min-width:1.15em;flex:none;vertical-align:-.16em;color:inherit;overflow:visible;pointer-events:none}
svg.aida-arrow--right{transform:rotate(45deg)}
svg.aida-arrow--down{transform:rotate(135deg)}
