:root {
  color-scheme: light;
  --ink: #171a36;
  --muted: #50516a;
  --violet: #4e358e;
  --paper: #fdfbf9;
  --white: #fff;
  --rule: #ddd4e8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #a14169; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 3; background: white; padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav { min-height: 4.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font: bold clamp(1rem, 3.4vw, 1.3rem)/1.1 var(--serif); text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem clamp(.65rem, 3vw, 1.9rem); }
.nav nav a { font-size: .87rem; font-weight: 650; text-decoration: none; }
.nav nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .23em; }
.hero { background: radial-gradient(ellipse at 77% 36%, #e4dcf4 1%, transparent 53%), linear-gradient(115deg,#fbf0ee,#f5effb 58%,#eee7f9); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 7vw, 7.3rem); align-items: center; padding-block: clamp(2.9rem, 7vw, 6rem); }
.eyebrow { color: var(--violet); font-size: .74rem; font-weight: 780; letter-spacing: .105em; text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 6.5vw, 5.2rem); line-height: 1; letter-spacing: -.055em; margin: .75rem 0 1.3rem; text-wrap: balance; }
.lead { font: 1.35rem/1.45 var(--serif); max-width: 29rem; }
.hero .bio { margin-top: .9rem; color: var(--muted); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-radius: 999px; background: var(--ink); color: white; font-size: .87rem; font-weight: 720; text-decoration: none; }
.button:hover { background: var(--violet); }
.text-link { color: var(--violet); font-size: .9rem; font-weight: 750; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.author-bio { display: grid; grid-template-columns: clamp(3.25rem, 8vw, 4.75rem) minmax(0, 1fr); align-items: center; gap: .9rem; max-width: 33rem; margin-top: 1rem; }
.hero .author-bio .bio { margin: 0; }
.author-bio img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--white); border-radius: 50%; }
.hero-logo { width: min(100%, 25rem); justify-self: center; padding: clamp(.8rem, 2vw, 1.4rem); background: #fefefe; border: 1px solid var(--rule); border-radius: 1.6rem; box-shadow: .55rem .55rem 0 #d4c6ec; }
.hero-logo img { width: 100%; }
.feature { background: #222044; color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(2.6rem, 7vw, 5.1rem); }
.feature .eyebrow { color: #dac8fa; margin-bottom: .95rem; }
.feature h2 { max-width: 31rem; }
.feature h2 span { display: block; color: #ebe2fc; margin-top: .35rem; font-size: .7em; letter-spacing: -.035em; }
.feature p:not(.eyebrow) { color: #eee8f8; max-width: 34rem; margin-top: 1.2rem; }
.feature img { width: min(100%, 16rem); justify-self: end; border-radius: .18rem; box-shadow: .65rem .65rem 0 #49436b, 0 12px 30px #17162a; }
.feature .button { background: #f1e8ff; color: #242042; margin-top: 1.35rem; }
.feature .button:hover { background: #fff; }
.catalog { padding-block: clamp(3rem, 7vw, 5.6rem); }
.catalog.alt { background: #f1eaf7; border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head .eyebrow { margin-bottom: .7rem; }
.section-head p:not(.eyebrow) { max-width: 39rem; margin-top: .8rem; color: var(--muted); }
.section-head .text-link { flex: 0 0 auto; margin-bottom: .15rem; }
.books { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.books.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.book { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rule); border-radius: .8rem; background: white; }
.book-media { display: grid; place-items: center; min-height: 12.5rem; padding: 1.2rem .8rem; background: #f7f1e9; }
.book:nth-child(4n+2) .book-media { background: #e8f1f5; }
.book:nth-child(4n+3) .book-media { background: #edf3e9; }
.book:nth-child(4n+4) .book-media { background: #f7edf0; }
.three .book-media { background: #e4d9ef; }
.three .book:nth-child(2) .book-media { background: #f4e6d7; }
.three .book:nth-child(3) .book-media { background: #e7def3; }
.book-media img { width: auto; height: clamp(9rem, 17vw, 12.4rem); max-width: 100%; object-fit: contain; background: white; border-radius: .13rem; box-shadow: .15rem .24rem .7rem #29203b30; }
.book-body { padding: .9rem 1rem 1.2rem; }
.book h3 { font-size: clamp(1.1rem,2vw,1.45rem); line-height: 1.19; letter-spacing: -.015em; text-wrap: pretty; }
.book p { color: var(--muted); margin-top: .4rem; font-size: .82rem; }
.contact { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--paper); border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { margin-top: .75rem; color: var(--muted); }
footer { background: #222044; color: #fff; padding-block: 1.15rem; font-size: .83rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 2rem; }
  .books { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-media img { height: clamp(9.5rem, 23vw, 12rem); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { min-height: 3.8rem; gap: .4rem; }
  .nav nav a { font-size: .79rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.6rem; }
  .hero-logo { width: min(100% - .6rem, 19rem); }
  .feature-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature img { width: 10.5rem; justify-self: start; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 1.4rem; }
  .books.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .books { gap: .65rem; }
  .book-media { min-height: 9.1rem; padding: .75rem .45rem; }
  .book-media img { height: clamp(7.3rem, 31vw, 10rem); }
  .book-body { padding: .75rem .7rem .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
