/* Ivory, plum and coral: one palette for the complete thesis companion. */
:root{--paper:#faf7f2;--parchment:#f3edf1;--ink:#432a46;--muted:#6f6170;--forest:#432a46;--rust:#b14535;--coral:#b14535;--pink:#f2ddd7;--sage:#eee5eb;--gold:#d6af58;--line:#c9bacb;--white:#fffdfa;--reader-paper:#fffdfa;--reader-ink:#432a46;accent-color:#432a46;color-scheme:light}
body{color:var(--ink)}
body:not(.reading-book){background-color:var(--paper)!important}
body.hub,.brief-page,.credits-page,.faq-page,.author-page,.people-page,.contact-page,.single-quest{background:var(--paper)}
.hub-header,.world-bar,.site-simple-header,.faq-header,.reader-bar{background:var(--paper);color:var(--ink)}
.hub-main>h1 em,.hero h1 em,.faq-main h1 em,.quest-intro h1 em{color:var(--coral)}
.research-portal{background:var(--ink);color:var(--white)}
.hub .quest-portal,.hub .quest-portal-art{background:var(--sage);color:var(--ink)}
.hub .quest-portal-note em{color:var(--coral)}
.button:not(.light),.button.coral,.button.dark,.hub-results-shortcut,.brief-actions>a:first-child,.faq-next>a:first-of-type,#reader-settings .reader-settings-done,#reader-settings .reader-sound-test{background:var(--coral);border-color:var(--coral);color:var(--white)}
.button.light,.brief-actions>a+a,.faq-next>a+a{background:transparent;color:var(--ink);border-color:var(--ink)}
.button:not(.light):hover,.hub-results-shortcut:hover,.brief-actions>a:first-child:hover,.faq-next>a:first-of-type:hover{background:#96382c;border-color:#96382c;color:var(--white)}
.hero-actions .button{box-shadow:3px 4px 0 #732f38}
.site-help-launcher{background:var(--ink)!important;color:var(--white)!important;border-color:var(--white)!important}
.site-help-launcher:hover{background:#5a3e5d!important}
.site-author-link,.site-explore,.site-explore-panel>a,.site-explore-panel>button,.site-dialog-help{color:var(--ink)!important}
.site-explore>summary,.site-explore-panel,.site-explore-panel>button,.site-dialog-help{background:var(--white)!important;border-color:var(--line)!important}
.site-explore-panel>a:hover,.site-explore-panel>button:hover{background:var(--sage)!important}
.research-chapter-tabs{background:var(--sage);border-color:var(--line)}
.research-chapter-tabs :is(button,a){color:var(--ink)}
.research-chapter-tabs [aria-current=page],.mode-switch [aria-pressed=true]{background:var(--ink);color:var(--white)}
body.reading-book{background:#eee5eb;background-image:radial-gradient(ellipse at 0 100%,#dfcfdf 0 18%,transparent 18.2%),radial-gradient(ellipse at 100% 0,#f3e8e8 0 12%,transparent 12.2%)}
body.reading-book:has([data-mode=library][aria-pressed=true]){background:#392b40;background-image:repeating-linear-gradient(0deg,transparent 0 82px,#c9bacb12 83px 85px)}
.book-stage{background:var(--paper);border-color:var(--line);box-shadow:6px 7px 0 #d7cbd7,10px 11px 0 #432a4630}
.guide-rationale,.source-version-note,.source-note,.research-primer-card,.research-reader-question,.brief-card,.faq-item{border-color:var(--line)}
.guide-rationale{background:#f1e9ed;color:var(--ink)}
.research-reader-question[open] summary,.faq-item[open] summary{background:var(--sage);color:var(--ink)}
.faq-jumps a{background:var(--sage);border-color:var(--line)}
.faq-jumps a:hover{background:#e3d5e0}
#reader-settings,#reader-settings :is(h2,p,select){color:var(--ink)}
#reader-settings,#reader-settings select,.reader-settings-open,.reader-settings-close{background:var(--white);border-color:var(--ink)}
#reader-settings::backdrop{background:#2e2033aa}
.chapter-cover-sheet,.chapter-cover-controls{color:var(--ink)}
.mode-art,.guide-picture,.guide-image,.hero-guide-art{background-color:#f1e9ed}
.coin-pill,.coin,.treasure-totals,.rank-list,.bank-reward,.reward-badge{--gold:#d6af58}
/* The author page uses author-world, rather than author-page. */
body.author-world{--paper:#faf7f2;--ink:#432a46;--muted:#6f6170;--forest:#432a46;--rust:#b14535;--line:#c9bacb;background:var(--paper)!important;color:var(--ink)}
.author-world .author-header{background:var(--paper);color:var(--ink);border-color:var(--line)}
.author-world .author-main{background:#fffdfa;color:var(--ink);border-color:var(--line);box-shadow:7px 8px 0 #432a4612}
.author-world .author-main :is(h1,h2,.author-bio,.author-opportunity,.author-inline-links){color:var(--ink)}
.author-world .author-main .author-opportunity{border-color:var(--line)}
.author-world .author-contact-actions .button{background:#b14535;color:#fffdfa;border-color:#b14535}
.author-world .author-contact-actions .button.light{background:transparent;color:var(--ink);border-color:var(--ink)}
.author-world .author-contact-actions .button:not(.light):hover{background:#96382c;border-color:#96382c}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
