/* Compact bilingual introduction. Motion is automatic; OS reduced motion is respected. */
:root{--surface:#e5eee5;--page:#d6e4db;--text:#164b3d;--soft:#49685b;--border:#aec7b7;--ink:var(--text);--muted:var(--soft);--line:var(--border);--paper:var(--surface);color-scheme:light}
body{background:var(--page);color:var(--text)}
body.book-only-home #top{min-height:660px;background:#003c2d url('assets/emerald-intro.png') center/cover no-repeat;position:relative;overflow:hidden}
body.book-only-home .hero-shade{background:linear-gradient(90deg,#002e2010,#00271950);mask-image:none}
.intro-content{position:relative;z-index:1;min-height:660px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:100px 20px 70px;text-align:center;color:#f6f9ee;gap:14px}
.brand-quantum{width:min(430px,82vw);height:250px;position:relative;isolation:isolate;display:grid;place-items:center;margin-bottom:8px}
.brand-logo-wrap{width:88%;z-index:1}.brand-logo-wrap img{display:block;width:100%;height:auto;filter:brightness(0) invert(1) drop-shadow(0 0 11px #9fffc730)}
/* The supplied logo stays intact: only these eight lights orbit around it. */
.brand-orbit{position:absolute;inset:0;pointer-events:none;z-index:2}
.brand-orbit i{position:absolute;inset:0 auto auto 0;width:4px;height:4px;border-radius:50%;background:#caffdf;box-shadow:0 0 8px 2px #84ffbf88;offset-path:ellipse(47% 42% at 50% 50%);offset-rotate:0deg;animation:orbit-turn 13s linear infinite}
.brand-orbit i:nth-child(2){animation-delay:-3.25s;width:2px;height:2px;opacity:.65}.brand-orbit i:nth-child(3){animation-delay:-6.5s;width:3px;height:3px;opacity:.8}.brand-orbit i:nth-child(4){animation-delay:-9.75s;width:2px;height:2px;opacity:.5}
.orbit-two{transform:rotate(-12deg)}.orbit-two i{offset-path:ellipse(44% 32% at 50% 50%);animation-duration:19s;animation-direction:reverse;background:#f1dfaf;box-shadow:0 0 7px 1px #dcd69a70;width:3px;height:3px}
.orbit-two i:nth-child(2){animation-delay:-4.75s}.orbit-two i:nth-child(3){animation-delay:-9.5s}.orbit-two i:nth-child(4){animation-delay:-14.25s}
@keyframes orbit-turn{from{offset-distance:0%}to{offset-distance:100%}}
.intro-quantum{position:relative;max-width:100%;isolation:isolate}
#intro-title{font-size:clamp(22px,3.4vw,42px);line-height:1.5;white-space:nowrap;margin:0;font-weight:700}
html[lang=en] #intro-title{font-size:clamp(20px,3.2vw,40px)}
#intro-canvas{display:none;position:absolute;pointer-events:none;z-index:1}
.intro-quantum.motion-ready #intro-canvas{display:block}
.intro-quantum.motion-ready #intro-title{color:transparent;text-shadow:none}
.intro-line{font-size:clamp(16px,1.6vw,20px);line-height:1.7;color:#e2ecdf;margin:0}.intro-entry{border:1px solid #d5eac77d;color:#f9f9ee;border-radius:100px;padding:12px 36px;margin:12px 0 5px;font-size:16px;background:#f0fff70a;transition:background .2s}.intro-entry:hover{background:#edf9dc22}.intro-footnote{font-size:12px;color:#c6d8bd}
.site-header:not(.scrolled){color:#f7f8ed}.site-header:not(.scrolled) .logo img{filter:brightness(0) invert(1)}.site-header:not(.scrolled) .nav-cta{background:transparent;border-color:#d5eac755}.nav-actions{gap:9px}.nav-cta{display:none!important}
.preference-button{min-width:46px;min-height:42px;padding:8px 13px;border:1px solid currentColor;border-radius:30px;color:inherit;background:transparent;font:inherit;font-size:13px;cursor:pointer}.preference-button:focus-visible,.intro-entry:focus-visible{outline:3px solid #d7bb75;outline-offset:4px}
/* The icon names the mode this button switches to; its label stays bilingual. */
#theme-toggle{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;flex:none}
#theme-toggle svg{grid-area:1/1;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#theme-toggle .theme-sun{display:none}
html[data-theme=dark] #theme-toggle .theme-moon{display:none}
html[data-theme=dark] #theme-toggle .theme-sun{display:block}
#motion-toggle{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:7px;flex:none}
.brain-icon{grid-area:1/1;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.brain-orbit{stroke-width:.8;opacity:.65}.brain-node{fill:currentColor;stroke:none}
#motion-toggle .brain-plain{display:none}
html[data-motion=on] #motion-toggle .brain-quantum{display:none}
html[data-motion=on] #motion-toggle .brain-plain{display:block}
#motion-toggle[aria-pressed=true]{background:#9ae7c418}
.site-header.scrolled,.site-header:has(.menu-toggle[aria-expanded=true]),.mobile-nav{background:var(--surface);color:var(--text)}.site-header:has(.menu-toggle[aria-expanded=true]) .logo img{filter:none}
.library-section{background:var(--page)}.section-space{padding-block:68px}.library-section .section-heading{margin-bottom:25px}.library-section .eyebrow{display:none}.library-section .section-heading h2{font-size:32px}.library-section .section-heading p{font-size:14px}.library-tools{margin-bottom:16px}
.resource-grid{gap:30px;align-items:start}.resource-card{display:flex;flex-direction:column;text-align:start;padding:0;background:none;border:0;color:var(--text)}
.resource-card .resource-book{width:100%;padding:0}.resource-card .resource-cover{aspect-ratio:4/3;container-type:inline-size;border-radius:12px;background-position:center 68%;box-shadow:0 4px 13px #132d2012;overflow:hidden}
.resource-card .cover-head,.resource-card .cover-title,.resource-card .cover-bottom>span:first-child,.resource-card .resource-meta,.resource-card .resource-open,.resource-pages{display:none!important}
.resource-card .cover-bottom{inset:5% 6% auto auto;width:60px;height:35px;position:absolute;padding:0;border:0;display:flex!important}.resource-card .cover-bottom .book-brand{width:60px;height:35px}
.resource-card .resource-cover::after{content:none}.resource-card h3{margin:17px 0 5px;font-size:23px;line-height:1.5;color:var(--text)}.resource-card>p{font-size:15px;line-height:1.6;margin:0;color:var(--soft)}.resource-card:hover h3{text-decoration:underline;text-underline-offset:5px}.resource-card:focus-visible{outline:3px solid #ad8a4e;outline-offset:8px;border-radius:12px}
.start-section{background:var(--surface);border-color:var(--border)}.start-copy .eyebrow,.start-copy .start-steps,.start-copy>p:not(.privacy-note),.planner-footer{display:none}.start-copy h2{font-size:34px}.start-copy .privacy-note{color:var(--soft)}.planner,.plan-result{background:var(--page);color:var(--text)}.planner input{background:var(--surface);color:var(--text);border-color:var(--border)}.planner-header,.planner-footer{border-color:var(--border)}
.simple-about{max-width:740px;text-align:center;padding-block:55px}.simple-about h2{font-size:25px;margin:0 0 14px}.simple-about p{font-size:16px;line-height:1.9;color:var(--soft)}.simple-about a{font-size:12px;text-decoration:underline;text-underline-offset:4px}.simple-about small{display:block;margin-top:17px;font-size:11px;color:var(--soft)}.about-section{background:var(--page);color:var(--text);border-color:var(--border)}
.site-footer{background:var(--surface);color:var(--text);border-color:var(--border)}.site-footer p,.footer-bottom{color:var(--soft)}
.quantum-button::before,.button-surface::after,.quantum-particles{display:none;animation:none}.quantum-button{box-shadow:none}
.reader-identity{display:none}
#intro-title{color:#f6f9ee;letter-spacing:0;font-family:inherit}
.about-section{padding:0}
html[data-theme=dark] .start-copy h2,html[data-theme=dark] .start-copy h2 em,html[data-theme=dark] .planner-header,html[data-theme=dark] .planner label,html[data-theme=dark] .plan-result p,html[data-theme=dark] .result-tip,html[data-theme=dark] .plain-button{color:var(--text)}
[dir=ltr] .reader-viewport{direction:ltr}[dir=ltr] .reader-spread{direction:ltr}[dir=ltr] .reader-page{text-align:left}[dir=ltr] .reader-hinge{right:auto;left:0;transform-origin:right center}[dir=ltr] .reader-dialog[data-phase=open] .reader-hinge{transform:rotateY(178deg)}[dir=ltr] .reader-cover-title{text-align:left}[dir=ltr] .reader-page-practice ol{padding-left:25px;padding-right:0}[dir=ltr] .reader-page-practice li::marker{direction:ltr}[dir=ltr] input{text-align:left}[dir=ltr] .resource-cover .cover-bottom{right:auto;left:6%}
html[data-theme=dark]{--surface:#15362b;--page:#0c231c;--text:#edf2e5;--soft:#bfcec0;--border:#365044;color-scheme:dark}
/* Keep inherited editorial headings readable on the existing dark palette. */
html[data-theme=dark] :is(.library-section .section-heading h2,.simple-about h2){color:var(--text)}
html[data-theme=dark] .site-header.scrolled .logo img,html[data-theme=dark] .site-header:has(.menu-toggle[aria-expanded=true]) .logo img,html[data-theme=dark] .site-footer .logo img{filter:brightness(0) invert(1)}
html[data-theme=dark] .filter,html[data-theme=dark] .filter-button,html[data-theme=dark] .search-box,html[data-theme=dark] .library-search,html[data-theme=dark] .search-examples button{background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme=dark] .library-search input,html[data-theme=dark] .search-box input{color:var(--text)}html[data-theme=dark] input::placeholder{color:#a8bdac}html[data-theme=dark] .filters button{color:var(--soft)}html[data-theme=dark] .filters button.active{color:#fff;background:#276b50}html[data-theme=dark] .reader-page,html[data-theme=dark] .book-four-flow,html[data-theme=dark] .privacy-dialog{background:var(--surface);color:var(--text)}html[data-theme=dark] .reader-page p,html[data-theme=dark] .reader-page li,html[data-theme=dark] .reader-kicker,html[data-theme=dark] .reader-note,html[data-theme=dark] .four-copy,html[data-theme=dark] .four-hint,html[data-theme=dark] .four-privacy{color:var(--soft)}html[data-theme=dark] .reader-page h2,html[data-theme=dark] .reader-page h3,html[data-theme=dark] .book-four-flow h2,html[data-theme=dark] .book-four-flow h3{color:var(--text)}html[data-theme=dark] .reader-idea,html[data-theme=dark] .reader-reflection,html[data-theme=dark] .reader-example,html[data-theme=dark] .four-lesson{background:#1d4937;color:var(--text)}html[data-theme=dark] .small-button,html[data-theme=dark] .four-secondary{background:#28533e;color:#f5f7eb;border-color:#52715a}html[data-theme=dark] .four-compose input{background:#102e22;color:#fff}html[data-theme=dark] .dialog-close{background:#244e3b;color:#fff}html[data-theme=dark] .reader-page::before,html[data-theme=dark] .reader-page::after{opacity:.15}
/* Muted emerald surfaces for the light library only. Keep the approved dark
   palette, original hero photograph, individual book art and PDFs unchanged. */
html:not([data-theme=dark]) .library-toolbar{border-color:var(--border)}
html:not([data-theme=dark]) .filters .filter{color:var(--soft)}
html:not([data-theme=dark]) .filters .filter:hover{background:#c4d9ca}
html:not([data-theme=dark]) .filters .filter.active{background:#276b50;color:#f1f6ef}
html:not([data-theme=dark]) .library-search input{color:var(--text);background:transparent;border-color:#6b8a77}
html:not([data-theme=dark]) :is(.library-search svg,.search-examples,.result-tip){color:var(--soft);stroke:currentColor}
html:not([data-theme=dark]) input::placeholder{color:#526e5e}
html:not([data-theme=dark]) .search-examples>button{color:var(--text);background:var(--surface);border-color:var(--border)}
html:not([data-theme=dark]) .search-examples>button:hover{background:#c4d9ca;border-color:#789b87}
html:not([data-theme=dark]) :is(.empty-state,.free-label){background:#c4d9ca;color:var(--text)}
html:not([data-theme=dark]) .start-section:before{background-image:radial-gradient(#71947e 1px,transparent 1px)}
html:not([data-theme=dark]) .planner{border-color:var(--border);box-shadow:0 16px 40px #163c3110}
html:not([data-theme=dark]) .planner input{border-color:#6b8a77}
html:not([data-theme=dark]) :is(.start-copy h2,.planner-header,.planner label,.plan-result p,.plan-result .plain-button){color:var(--text)}
html:not([data-theme=dark]) .start-copy h2 em{color:#276b50}
html:not([data-theme=dark]) .planner .small-button{background:#c4d9ca;color:var(--text);border-color:#93b39f}
html:not([data-theme=dark]) .planner .small-button:hover{background:#b9d2c1}
html:not([data-theme=dark]) .privacy-dialog{background:var(--surface);color:var(--text);border-color:var(--border)}
html:not([data-theme=dark]) .privacy-dialog p{color:var(--soft)}
html:not([data-theme=dark]) .privacy-dialog .dialog-close{background:#c4d9ca;color:var(--text)}
html:not([data-theme=dark]) :is(.resource-card,.search-examples>button,.preference-button):focus-visible{outline-color:#468160}
@media(max-width:700px){body.book-only-home #top,.intro-content{min-height:590px}.intro-content{padding:90px 22px 55px}.brand-quantum{height:200px;width:330px;max-width:88vw}.nav-shell{gap:10px}.nav-actions{gap:6px}.preference-button{min-width:40px;padding:7px 9px}.site-header .logo{width:82px}.site-header .search-trigger{display:none}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 17px}.resource-card h3{font-size:18px}.resource-card>p{font-size:13px}.resource-card .cover-bottom,.resource-card .cover-bottom .book-brand{width:46px;height:28px}.resource-card .resource-cover{aspect-ratio:1/1}.section-space{padding-block:45px}.start-grid{gap:24px}.start-copy h2{font-size:26px}.reader-dialog[data-phase=open] .reader-hinge{transform:rotateY(-150deg)}[dir=ltr] .reader-dialog[data-phase=open] .reader-hinge{transform:rotateY(150deg)}}
@media(max-width:370px){.resource-grid{gap:24px 13px}.resource-card h3{font-size:16px}.resource-card>p{font-size:12px}.intro-line{font-size:15px}.preference-button{font-size:12px}.site-header .logo{width:70px}}
/* Explicit visitor choice also applies when the device requests less motion. */
html[data-motion=off]{scroll-behavior:auto}
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{animation:none!important;transition:none!important}
html[data-motion=off] .brand-orbit{display:none}
html[data-motion=off] .intro-quantum.motion-ready #intro-canvas{display:none}
html[data-motion=off] .intro-quantum.motion-ready #intro-title{color:#f6f9ee}
html[data-motion=off] .reveal{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){html:not([data-motion=on]) .brand-orbit{display:none}html:not([data-motion=on]) .brand-orbit i{animation:none!important}html:not([data-motion=on]) .intro-quantum.motion-ready #intro-canvas{display:none}html:not([data-motion=on]) .intro-quantum.motion-ready #intro-title{color:#f6f9ee}html:not([data-motion=on]) .intro-entry{transition:none}}
