:root{color-scheme:light;--ink:#202123;--muted:#55534e;--paper:#f8f5ef;--night:#16191b;--cream:#f9f2e5;--gold:#ffc17e;--rust:#843725;--line:#d7cec2;--display:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1.05rem/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration-color:currentColor;text-underline-offset:.19em}
a:hover{text-decoration-thickness:.14em}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #627fea;outline-offset:4px}
[hidden]{display:none!important}
img{display:block;max-width:100%;height:auto}
figure,p,h1,h2,h3{margin:0}
p+p{margin-top:1em}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.08;text-wrap:balance}
h1{font-size:clamp(3.3rem,7.9vw,7.2rem);letter-spacing:-.06em;max-width:10.8ch}
h1 em{color:var(--gold);font-weight:400}
h2{font-size:clamp(2.35rem,5vw,4.65rem);letter-spacing:-.044em;margin:0 0 .35em}
h3{font-size:clamp(1.5rem,2.8vw,2.05rem);letter-spacing:-.025em;margin:0 0 .45em}
.shell{width:min(1180px,calc(100% - 3rem));margin-inline:auto}
.mast{background:var(--night);color:var(--cream);border-bottom:1px solid #414143}
.mast-inner{min-height:4.15rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.brand{font-weight:720;letter-spacing:.06em;text-decoration:none}
.brand span{color:var(--gold)}
nav{display:flex;gap:clamp(.6rem,2.6vw,2.25rem);flex-wrap:wrap}
nav a,.mast-inner>a:not(.brand){font-size:.9rem;text-decoration:none}
nav a:hover,.mast-inner>a:not(.brand):hover{text-decoration:underline}
.hero{background:radial-gradient(ellipse at 86% 10%,#4a352d 0%,var(--night) 48%);color:var(--cream);padding:clamp(2.7rem,7vw,6rem) 0}
.hero-grid{display:grid;grid-template-columns:1.45fr .82fr;gap:clamp(2rem,6vw,6.8rem);align-items:center}
.eyebrow{font-size:.875rem;font-weight:760;letter-spacing:.105em;color:var(--rust);margin-bottom:.9rem}
.hero .eyebrow,.moon-band .eyebrow{color:var(--gold)}
.hero .eyebrow span{margin-left:.18em}
.deck{font-size:clamp(1.1rem,2vw,1.38rem);line-height:1.5;max-width:36ch;margin-top:1.45rem;color:#efe7d8}
.partners{font-size:.91rem;color:#ddd1c0}
.primary,.proof button{display:inline-block;margin-top:1.5rem;padding:.7rem 1.04rem;border:1px solid transparent;border-radius:.2rem;text-decoration:none;font-weight:660;background:var(--gold);color:#2a1a14}
.primary:hover{background:#ffd7ad}
.portrait{max-width:390px;justify-self:end}
.portrait img{width:100%;aspect-ratio:.87;object-fit:cover;object-position:center 24%;border:1px solid #887567}
figcaption{display:grid;gap:.2rem;margin-top:.8rem;font-size:.87rem;line-height:1.45}
figcaption strong{font-size:1rem}
.portrait figcaption span{color:#ddd1c0}
.moon-band{background:#222229;color:var(--cream);border-top:1px solid #49434a}
.moon-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;padding-block:2.35rem}
.moon-grid h2{font-size:clamp(1.85rem,3.4vw,3rem)}
.moon-grid p:not(.eyebrow){max-width:52ch;color:#eee1d3}
.moon-scene{isolation:isolate;display:grid;place-items:center;position:relative;min-height:180px;padding:.75rem 3.1rem .75rem .25rem;border-radius:.3rem;background:radial-gradient(ellipse at 92% 17%,#77483070,transparent 27%),radial-gradient(ellipse at 48% 125%,#75586f,#151622 65%)}
.distant-sun{position:absolute;right:7%;top:17%;width:13px;aspect-ratio:1;border-radius:50%;background:#fff1c3;box-shadow:0 0 10px 4px #ffd384,0 0 29px 6px #ff9259;z-index:-1}
.calculator{width:min(100%,320px);padding:.72rem .82rem .85rem;border-radius:.65rem;background:#302a28;border:1px solid #796557;box-shadow:0 9px 26px #0009,inset 0 1px #b69772}
.calculator-mark{display:flex;justify-content:space-between;font-size:.74rem;letter-spacing:.14em;font-weight:660;color:#f8e1cc}
.display{display:grid;justify-items:end;gap:.45rem;background:#240d10;box-shadow:inset 0 2px 6px #0009;padding:.47rem .63rem;color:#ff8172;text-shadow:0 0 8px #ff442c;font:1.65rem/1.02 ui-monospace,monospace;margin-top:.32rem}
.led-row{display:flex;align-items:center;gap:.2rem}
.led-digit{position:relative;width:.67rem;height:1.15rem}
.led-seg{position:absolute;background:#6d2826;opacity:.43;border-radius:.1rem}
.led-seg.lit{background:#ff6755;opacity:1;box-shadow:0 0 5px #ff4737}
.led-seg:nth-child(1),.led-seg:nth-child(4),.led-seg:nth-child(7){width:.46rem;height:.11rem;left:.106rem}
.led-seg:nth-child(1){top:0}.led-seg:nth-child(4){bottom:0}.led-seg:nth-child(7){top:.52rem}
.led-seg:nth-child(2),.led-seg:nth-child(3),.led-seg:nth-child(5),.led-seg:nth-child(6){height:.39rem;width:.11rem}
.led-seg:nth-child(2){right:0;top:.11rem}.led-seg:nth-child(3){right:0;bottom:.11rem}.led-seg:nth-child(5){left:0;bottom:.11rem}.led-seg:nth-child(6){left:0;top:.11rem}
.led-punctuation{font-size:1.2rem;line-height:1rem}
.calculator-keys{display:flex;gap:.29rem;justify-content:flex-end;margin-top:.52rem}
.calculator-keys i{width:1.3rem;height:.35rem;border-radius:.14rem;background:#938477;box-shadow:0 1px 2px #000}
.calculator-keys i:last-child{background:#bb745d}
.section{padding-block:clamp(3.7rem,8vw,7rem);scroll-margin-top:1rem}
.split,.archive-grid{display:grid;grid-template-columns:1.22fr .78fr;gap:clamp(1.7rem,6vw,5.4rem);align-items:start}
.equation{font:clamp(1.075rem,2vw,1.36rem)/1.55 var(--display);color:#752e20;overflow-wrap:anywhere;margin-block:.5rem .8rem}
.equation.large{font-size:clamp(1.72rem,4.25vw,3.25rem);margin-block:.3rem .55rem}
.references{font-size:.91rem;color:var(--muted)}
.proof{border:1px solid var(--line);padding:clamp(1.2rem,3vw,2.1rem);background:#eee5d7}
.proof button{background:var(--rust);color:white;margin-top:.9rem}
.proof button:hover{background:#592819}
#proof-result:not(:empty){margin-top:.8rem;font-weight:600}
.archive{background:#eee5d7}
.archive-grid{grid-template-columns:.7fr 1.3fr;align-items:center}
.facsimile{max-width:385px;justify-self:center}
.facsimile img{width:100%;border:1px solid #baaa94}
.numbers{display:grid;grid-template-columns:1fr 1fr;gap:1.35rem;margin:1.4rem 0}
.numbers>div{border-top:1px solid #bdaa96;padding-top:.62rem}
.numbers strong{font:clamp(2.15rem,4.5vw,3.6rem)/1 var(--display);color:var(--rust)}
.numbers p{margin-top:.5rem;font-size:.96rem}
.text-link{display:inline-block;margin-top:.85rem;font-weight:675}
.section-intro{max-width:68ch;margin-bottom:1.6rem}
.filters{display:flex;gap:.55rem;flex-wrap:wrap;margin:1.3rem 0 1.7rem}
.filters button{font-size:.91rem;border:1px solid #b4a596;padding:.36rem .76rem;border-radius:2rem;background:transparent;color:#493329}
.filters button[aria-pressed=true],.filters button:hover{background:var(--night);color:white;border-color:var(--night)}
.ledger{display:grid;grid-template-columns:1fr 1fr;gap:0 2rem}
.ledger article{padding:1.2rem .2rem 1.45rem;border-top:1px solid var(--line)}
.ledger article>p{margin-bottom:.55rem}
.ledger article>a{font-size:.89rem;color:#69382c}
.status{font-size:.875rem;display:inline-block;margin-bottom:.52rem;color:#34513a;font-weight:660}
.status.qualified{color:#843725}.status.open{color:#563d74}
.reflection{color:var(--cream);background:#2a2528}
.reflection .eyebrow,.reflection .references,.reflection a{color:var(--gold)}
.method{border-left:1px solid #766368;padding-left:1.45rem}
.method ol{padding-left:1.3em}
.sources ul{padding-left:1.25em}
.sources li+li{margin-top:.7rem}
.skip,.sr{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
.skip:focus{clip-path:none;height:auto;width:auto;z-index:2;padding:.5rem;background:white}
@media(max-width:700px){
.shell{width:calc(100% - 2rem)}
.mast-inner{padding-block:.7rem}
.hero-grid,.split,.archive-grid,.moon-grid,.ledger{grid-template-columns:1fr}
.hero-grid{gap:1.8rem}
.portrait{justify-self:start;max-width:310px}
.portrait img{aspect-ratio:1.16;object-position:center 22%}
.facsimile{order:2;justify-self:start}
.moon-grid{gap:1.1rem}
.numbers{gap:.9rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.patterns{background:#eadcc9}
.pattern-grid,.moon-stories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.1rem,3vw,2.35rem)}
.pattern-grid article,.moon-stories article{padding-top:1rem;border-top:1px solid #bdaa96}
.pattern-grid article>a,.moon-stories article>a{display:inline-block;color:#6c3428;font-size:.91rem;margin-top:.7rem}
.math-inline{white-space:nowrap;font-family:var(--display)}
.metta-panel{display:grid;grid-template-columns:minmax(150px,.35fr) 1fr;gap:clamp(1.2rem,3.4vw,3rem);align-items:center;margin-top:2.5rem;padding:clamp(1.2rem,4vw,2.7rem);color:var(--cream);background:#30272a}
.metta-panel .eyebrow,.metta-panel a,.metta-panel .references{color:#ffcf9c}
.sanskrit{font:clamp(3rem,10vw,7rem)/1.22 serif;text-align:center;color:var(--gold)}
.base-note{padding:1.3rem 1.5rem;background:#eee5d7;margin-top:2rem}
.pattern-grid figure{margin:.8rem 0}
.pattern-grid figure img{width:100%;max-height:230px;object-fit:contain;background:#dbcebc}
@media(max-width:760px){.pattern-grid,.moon-stories,.metta-panel{grid-template-columns:1fr}.sanskrit{text-align:left}}
.mandala{color:var(--cream);background:#151526}
.mandala .eyebrow,.mandala a{color:#ffd29b}
.mandala-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.4rem,4vw,4rem);align-items:center}
.mandala figure img{border:1px solid #6b5576;border-radius:.25rem;width:100%}
.mandala figcaption{color:#e2d4e2}
.formula-note{padding-top:1rem;margin-top:1.2rem;border-top:1px solid #6b5576;font-size:.96rem}
.formula-note ol{padding-left:1.28rem}
.formula-note li+li{margin-top:.42rem}
.artwork{background:#eee5d7}
.art-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:clamp(1.3rem,4vw,3rem);align-items:start}
.art-grid img{width:100%;border:1px solid #a78c78}
@media(max-width:760px){.mandala-grid,.art-grid{grid-template-columns:1fr}.mandala figure{order:2}}
