/* The black signature strip stays recognizable in both reading themes. */
:root {
  --rail:clamp(154px,12vw,210px);--bg:#0c0c0b;--top:#080808;--surface:#141412;
  --ink:#f5f2e9;--muted:#c1bdb1;--gold:#d1b875;--btn:#dbca97;--line:#b3a16c40;
  --panel:#1b1b17;--wash:rgba(167,128,48,.072);
}
:root[data-theme=dia] {
  --bg:#faf8f2;--top:#fffdf7;--surface:#f0ede4;--panel:#fffdf8;
  --ink:#2a271e;--muted:#595648;--gold:#785c22;--btn:#dec998;--line:#87744746;
  --wash:rgba(163,128,52,.065);
}
body{padding-left:var(--rail);background-color:var(--bg);background-image:radial-gradient(ellipse at 88% 45%,var(--wash),transparent 55%);background-attachment:fixed}
.site-rail{position:fixed;z-index:5;inset:0 auto 0 0;width:var(--rail);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;background:#000;color:#f6efdb;border-right:1px solid #b89d6034;padding:26px clamp(14px,1.6vw,29px)}
.rail-brand{display:inline-flex;align-items:center;width:100%;max-width:160px}
.rail-brand img{display:block;width:100%;height:auto}
.section-index{width:100%;display:flex;flex-direction:column;align-items:stretch}
.section-index a{display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 0;color:#b9b6ac;font-size:.91rem;line-height:1.35}
.section-index a:before{content:"";height:1px;width:10px;background:#82754d;transition:width .24s,color .24s}
.section-index a[aria-current=location]{color:#f2d993}
.section-index a[aria-current=location]:before{width:24px;background:#e2c478;box-shadow:0 0 6px #e6c88860}
.section-index a:hover{color:white}
.rail-tools{display:flex;align-items:center;gap:7px;padding-top:14px;width:100%;border-top:1px solid #ac92552c}
.rail-tools .icon-btn,.rail-tools .bag-btn,#mobile-index .icon-btn{color:#f4ecd4}
.rail-tools .bag-btn{font-size:.84rem;min-height:44px;gap:6px}
.rail-tools .icon-btn:hover,.rail-tools .bag-btn:hover{background:#27251f}
.rail-tools .bag-btn b{color:#1b1811;background:#dbc68d}
.index-toggle,#mobile-index{display:none}
#solar-field{position:fixed;left:var(--rail);top:0;width:calc(100% - var(--rail));height:100%;pointer-events:none;z-index:2}
body:has(dialog[open]) #solar-field{visibility:hidden}
.skip{z-index:8}
.landing .wrap,.ingredient-page .wrap{width:min(88%,1160px)}
.landing main,.ingredient-page main{position:relative}
.landing .hero{height:clamp(585px,85svh,920px);min-height:0;background:#080807;color:#f6f0df}
.landing .hero-photo{inset:0;width:100%;height:100%;background-image:url(assets/onix.webp);background-position:62% 52%;filter:none}
.landing .hero-photo[data-scene=onix]{width:100%;filter:none;background-position:62% 52%}
.landing .hero-photo[data-scene]:not([data-scene=onix]){width:70%;left:auto;filter:saturate(.77)}
.landing .hero-shade{background:linear-gradient(90deg,#080807 0%,#080807e8 23%,#08080772 42%,transparent 66%),linear-gradient(0deg,#0c0c0b,transparent 15%)}
.landing .hero-aura{display:none}
.landing .hero-body{height:calc(100% - 28px)}
.landing .hero-copy{width:50%}
.landing .hero h1{font-size:clamp(5.1rem,7.5vw,9rem);letter-spacing:-.052em;line-height:.9;margin:22px 0 20px}
.landing .hero-copy p{max-width:31ch;color:#d3cfc2}
.landing .hero .eyebrow,.landing .hero h1 em{color:#d6c288}
.gold-btn,.outline-btn{border-radius:28px}
.landing .hero .gold-btn{box-shadow:none}
.hero-foot{z-index:3}
.gallery-nav button{height:36px}
.landing .section{padding-block:clamp(65px,7.1vw,106px)}
.landing .section-head{align-items:end}
.landing .card{border:0;border-radius:0;background:transparent}
.landing .card-info{padding:23px 0 0;background:transparent}
.landing .product-image{aspect-ratio:1.95}
.landing .product-image:after{display:none}
.landing .card-bottom{border-top:1px solid var(--line);padding-top:14px}
.landing .collection-intro{max-width:40ch}
.landing .story{--portrait-field:#191614}
.landing .story-copy h2{font-size:clamp(4.1rem,6.5vw,6.8rem)}
.landing .letter{background:transparent}
.landing .letter-text{background:none;box-shadow:none;color:var(--ink);padding:0}
.landing .letter-text:after,.landing .letter-picture:before{display:none}
.landing .letter-text .eyebrow,.landing .letter-text h2 em,.landing .letter-text .signoff em,.landing .letter-text p:first-of-type:first-letter{color:var(--gold)}
.landing .letter-text .signoff,.landing .letter-text small{color:var(--muted)}
.landing .letter-picture{transform:none}
.landing .letter-picture img{border-radius:0}
.landing .ritual{border-top:1px solid var(--line)}
.landing footer,.ingredient-page footer{background:var(--top)}
[data-theme=dia] .landing .hero{background:#faf8f2}
[data-theme=dia] .landing .hero-shade{background:linear-gradient(90deg,#faf8f2 0%,#faf8f2f5 22%,#faf8f2c2 36%,transparent 67%),linear-gradient(0deg,#faf8f273,transparent 14%)}
[data-theme=dia] .landing .hero-copy p,[data-theme=dia] .landing .hero h1{color:var(--ink)}
[data-theme=dia] .landing .hero .eyebrow,[data-theme=dia] .landing .hero h1 em{color:var(--gold)}
[data-theme=dia] .landing .story{--portrait-field:#ece7da}
@media(min-width:901px){.ingredient-page .book-nav{display:none}.ingredient-page .materia [id]{scroll-margin-top:20px}}
@media(max-width:900px){
 :root{--rail:0px}
 body{padding-left:0}
 .site-rail{position:sticky;inset:0 0 auto;width:100%;height:62px;flex-direction:row;align-items:center;justify-content:flex-start;padding:3px 4%;border:0;border-bottom:1px solid #a88c4540}
 .site-rail>.section-index{display:none}
 .rail-brand{width:100px}
 .rail-tools{width:auto;margin-left:auto;border:0;padding:0;gap:6px}
 .rail-tools .bag-btn span{display:none}
 .index-toggle{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#eee3c7;padding:0 4px 0 15px;font-size:.85rem}
 #mobile-index[open]{display:block;position:fixed;inset:0 auto 0 0;width:min(305px,84vw);height:100dvh;max-height:none;margin:0;padding:20px 25px;border:0;border-right:1px solid #aa935566;border-radius:0;color:#eee8da;background:#050505;box-shadow:12px 0 40px #0004}
 #mobile-index::backdrop{background:#07070586;backdrop-filter:blur(3px)}
 .drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:clamp(26px,10vh,100px)}
 #mobile-index .section-index a{font-size:1.1rem;min-height:54px}
 #mobile-index[open]{animation:drawer-in .25s ease-out}
 @keyframes drawer-in{from{transform:translateX(-22px);opacity:.6}}
 .landing section[id],.ingredient-page #capa{scroll-margin-top:62px}
 .ingredient-page .book-nav{top:62px}
 .ingredient-page .materia section[id]{scroll-margin-top:126px}
}
@media(max-width:650px){
 .landing .hero{height:auto;min-height:clamp(600px,83svh,730px)}
 .landing .hero-photo,.landing .hero-photo[data-scene=onix]{width:100%;height:58%;background-position:76% 44%}
 .landing .hero-photo[data-scene]:not([data-scene=onix]){width:100%;height:58%}
 .landing .hero-shade{background:linear-gradient(0deg,#080807 0%,#080807 40%,#080807d9 50%,#08080742 63%,transparent 80%)}
 .landing .hero-body{height:auto;padding:0 0 70px}
 .landing .hero-copy{width:100%}
 .landing .hero h1{font-size:clamp(4.25rem,17vw,6.2rem);margin:14px 0}
 .landing .hero-copy p{max-width:33ch}
 .landing .section{padding-block:49px}
 .landing .story{padding-top:0}
 .landing .section-head p br{display:initial}
 .landing .products{gap:35px}
 .landing .hero-foot{bottom:13px}
 .landing .letter-picture{max-width:200px}
 [data-theme=dia] .landing .hero-shade{background:linear-gradient(0deg,#faf8f2 0%,#faf8f2 40%,#faf8f2ed 50%,#faf8f24d 63%,transparent 78%)}
}
@media(max-height:530px) and (min-width:901px){.site-rail{padding-block:6px}.rail-brand{max-width:100px}.section-index a{min-height:34px}.rail-tools{padding-top:4px}}

