
/* Marisol Vance: a book jacket you can scroll. Warm paper, midnight ink, one blood-orange line;
   Libre Caslon Display for titles, the 3D cover and the in-page chapter reader are the signature. */
:root {
  --bg: #F1ECE2; --surface: #F8F5EE; --surface-2: #E8E1D3; --line: #D6CCB8;
  --ink: #12161F; --ink-soft: #4A4E58; --heading: #12161F;
  --primary: #B13A28; --primary-ink: #FFFFFF; --primary-hover: #8E2E20;
  --accent: #12161F; --accent-ink: #F1ECE2;
  --dark: #12161F; --on-dark: #F1ECE2; --on-dark-soft: #BFC3CC;
  --kicker: #B13A28; --kicker-on-dark: #E6A396; --link: #9A3222; --field-border: #857C6C; --star: #B13A28;
  --ph-a: #E6DECF; --ph-b: #DDD4C2; --ph-edge: #857C6C;
  --display: "Libre Caslon Display", Georgia, serif; --body: "Karla", "Segoe UI", system-ui, sans-serif;
  --display-lh: 1.06;
  --radius: 2px; --radius-lg: 2px; --btn-radius: 2px; --chip-radius: 2px; --field-radius: 2px; --nav-radius: 2px;
  --brand-size: 1.5rem; --fs-h1: clamp(2.4rem, 1.4rem + 3.4vw, 4rem);
}
.eyebrow { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.foot .brand svg rect { fill: #2A3142; }
.section--dark .eyebrow { color: #E6A396; }

.book { --w: 240px; width: var(--w); aspect-ratio: 2 / 3; position: relative; flex-shrink: 0; }
.book-front { position: absolute; inset: 0; background: var(--c); color: #F1ECE2; padding: 10% 9%; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 2px 4px 4px 2px; box-shadow: inset 4px 0 6px rgba(0,0,0,.35), 0 20px 40px -18px rgba(0,0,0,.6); overflow: hidden; }
.book-front::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px); pointer-events: none; }
.bk-top { font-family: var(--body); font-size: calc(var(--w) * 0.04); letter-spacing: 0.4em; opacity: .75; }
.bk-title { font-family: var(--display); font-size: calc(var(--w) * 0.14); line-height: 0.95; margin-top: 22%; letter-spacing: 0.02em; }
.bk-line { display: block; width: 82%; height: 2px; background: var(--l); margin: 9% 0 7%; box-shadow: 0 0 12px var(--l); }
.bk-quote { font-family: "Libre Caslon Text", Georgia, serif; font-style: italic; font-size: calc(var(--w) * 0.045); opacity: .8; max-width: 85%; }
.bk-author { font-family: var(--body); font-weight: 700; font-size: calc(var(--w) * 0.06); letter-spacing: 0.3em; margin-top: auto; }
.book-spine { display: none; }
.book--3d { --w: min(340px, 70vw); transform: perspective(1400px) rotateY(-24deg) rotateX(2deg); transform-style: preserve-3d; transition: transform .6s ease; }
.book--3d:hover { transform: perspective(1400px) rotateY(-8deg); }
.book--3d .book-spine { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 38px; background: color-mix(in srgb, var(--c) 80%, #000); transform: rotateY(90deg) translateZ(19px) translateX(-19px); transform-origin: left; }
.book--3d::after { content: ""; position: absolute; left: 6%; right: -4%; bottom: -26px; height: 30px; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), transparent 70%); filter: blur(4px); z-index: -1; }

.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-book { display: flex; justify-content: center; padding: 20px 0; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.formats { font-size: 0.92rem; color: var(--ink-soft); }

.praise { background: var(--dark); color: var(--on-dark); padding-block: 36px 18px; }
.praise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.praise figure { margin: 0; display: grid; gap: 6px; text-align: center; }
.praise blockquote { margin: 0; font-family: var(--display); font-size: 1.4rem; line-height: 1.25; }
.praise figcaption { font-size: 0.85rem; color: var(--on-dark-soft); }
.praise-note { text-align: center; margin-top: 18px; color: var(--on-dark-soft); }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--ink); padding: 4px 12px; font-size: 0.85rem; }
.excerpt-card { background: var(--surface); padding: clamp(24px, 4vw, 40px); border-left: 4px solid var(--primary); display: grid; gap: 16px; }
.ex-text { font-family: "Libre Caslon Text", Georgia, serif; font-size: 1.3rem; line-height: 1.6; }
.excerpt-card .btn { justify-self: start; }

.review { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; }
.section--dark .review { border-top-color: rgba(241,236,226,.25); }
.review blockquote p { font-family: "Libre Caslon Text", Georgia, serif; font-style: italic; font-size: 1.12rem; line-height: 1.55; }
.about-split { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.shelf-item { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; }
.shelf-item .book { --w: 200px; margin-bottom: 14px; transition: transform .2s ease; }
.shelf-item:hover .book { transform: translateY(-6px); }
.si-t { font-family: var(--display); font-size: 1.5rem; }
.si-d { font-size: 0.88rem; color: var(--ink-soft); }

.news { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; background: var(--surface); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input { flex: 1 1 200px; }
.news .form-success { grid-column: 1 / -1; }

.bk-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 100px; }
.bk-row .book { --w: 220px; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; background: transparent; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--primary); }
.sl-hero { padding-block: clamp(40px, 6vw, 80px); }
.specs { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; margin: 0; justify-content: start; }
.specs dt { font-size: 0.78rem; color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 700; }
.buy { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 100px; }
.buy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.buy-btn { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--surface); }
.buy-btn:hover { background: var(--ink); color: var(--bg); }
.buy-btn span { font-variant-numeric: tabular-nums; }
.reading { background: var(--surface); }
.read-wrap { max-width: 720px; display: grid; gap: 14px; }
.chapter { font-family: "Libre Caslon Text", Georgia, serif; font-size: 1.2rem; line-height: 1.8; display: grid; gap: 1.1em; margin-top: 12px; }
.chapter p:first-child::first-letter { font-family: var(--display); float: left; font-size: 4.2rem; line-height: 0.8; padding: 8px 10px 0 0; color: var(--primary); }
.chapter-end { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.chapter-end > p { font-style: italic; color: var(--ink-soft); }
.drop::first-letter { font-family: var(--display); float: left; font-size: 3.6rem; line-height: 0.85; padding: 6px 10px 0 0; color: var(--primary); }
.seen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.seen-slot { min-height: 80px; display: grid; place-items: center; color: var(--ink-soft); opacity: .75; transition: opacity .25s ease, color .25s ease; padding: 6px 4px; }
.seen-slot:hover { opacity: 1; color: var(--ink); }
.seen-slot svg { width: 100%; max-width: 210px; height: auto; display: block; }
@media (max-width: 560px) { .seen.seen { grid-template-columns: repeat(2, 1fr); gap: 4px 10px; } .seen-slot { min-height: 64px; } }
.events { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.events li { display: grid; grid-template-columns: 160px 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ev-date { font-family: var(--display); font-size: 1.3rem; }
.ev-city { color: var(--primary); font-weight: 700; }
.ev-what strong { display: block; }
.qs { padding-left: 22px; display: grid; gap: 14px; font-family: "Libre Caslon Text", Georgia, serif; font-size: 1.1rem; }
.story-card { display: flex; justify-content: center; }
.story-card .book { --w: 260px; }

@media (max-width: 1020px) { .seen { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .hero-grid, .about-split, .news, .bk-row, .praise-row { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; }
  .book--3d { transform: perspective(1400px) rotateY(-14deg); }
  .bk-row .book { --w: 180px; }
  .events li { grid-template-columns: 1fr; gap: 2px; }
  .specs { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) { .buy-row, .seen { grid-template-columns: 1fr; } }

/* ---- Motion: page-turner (Marisol Vance) ---- */
@keyframes av-ink { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes av-swing { from { opacity: 0; transform: perspective(1400px) rotateY(-75deg) translateX(-40px); } to { opacity: 1; transform: perspective(1400px) rotateY(-24deg) rotateX(2deg); } }
@keyframes av-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes av-shadow { 0%, 100% { transform: scaleX(1); opacity: .35; } 50% { transform: scaleX(.88); opacity: .22; } }
html.mo .hero h1 { animation: none !important; }
html.mo .av-w { display: inline-block; animation: av-ink .7s ease backwards; animation-delay: calc(var(--i, 0) * 55ms + .3s); }
html.mo .hero-book { position: relative; animation: av-float 6s 1.6s ease-in-out infinite; }
html.mo .hero-book::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -6px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 22, 31, .45), transparent); animation: av-shadow 6s 1.6s ease-in-out infinite; z-index: -1; }
html.mo .book--3d { animation: av-swing 1.3s .15s cubic-bezier(.2, .7, .2, 1) backwards; transition: transform .35s ease-out; }
html.mo .praise figure blockquote { transition: transform .4s ease; }
html.mo .praise figure:hover blockquote { transform: scale(1.03); }
html.mo .shelf-item .book, html.mo .bk-row .book { transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
html.mo .shelf-item:hover .book, html.mo .bk-row:hover .book { transform: translateY(-8px) rotate(-1.5deg); }
