:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --ink: #1d1831;
  --plum: #301852;
  --purple: #432473;
  --soft: #e9dffa;
  --acid: #e4f998;
  --rule: #dcd4e9;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #a0477d; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: .75rem auto auto .75rem; padding: .65rem 1rem; background: white; translate: 0 -200%; }
.skip:focus { translate: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 4.8rem; display: flex; align-items: center; gap: clamp(1.4rem, 5vw, 4rem); }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.3rem; font-weight: 850; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.mark { position: relative; display: block; height: 1.29rem; width: 1.64rem; margin-right: .03rem; }
.mark::before, .mark::after { position: absolute; top: .13rem; content: ""; width: .78rem; height: 1.01rem; background: currentColor; }
.mark::before { left: 0; border-radius: .16rem .27rem .04rem .04rem; transform: skewY(15deg); box-shadow: -.13rem .13rem 0 0 #aa8ed1; }
.mark::after { right: 0; border-radius: .27rem .16rem .04rem .04rem; transform: skewY(-15deg); box-shadow: .13rem .13rem 0 0 #aa8ed1; }
.site-header nav { display: flex; align-items: center; gap: .45rem clamp(1rem, 2.4vw, 2rem); flex-wrap: wrap; width: 100%; padding-block: .9rem; font-size: .91rem; font-weight: 650; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.search-link { margin-left: auto; }
.hero { background: var(--plum); color: var(--paper); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 1fr); align-items: center; gap: 1rem; min-height: clamp(26rem, 68vh, 40rem); padding-block: clamp(3.2rem, 8vw, 7rem); }
.hero-content { position: relative; z-index: 1; }
.date-line { color: var(--acid); text-transform: uppercase; font: 720 .81rem/1.5 var(--sans); letter-spacing: .13em; margin: 0 0 1.2rem; }
.date-line span::before { content: "·"; margin: 0 .65rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.9rem, 7vw, 6.3rem); line-height: .98; letter-spacing: -.073em; max-width: 10em; }
.deck { font-size: clamp(1rem, 1.7vw, 1.26rem); color: var(--soft); max-width: 38ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; border: 1px solid transparent; background: var(--acid); color: var(--ink); padding: .75rem 1rem; min-height: 3rem; font-weight: 700; font-size: .9rem; text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { background: #f3ffd2; }
.button-ghost { background: transparent; color: var(--paper); border-color: #ad95ce; }
.button-ghost:hover { color: var(--ink); background: var(--soft); }
.book-art { position: relative; aspect-ratio: 1 / 1; width: 98%; margin-inline: auto; }
.book-ring { position: absolute; width: 88%; height: 88%; border-radius: 50%; outline: 1px solid #9f85c7; inset: 6%; background: radial-gradient(ellipse at 43% 38%, #4f2a76, #301852 69%); }
.book-ring::before, .book-ring::after { position: absolute; content: ""; inset: 8%; border: 1px solid #a084c4; border-radius: 50%; }
.book-ring::after { inset: 18%; }
.book-covers { position: absolute; width: 86%; height: 39%; left: 7%; top: 41%; display: flex; filter: drop-shadow(0 1rem 1rem #200b3f); }
.book-covers i { width: 50%; background: var(--acid); border-radius: 0 0 .22rem 1.25rem; transform: skewY(14deg); border: 1px solid #291746; }
.book-covers i + i { border-radius: 0 0 1.25rem .22rem; transform: skewY(-14deg); background: #c1a9e7; }
.book-pages { position: absolute; width: 79%; top: 34%; left: 10.5%; height: 37%; }
.book-pages i { display: block; position: absolute; width: 49%; height: 100%; left: 0; background: #fff9e8; border: 1px solid #291746; border-radius: .55rem 2rem .15rem .4rem; transform-origin: right bottom; transform: skewY(15deg) rotate(5deg); }
.book-pages i:nth-child(2) { background: repeating-linear-gradient(0deg, #fff4d2, #fff4d2 1.1rem, #e1d1eb 1.13rem, #e1d1eb 1.18rem); transform: skewY(22deg) rotate(11deg); z-index: 2; }
.book-pages i:nth-child(n+3) { left: 49%; transform-origin: left bottom; border-radius: 2rem .7rem .4rem .15rem; transform: skewY(-15deg) rotate(-5deg); }
.book-pages i:nth-child(4) { background: repeating-linear-gradient(0deg, #f4e8fa, #f4e8fa 1.1rem, #dcc8ea 1.13rem, #dcc8ea 1.18rem); transform: skewY(-22deg) rotate(-11deg); }
.section { margin-block: clamp(3rem, 7vw, 6rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ink); margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 0; }
.section-head a { font-weight: 650; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card { min-height: 12rem; background: #eee6f7; padding: clamp(1rem, 2.6vw, 1.75rem); border-top: .3rem solid #694592; }
.feature-card:nth-child(3n+2) { background: #edf0dc; border-color: #4e6129; }
.feature-card:nth-child(3n+3) { background: #f3e1ed; border-color: #945082; }
.feature-card h3 { font-size: clamp(1.32rem, 2.2vw, 1.8rem); line-height: 1.16; margin-bottom: .5rem; overflow-wrap: anywhere; }
.feature-card h3 a, .list-card h2 a { text-decoration: none; }
.feature-card h3 a:hover, .list-card h2 a:hover { text-decoration: underline; }
.feature-card p:last-child, .list-card p:last-child { margin-bottom: 0; }
.feature-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 1.1rem; }
.caption { font-size: .78rem; font-weight: 760; margin-bottom: .6rem; }
.entry { padding-block: clamp(2.5rem, 6vw, 5.5rem); min-height: 65vh; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-bottom: 1.5rem; font-size: .86rem; }
.entry-header { max-width: 63rem; margin-bottom: 2rem; }
.entry-header h1 { font-size: clamp(2.3rem, 6.4vw, 5.25rem); line-height: 1.03; letter-spacing: -.055em; overflow-wrap: anywhere; margin-bottom: .5rem; }
.prose { max-width: 72ch; font-size: 1.05rem; overflow-wrap: anywhere; }
.prose h2, .prose h3 { font-size: 1.9rem; line-height: 1.12; margin-top: 2rem; margin-bottom: 1rem; }
.prose img, .entry-image { max-height: 38rem; object-fit: contain; margin: 0 0 1.3rem; }
.prose figure { margin: 1.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { padding: .45rem; border: 1px solid var(--rule); }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.8rem; margin-top: 1.8rem; }
.list-card { display: flex; align-items: center; gap: 1.1rem; border-top: 1px solid var(--rule); padding: 1rem 0 1.2rem; }
.list-card img { width: 5rem; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.list-card h2 { font-size: 1.35rem; margin-bottom: .32rem; line-height: 1.16; overflow-wrap: anywhere; }
.list-card p { color: #514563; font-size: .94rem; }
.search-form { max-width: 41rem; margin-bottom: 1.5rem; }
.search-form label { display: block; margin-bottom: .6rem; font-weight: 650; }
.search-form div { display: flex; gap: .75rem; }
.search-form input { min-width: 0; width: 100%; padding: .65rem .9rem; border: 1px solid #746687; background: white; color: var(--ink); }
.search-results { list-style: none; padding: 0; max-width: 41rem; }
.search-results li { border-top: 1px solid var(--rule); padding: .85rem 0; overflow-wrap: anywhere; }
.search-results p { margin: .4rem 0 0; }
.site-footer { background: #eee6f7; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; gap: 1rem 2rem; align-items: center; flex-wrap: wrap; padding-block: 1.5rem; font-size: .85rem; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { margin-left: auto; }
@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-top: .8rem; }
  .site-header nav { padding-block: .6rem .8rem; }
  .search-link { margin-left: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1.6fr) minmax(9.5rem, .9fr); }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 2rem, 78rem); }
  .header-inner { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.8rem 1rem; gap: .75rem; min-height: 0; }
  .book-art { max-width: 13.5rem; margin-left: auto; margin-right: 0; margin-top: -.2rem; }
  .date-line { font-size: .71rem; }
  .feature-grid, .card-list { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .footer-inner p:last-child { margin-left: 0; }
}
.listing-views { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0; }
.listing-views a { padding: .2rem .65rem; border: 1px solid var(--rule); text-decoration: none; font-size: .86rem; }
.listing-views a:hover { background: var(--soft); }
.related-heading { margin: 2rem 0 .5rem; font-size: 1.7rem; }
.edition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; list-style: none; margin: 0 0 2.4rem; padding: 0; }
.edition-list li { background: #eee6f7; padding: 1rem; border-top: .24rem solid #694592; }
.edition-list h2 { font-size: 1.25rem; line-height: 1.18; margin-bottom: .7rem; }
.edition-list a { font-size: .9rem; font-weight: 650; }
.list-card h3 { font-size: 1.35rem; margin-bottom: .32rem; line-height: 1.16; overflow-wrap: anywhere; }
.list-card h3 a { text-decoration: none; }
.list-card h3 a:hover { text-decoration: underline; }
.calendar-day { margin-top: 2rem; }
