:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #241b32;
  --muted: #54495f;
  --purple: #5528b2;
  --purple-dark: #3b157f;
  --line: #ddd7e1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid #a16be9; outline-offset: 5px; }
section[id], article[id] { scroll-margin-top: 1.75rem; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 10; top: .75rem; left: .75rem; background: white; color: var(--ink); padding: .75rem 1rem; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { width: fit-content; display: inline-flex; gap: 9px; align-items: center; text-decoration: none; }
.brand svg { color: var(--purple); flex: none; }
.brand > span { font: 700 27px/.78 var(--serif); letter-spacing: -.06em; }
.brand-sub { display: block; margin-top: 6px; font: 750 9px/1 var(--sans); text-transform: uppercase; letter-spacing: .19em; }
nav { display: flex; align-items: center; gap: 36px; }
nav a, .plain-link { font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, .plain-link:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; width: fit-content; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-size: .88rem; font-weight: 720; line-height: 1.2; text-decoration: none; transition: background-color .18s, color .18s; }
.button svg, .card-link svg { width: 18px; height: 18px; flex: none; }
.button-nav { justify-self: end; border-color: #cfc4da; min-height: 43px; }
.button-nav:hover { background: #eee7f7; }
.primary { color: #fff; background: var(--purple); }
.primary:hover { background: var(--purple-dark); }

.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(38px, 6vw, 95px); padding-block: 53px 66px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--purple); font-size: .69rem; font-weight: 790; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.kicker i, .figure-top i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin-top: 20px; font-size: clamp(64px, 7.25vw, 110px); letter-spacing: -.082em; line-height: .87; }
h1 em, .editorial h2 em { color: var(--purple); font-weight: 400; }
.hero-intro { max-width: 365px; margin-top: 26px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.hero-art { isolation: isolate; position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1.19; overflow: hidden; border-radius: 10px; background: linear-gradient(140deg, #361771, #7247ca 59%, #482696); color: #f6eeff; }
.hero-lines { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; }
.figure-top, .hero-art figcaption { position: absolute; right: 5%; left: 5%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: clamp(.49rem, .79vw, .67rem); letter-spacing: .14em; font-weight: 730; }
.figure-top { top: 6%; padding-bottom: 11px; border-bottom: 1px solid #eee0ff64; }
.figure-top span:first-child { display: flex; align-items: center; gap: 8px; }
.figure-top i { width: 5px; height: 5px; background: #e8d4ff; }
.hero-art figcaption { bottom: 5%; padding-top: 10px; border-top: 1px solid #eee0ff64; }
.hero-art figcaption span:last-child { font-weight: 570; letter-spacing: .01em; }
.feature-cover { position: relative; display: block; width: 42%; max-width: 265px; transform: rotate(-10deg) translate(-5%, -1%); filter: drop-shadow(13px 25px 19px #160d3a9e); transition: transform .24s; }
.feature-cover:hover, .feature-cover:focus-visible { transform: rotate(-6deg) translate(-5%, -3%); }
.feature-cover::before { position: absolute; z-index: -1; content: ""; inset: 3% -5% -2% 0; border-radius: 3px; transform: skewY(2deg); background: repeating-linear-gradient(90deg, #f8efe6 0 1px, #c8bed1 2px, #f8efe6 3px); border-bottom: 4px solid #24174f; border-right: 2px solid #3c2069; }
.feature-cover img { position: relative; width: 100%; height: auto; border-radius: 3px; }

.catalog { border-top: 1px solid var(--line); background: #fdfbf7; padding-block: 53px 75px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 13px 0 27px; }
.section-head h2, .authors h2 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.07em; line-height: .98; }
.section-head p, .authors > div > p:not(.kicker) { margin-top: 13px; color: var(--muted); line-height: 1.6; }
.filters { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f5f0f8; padding: 3px; flex: none; }
.filters button { min-height: 35px; border: 0; border-radius: 3px; padding: 6px 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 720; }
.filters button:hover { color: var(--purple); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--purple); }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.book-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0dbe4; border-radius: 8px; background: #fffdfa; }
.book-art { display: grid; place-items: center; position: relative; aspect-ratio: 1.6; isolation: isolate; overflow: hidden; background-image: repeating-linear-gradient(115deg, transparent 0 34px, #2a183309 35px, transparent 36px 70px); }
.book-art > span { position: absolute; top: 14px; left: 16px; color: #3d2e516e; font-size: .72rem; font-weight: 740; letter-spacing: .14em; }
.book-art img { width: 33%; height: auto; border-radius: 2px; transform: rotate(-8deg); filter: drop-shadow(6px 13px 8px #2d16434f); }
.book-art.peach img { transform: rotate(7deg); }
.book-art.mint img { transform: rotate(-5deg); }
.lilac { background-color: #e8dcf8; }
.peach { background-color: #f2ddcf; }
.mint { background-color: #d9e8df; }
.book-copy { display: flex; flex: 1; flex-direction: column; padding: 19px 20px 20px; }
.category { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .73rem; font-weight: 640; }
.status { width: fit-content; border-radius: 4px; padding: 4px 6px; color: #523683; background: #eee3fa; }
.status.draft { color: #594536; background: #f2e8db; }
.book-card h3 { margin-top: 12px; font-size: clamp(24px, 2.45vw, 34px); line-height: 1.03; letter-spacing: -.05em; }
.book-copy > p:not(.category) { margin-top: 9px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.book-copy .byline { font-weight: 650; }
.card-link { display: flex; width: fit-content; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px; color: var(--purple); font-size: .86rem; font-weight: 740; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.editorial { background: #2b154c; color: #faf4ff; padding-block: 68px; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10%; }
.editorial .kicker, .editorial h2 em { color: #cbb2ff; }
.editorial h2 { margin-top: 17px; font-size: clamp(55px, 7vw, 102px); letter-spacing: -.075em; line-height: .87; }
.editorial-copy > p { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.62; }
.editorial ul { margin: 22px 0 0; padding: 0; list-style: none; }
.editorial li { display: flex; gap: 16px; border-top: 1px solid #ffffff41; padding-block: 12px; font-size: .88rem; line-height: 1.45; }
.editorial li b { color: #cbb2ff; font-size: .72rem; letter-spacing: .1em; }

.authors { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10%; padding-block: 72px 78px; }
.authors h2 { margin-top: 15px; }
.authors .button { margin-top: 23px; }
.author-steps { list-style: none; padding: 0; margin: 0; }
.author-steps li { display: flex; gap: 15px; border-top: 1px solid var(--line); padding: 12px 0 13px; }
.author-steps li:last-child { border-bottom: 1px solid var(--line); }
.author-steps li > span { color: var(--purple); font-size: .72rem; font-weight: 750; padding-top: 4px; letter-spacing: .12em; }
.author-steps h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.author-steps p { margin-top: 3px; color: var(--muted); font-size: .87rem; line-height: 1.55; }
footer { border-top: 1px solid var(--line); background: #f1edf4; }
.footer-inner { min-height: 91px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-block: 15px; }
.footer-inner p { color: var(--muted); font-size: .82rem; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(570px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; color: var(--ink); background: #fffdfa; border: 1px solid var(--line); border-radius: 9px; }
dialog::backdrop { background: #1a0d2caa; }
.dialog-shell { position: relative; padding: clamp(22px, 5vw, 40px); }
.dialog-shell h2 { margin: 10px 26px 15px 0; font-size: clamp(31px, 6vw, 51px); letter-spacing: -.065em; line-height: .98; }
.dialog-shell p:not(.kicker) { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.close { display: grid; place-content: center; position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; color: var(--ink); background: #eee7f7; border: 0; border-radius: 50%; font-size: 26px; cursor: pointer; }
.close:hover { background: #e0d2f5; }
.facts { margin: 20px 0; }
.facts > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; border-top: 1px solid var(--line); padding-block: 8px; font-size: .88rem; }
.facts dt { font-weight: 750; }
.facts dd { margin: 0; color: var(--muted); }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 34px; }
  h1 { font-size: clamp(63px, 8.3vw, 90px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .header-inner { min-height: 68px; gap: 10px; }
  nav { gap: 15px; }
  nav a, .button-nav { font-size: .76rem; }
  .button-nav { min-height: 36px; padding: 7px 9px; gap: 3px; }
  .button-nav svg { width: 13px; height: 13px; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 33px 44px; }
  h1 { font-size: clamp(62px, 13vw, 92px); }
  .hero-intro { margin-top: 20px; }
  .actions { margin-top: 21px; }
  .hero-art { max-height: 520px; }
  .feature-cover { width: 42%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .catalog { padding-block: 42px 50px; }
  .editorial, .authors { padding-block: 47px; }
  .editorial-grid, .authors { gap: 28px; grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 6px; }
  .brand { gap: 4px; }
  .brand svg { width: 25px; height: 25px; }
  .brand > span { font-size: 23px; }
  .brand-sub { font-size: 7px; }
  nav { gap: 9px; }
  nav a, .button-nav { font-size: .7rem; }
  .books { grid-template-columns: 1fr; }
  .book-art { aspect-ratio: 1.75; }
  .book-art img { width: 31%; }
  .section-head h2, .authors h2 { font-size: 43px; }
  .hero-intro { font-size: .94rem; }
  .footer-inner p { width: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
