/* Shared palette and reading surfaces, including the standalone quiz. */
html:root {
  --ink:#26233e; --muted:#5d5972; --paper:#fdfcff; --accent:#7536a6;
  --line:#ded9eb; --tint:#f1eaff; --light:#f4f1fa;
}
html body {background:linear-gradient(170deg,#eaeaff 0,#f1eeff 13rem,var(--paper) 30rem) no-repeat,var(--paper); color:var(--ink)}
body .header,body[data-mode] header {background:transparent;border-color:var(--line)}
.header .seal {border-radius:45% 48% 38% 46%;background:#6134a1;transform:rotate(-4deg)}
body .page-head,body .journal .author {padding-block:clamp(2rem,6vw,4.5rem) 2rem}
.page-head h1,.journal .author h1 {font-weight:800;line-height:1.25}
.page-head p,.prose p {max-width:43em;line-height:1.95}
body .pill,body .chip {border-radius:2rem}
body .pill {background:var(--tint);border:0;color:var(--accent);font-weight:700;padding:.36rem .85rem}
body .button,body[data-mode] button {border-radius:.75rem}
body .button:hover {background:#532677;color:white}
body .button.secondary:hover {background:var(--tint);color:var(--accent)}
body .notice,.prose blockquote {background:var(--tint);border-radius:0 1rem 1rem 0;border-left:4px solid var(--accent)}
body .filters {background:var(--light);padding:clamp(1rem,3vw,2rem);border:0;border-radius:1.4rem}
body input[type=search] {border-radius:.75rem}
body .book-card {background:white;border-radius:1rem;box-shadow:0 6px 18px #3625540a}
body .book-card:hover {border-color:var(--accent);box-shadow:0 7px 21px #36255416}
body .book-cover {border-radius:2px 10px 10px 2px;background:linear-gradient(150deg,var(--tint),#e4eafa)}
body .book-card:nth-child(2n) .book-cover {background:#fce6e8;color:#80354d;border-color:#a64465}
body .card-directory {background:var(--light)}
body .reading-card h2 span {color:var(--accent)}
body .reading-card details {background:var(--light)}
body .row {border-top:1px solid var(--line);padding-block:1.7rem}
body .row .number {color:#783c97;font-style:italic}
body .about-avatar {border-radius:2.5rem 4rem 2rem 4rem}
body .prose h2 {font-size:clamp(1.45rem,3vw,2rem);scroll-margin-top:1rem}
body .prose h3 {color:#56346c}
.article-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,15rem);gap:clamp(2rem,5vw,5rem);align-items:start}
.article-menu {grid-column:2;grid-row:1;position:sticky;top:2rem;background:var(--light);border-radius:1rem;padding:1.15rem 1.4rem}
.article-menu a {display:block;padding:.4rem 0;color:var(--accent);font-size:.94rem}
.article-layout article {grid-column:1;grid-row:1}
body .journal aside .play {background:linear-gradient(135deg,#efe7ff,#e6edff)}
body .journal h2 {color:var(--accent)}
body .journal article small {color:var(--muted)}
body .journal article,body .journal aside section {border-color:var(--line)}
body .panel {border:1px solid var(--line);border-radius:1.4rem;background:white;box-shadow:0 8px 28px #3110440a}
body .version .number,body .score {color:#65369b}
body .option {border-radius:.9rem;background:white}
body .option:has(input:checked),body .nav .done {background:var(--tint)}
body .version .primary,body[data-mode] .primary {background:#60359a;color:white}
body .bar {border-radius:1rem;overflow:hidden;background:var(--light)}
body .nav button:hover,body .option:hover {border-color:var(--accent)}
@media(max-width:767px){
  .article-layout {display:flex;flex-direction:column;gap:1.2rem}
  .article-menu {position:static;width:100%}
  .article-layout article {width:100%}
  body .book-card {grid-template-columns:minmax(4.8rem,30%) minmax(0,1fr)}
  body .book-card .book-cover {width:100%}
}

html:root{--ink:#182d46;--accent:#a61b55;--tint:#e4f2fb;--light:#f0f7fb;--line:#d4e3eb}
html body{background:linear-gradient(#d8f2fd,#fff 29rem) no-repeat,white}
body .header{background:#bfe8fa}.initials{font:italic bold 30px Georgia,serif;color:#65389f}
body .footer{max-width:none;background:#bfe8fa;border:0;padding:36px max(5%,calc((100% - 1100px)/2));border-radius:50% 20% 0 0 / 20px 12px 0 0}
.farewell{display:flex;align-items:center;gap:18px}.farewell img{object-fit:cover;border-radius:50%;border:4px solid white;transform:rotate(-8deg)}.farewell .footer-name{font-size:19px;font-weight:bold}
@media(prefers-reduced-motion:no-preference){.arrived .farewell img{animation:hello-again .7s ease-out}@keyframes hello-again{from{opacity:.15;transform:translateY(18px) rotate(5deg)}to{opacity:1;transform:rotate(-8deg)}}}
/* Shared page ending echoes the opening sky. */
body .header{background:#a9dbf0;border-bottom:0}
body .footer{position:relative;min-height:250px;padding-top:75px;margin-top:40px;background:#a9dbf0;border-radius:46% 30% 0 0 / 34px 22px 0 0;align-items:center}
.farewell img{position:absolute;top:-38px;width:100px;height:100px;border-width:5px;box-shadow:0 8px 0 #6da9ca28}
.farewell{padding-top:12px}.farewell .footer-name{font-size:23px}.footer p{font-size:14px}
@media(prefers-reduced-motion:no-preference){.arrived .farewell img{animation:footer-peek 1s cubic-bezier(.2,.8,.3,1) both}@keyframes footer-peek{from{opacity:0;transform:translateY(45px) rotate(15deg)}to{opacity:1;transform:rotate(-8deg)}}}
@media(max-width:767px){body .footer{padding-top:70px;min-height:270px}.farewell .footer-name{font-size:20px}.farewell img{width:85px;height:85px;top:-30px}}
