/* Ava Nichols Romance – site styles */
:root {
  --teal: #5199a8;
  --teal-deep: #2f6874;
  --teal-ink: #24464e;
  --teal-light: #8dc7d3;
  --teal-wash: #eef6f8;
  --ink: #33383a;
  --muted: #687174;
  --line: #dfe5e6;
  --paper: #fbfaf8;
  --white: #fff;
  --btn: #266565;
  --btn-hover: #1b4d4d;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Lora", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --gold: #c7a14a;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 24px -12px rgba(36, 70, 78, .45), 0 2px 6px rgba(0, 0, 0, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--teal-ink); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.3rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

/* Header */
.site-header { background: #f8f8f6; text-align: center; padding: 22px 16px 0; border-bottom: 1px solid var(--line); }
.logo { display: inline-block; }
.logo img { width: 180px; height: auto; margin: 0 auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav-split .nav-left { justify-content: flex-end; } .nav-split .nav-right { justify-content: flex-start; }
.site-header nav a {
  display: block; padding: 9px 14px; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: #6b7375; text-decoration: none; border-radius: var(--radius);
}
.site-header nav a:hover { color: var(--teal-deep); background: var(--teal-wash); }
.site-header nav a[aria-current="page"] { color: var(--teal-ink); background: var(--teal-wash); }

/* Buttons */
.btn {
  display: inline-block; background: var(--btn); color: var(--white); text-decoration: none; text-align: center;
  font: 600 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--btn); border-radius: var(--radius); transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--btn-hover); }
.btn-ghost:hover { background: var(--btn); border-color: var(--btn); color: var(--white); }
.btn-light { background: rgba(255, 255, 255, .85); color: var(--teal-ink); border-color: rgba(255, 255, 255, .85); }
.btn-light:hover { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.btn-lg { padding: 16px 28px; font-size: .8rem; }

/* Sections */
.section { padding: clamp(48px, 8vw, 84px) 0; }
.section.wrap { padding-inline: 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }
.band { background: var(--teal-wash); border-block: 1px solid #dceaee; }
.band-champagne { background: linear-gradient(180deg, #faf4ea, #f4eadb); border-block: 1px solid #ecdfc9; }
.page-head { text-align: center; padding: clamp(40px, 7vw, 64px) 0 clamp(24px, 4vw, 36px); }
.page-head p { color: var(--muted); font-style: italic; margin-bottom: .4em; }
.page-head .tropes { font-style: normal; font-size: .98rem; max-width: 640px; margin: .2em auto .6em; color: var(--muted); }
.page-head .jump { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; margin-top: 1.2em; }
.page-head .jump a { color: var(--teal-deep); text-decoration: none; }

/* Covers */
.cover { box-shadow: var(--shadow); border-radius: 2px; background: #e8eef0; }
.cover-link { display: block; }
.cover-link:hover .cover { transform: translateY(-3px); }
.cover { transition: transform .2s; }

.cover-strip { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cover-strip a { text-decoration: none; color: var(--teal-ink); display: block; }
.cover-strip span { display: block; margin-top: 12px; font-weight: 600; line-height: 1.35; font-size: .98rem; }

/* Book grid */
.book-grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 28px; }
.book-card { display: grid; grid-template-columns: 170px 1fr; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px; align-items: start; }
.book-card h3 { margin-bottom: .2em; }
.book-card h3 a { color: var(--teal-ink); text-decoration: none; }
.book-card h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.series { font: 600 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 .5em; }
.subtitle { color: var(--muted); font-style: italic; font-size: .95rem; line-height: 1.45; }
.hook { font-size: .98rem; line-height: 1.6; }
.hook p { margin: 0 0 1em; }
.book-card .hook p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card-actions .btn { padding: 11px 16px; font-size: .7rem; }
.box-sets { padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
#all-books { scroll-margin-top: 16px; }

/* Book page */
.book-page { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 6vw, 64px) 0; align-items: start; }
.book-cover-col { position: sticky; top: 24px; }
.buy { display: grid; gap: 10px; margin-top: 24px; }
.buy-label { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; text-align: center; }
.crumbs { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.book-text-col h1 { margin-bottom: .25em; }
.book-text-col .subtitle { font-size: 1.08rem; margin-bottom: 1.6em; }
.blurb { max-width: 680px; }
.blurb p { margin: 0 0 1.05em; }
.reviews { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; max-width: 680px; }
.review { margin: 0 0 24px; padding: 20px 24px; background: var(--white); border-left: 3px solid var(--teal-light); border-radius: 0 6px 6px 0; font-size: .97rem; }
.review p:last-child { margin: 0; }
.stars { color: #c7a14a; letter-spacing: .12em; margin: 0 0 .4em; }

.read-next { background: var(--teal-wash); border-top: 1px solid #dceaee; padding: clamp(36px, 6vw, 56px) 0; }
.read-next-inner { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; max-width: 820px; }
.read-next h2 { font-size: 1rem; font-family: var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: .6em; }
.next-title { font-size: 1.45rem; font-weight: 600; line-height: 1.3; margin-bottom: .5em; }
.next-title a { color: var(--teal-ink); text-decoration: none; }

/* Free book */
.free-book { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; max-width: 920px; margin: 0 auto; }
.free-book h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.eyebrow { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.free-blurb { max-width: 760px; padding: clamp(40px, 7vw, 64px) 0 8px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: 22px; }
.tile h2 { font-size: 1.4rem; }
.tile p { color: var(--muted); }

/* About / VIP */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; padding-bottom: clamp(48px, 8vw, 80px); }
.about-img { border-radius: 6px; box-shadow: var(--shadow); }
.prose { max-width: 620px; }
.lead { font-size: 1.3rem; font-weight: 600; color: var(--teal-ink); }
.signoff { font-style: italic; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); text-align: center; padding: 40px 16px 32px; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0 0 .6em; }
.footer-links a { color: var(--muted); }
.copyright { font: .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.social { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.social-left { justify-content: flex-start; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--teal-deep); background: var(--white); }
.social a:hover { background: var(--teal-wash); border-color: var(--teal-light); }
.social svg { width: 19px; height: 19px; }
.icon-mask { display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.icon-bb { width: 21px; height: 21px; }

/* Featured bestseller banner */
.featured { padding: clamp(28px, 6vw, 72px) 0; }
.featured-inner {
  position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(28px, 5vw, 60px); align-items: center;
  max-width: 1000px; padding: clamp(28px, 4.5vw, 52px);
  background: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(36, 70, 78, .55), 0 8px 20px -10px rgba(36, 70, 78, .25);
}
.featured-inner::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(199, 161, 74, .6); border-radius: 9px; pointer-events: none;
}
.featured-cover { position: relative; }
.featured-cover .cover { box-shadow: 0 24px 40px -16px rgba(20, 45, 52, .6), 0 4px 10px rgba(0, 0, 0, .12); }
.featured-cover { perspective: 1100px; }
.featured-cover .cover { transform: rotateY(-14deg); transform-origin: left center; border-radius: 2px 5px 5px 2px; transition: transform .5s ease, box-shadow .5s ease; box-shadow: 18px 26px 40px -16px rgba(20, 45, 52, .55), 0 4px 10px rgba(0, 0, 0, .12); }
.featured-cover::after { content: ""; position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; pointer-events: none; transform: rotateY(-14deg); transform-origin: left center; transition: transform .5s ease;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(247,248,248,.18) 2.5%, rgba(0,0,0,.12) 5%, rgba(247,248,248,0) 9%, rgba(247,248,248,0) 88%, rgba(247,248,248,.12) 100%); }
.featured-cover:hover .cover, .featured-cover:hover::after { transform: rotateY(-4deg); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  background: linear-gradient(180deg, #ecd08a, #d4ac55); color: #1b2f34; padding: 9px 18px; border-radius: 999px;
  font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 6px 14px -8px rgba(80, 60, 10, .6);
}
.badge span { font-size: .95rem; letter-spacing: 0; }
.featured-stat { font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: #8a6a22; margin: 0 0 .35em; }
.featured h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .2em; }
.featured .subtitle { color: #4d6469; margin-bottom: 1.2em; }
.featured .hook { font-size: 1.05rem; color: #2a3a3e; }
.featured-quote { margin: 0 0 1.6em; padding: 14px 18px; background: rgba(255, 255, 255, .7); border-left: 3px solid #c7a14a; border-radius: 0 6px 6px 0; font-style: italic; color: #34474c; }
.featured-quote p { margin: 0 0 .35em; font-size: .98rem; }
.featured-quote footer { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: #8a6a22; }
.featured .btn-light { background: rgba(255, 255, 255, .7); border-color: var(--teal-ink); color: var(--teal-ink); }
.featured .btn-light:hover { background: var(--white); color: var(--teal-deep); border-color: var(--teal-deep); }
.featured-formats { margin: 14px 0 0; font-size: .92rem; color: #4d6469; }
.featured-formats a { color: var(--teal-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Book carousel */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.carousel-head p { color: var(--muted); margin: 0; }
.carousel-head h2 { margin-bottom: .25em; }
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--teal-ink); font: 400 1.7rem/1 var(--serif); cursor: pointer; padding: 0 0 4px;
}
.carousel-btn:hover:not(:disabled) { background: var(--teal-wash); border-color: var(--teal-light); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel { width: min(1120px, 100% - 32px); margin: 0 auto 36px; }
.carousel-track {
  list-style: none; margin: 0; padding: 8px 2px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide a { display: block; text-decoration: none; color: var(--teal-ink); }
.slide a:hover .cover { transform: translateY(-4px); }
.slide .series { display: block; margin: 14px 0 4px; font-size: .64rem; }
.slide-title { display: block; font-weight: 600; line-height: 1.35; font-size: 1rem; }
.quote-band { text-align: center; padding: clamp(44px, 7vw, 72px) 0; border-top: 1px solid var(--line); }
.motto { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 6vw, 3.2rem); color: var(--teal-ink); margin: 0 0 .35em; line-height: 1.2; }
.quote-band .quote { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); margin: 0 auto; max-width: 640px; }
.quote-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 980px; text-align: left; }
.quote-inner .quote { margin: 0; }
.quote-inner .motto { font-size: clamp(1.6rem, 3.6vw, 2.8rem); white-space: nowrap; }
.quote-img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .quote-inner { grid-template-columns: 1fr; text-align: center; }
  .quote-inner .motto { font-size: clamp(1.45rem, 8.8vw, 2.6rem); }
}
@media (max-width: 760px) {
  .featured .wrap.featured-inner { width: calc(100% - 24px); }
  .featured-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 30px 22px 28px; }
  .featured-text { display: contents; }
  .featured-inner .badge { order: -2; margin-bottom: 20px; }
  .featured-cover { order: -1; width: 52%; max-width: 200px; margin: 0 auto 22px; }
  .featured .hook { display: none; }
  .featured-stat .stat-sep { display: none; }
  .featured-stat span { display: block; }
  .featured-quote { text-align: left; }
  .hero-actions { justify-content: center; }
  .carousel-nav { display: none !important; }
  .carousel { width: 100%; }
  .carousel-track { grid-auto-columns: 42vw; gap: 16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* Hidden recipe pages */
.recipe-page { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 8vw, 80px); max-width: 960px; }
.recipe-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 48px); align-items: center; }
.recipe-intro h1 { margin-bottom: .5em; }
.recipe-intro p { color: #4d5a5d; font-size: 1.08rem; line-height: 1.85; }
.recipe-intro .signoff { font-style: italic; margin: 1.4em 0 0; }
.recipe-intro-img { width: 100%; border: 6px solid var(--white); box-shadow: var(--shadow); border-radius: 2px; }
.recipe-rule { border: 0; border-top: 1px solid var(--line); margin: clamp(36px, 6vw, 56px) 0 clamp(24px, 4vw, 36px); }
.recipe-title { font-size: clamp(1.4rem, 3.2vw, 1.9rem); line-height: 1.55; font-weight: 400; color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(47, 104, 116, .55); text-underline-offset: 7px; margin: 0 0 .9em; }
.recipe-card { width: auto; max-width: 100%; max-height: none; box-shadow: var(--shadow); border-radius: 4px; }
.recipe-card-link { display: inline-block; }
.recipe-intro-line { font-size: 1.12rem; line-height: 1.8; color: #4d5a5d; max-width: 820px; margin: -.2em 0 1.6em; }
.recipe-intro-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; margin-bottom: 32px; }
.recipe-intro-row .recipe-intro-line, .recipe-intro-row .recipe-photo { margin: 0; }
@media (max-width: 700px) { .recipe-intro-row { grid-template-columns: 1fr; } }
.recipe-photo { display: block; width: 100%; max-width: 533px; border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 24px; }
.recipe-tip { display: none; font-size: .9rem; color: var(--muted); font-style: italic; margin-top: .8em; }
@media (max-width: 700px) { .recipe-intro { grid-template-columns: 1fr; } .recipe-tip { display: block; } }

/* Trope ribbon */
.trope-ribbon { background: var(--teal-wash); border-block: 1px solid #dceaee; overflow: hidden; padding: 18px 0; }
.trope-track { display: flex; width: max-content; animation: trope-scroll 70s linear infinite; }
.trope-ribbon:hover .trope-track { animation-play-state: paused; }
.trope-track ul { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; }
.trope-track li { font: italic 400 clamp(1.05rem, 2.2vw, 1.3rem)/1.3 var(--serif); color: var(--teal-ink); white-space: nowrap; padding: 0 22px; display: flex; align-items: center; }
.trope-track li::after { content: "\2661"; font-style: normal; color: #c7a14a; font-size: .85em; margin-left: 44px; }
@media (max-width: 560px) { .trope-ribbon { padding: 14px 0; } .trope-track li { padding: 0 14px; } .trope-track li::after { margin-left: 28px; } }
@keyframes trope-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trope-track { animation: none; width: auto; justify-content: center; }
  .trope-track ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .trope-track ul[aria-hidden] { display: none; }
}

/* Elegant touches */
.script-kicker { font: 400 clamp(1.5rem, 3.4vw, 1.9rem)/1 var(--script); color: var(--gold); margin: 0 0 .1em; letter-spacing: 0; text-transform: none; }
.flourish::after { content: ""; display: block; width: 120px; height: 12px; margin: .45em auto 0;
  background: linear-gradient(var(--gold), var(--gold)) left center / 46px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 46px 1px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c7a14a' stroke-width='2' d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.page-head h1::after { content: ""; display: block; width: 120px; height: 12px; margin: .4em auto 0;
  background: linear-gradient(var(--gold), var(--gold)) left center / 46px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 46px 1px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c7a14a' stroke-width='2' d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.btn-gold { background: linear-gradient(180deg, #ecd08a, #d4ac55); border-color: #d4ac55; color: #1b2f34; }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--teal-ink); }
.slide .cover, .book-card .cover { transition: transform .3s ease, box-shadow .3s ease; }
.slide a:hover .cover, .cover-link:hover .cover { box-shadow: 0 22px 34px -14px rgba(36, 70, 78, .55), 0 3px 8px rgba(0, 0, 0, .1); }
.book-card { transition: box-shadow .3s ease, transform .3s ease; }
.book-card:hover { box-shadow: 0 18px 36px -22px rgba(36, 70, 78, .45); transform: translateY(-2px); }

/* Reader reviews (home) */
.reviews-home::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(255, 255, 255, .55); pointer-events: none; }
.soft-water::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(255, 255, 255, .55); pointer-events: none; }
.soft-water > * { position: relative; z-index: 2; }
.books-water { padding: clamp(36px, 6vw, 60px) 0 12px; }
.books-water .box-sets { border-top-color: rgba(36, 70, 78, .15); }
.books-water .book-card { border-color: rgba(255, 255, 255, .9); box-shadow: 0 16px 36px -26px rgba(36, 70, 78, .5); }
.loop-band { padding: clamp(36px, 6vw, 60px) 0 clamp(44px, 7vw, 70px); }
.reviews-home .rev blockquote { color: #1f3f46; }
.reviews-home .rev figcaption { color: #3f5a60; }
.rev-slider { display: grid; max-width: 760px; margin: 0 auto; text-align: center; }
.rev { margin: 0; display: none; }
.rev.active { display: block; animation: rev-in .6s ease both; }
@keyframes rev-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rev-slider { min-height: 13.5em; align-content: center; }
@media (max-width: 560px) { .rev-slider { min-height: 19em; } }
@media (prefers-reduced-motion: reduce) { .rev.active { animation: none; } }
.rev blockquote { margin: 0 0 .8em; font: italic 500 clamp(1.3rem, 2.8vw, 1.7rem)/1.5 var(--display); color: var(--teal-ink); }
.rev blockquote p { margin: 0; }
.rev blockquote p::before { content: "\201C"; } .rev blockquote p::after { content: "\201D"; }
.rev figcaption { font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rev figcaption a { color: var(--teal-deep); text-decoration: none; }
.rev .stars { margin-bottom: .6em; }
.rev-controls { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 34px); margin-top: 34px; }
.rev-controls[hidden] { display: none; }
.rev-arrow { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(36, 70, 78, .45); background: transparent; color: var(--teal-ink); cursor: pointer; padding: 0; transition: background .2s, color .2s, border-color .2s; }
.rev-arrow svg { width: 22px; height: 22px; }
.rev-arrow:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.rev-dots { display: flex; align-items: center; gap: 9px; }
.rev-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(36, 70, 78, .28); cursor: pointer; transition: width .3s ease, background .3s ease; }
.rev-dots button[aria-current="true"] { width: 34px; background: var(--btn); }
@media (max-width: 560px) { .rev-arrow { width: 46px; height: 46px; } }

/* Footer */
.site-footer { background: linear-gradient(180deg, #24464e, #173c45); color: #b9d0d5; border-top: 0; padding: 48px 16px 34px; }
.site-footer .footer-links a { color: #dce9ec; }
.site-footer .copyright { color: #8fb0b7; }
.site-footer .social a { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold); color: #ecd08a; }
.footer-cta { max-width: 620px; margin: 0 auto 36px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-cta-title { font: 500 clamp(1.4rem, 3vw, 1.8rem)/1.3 var(--display); color: #fff; margin: 0 0 18px; }

/* Fade-in on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .featured-cover .cover, .featured-cover::after { transform: none; } }

/* Top bar + split header (inspired by classic author sites) */
.topbar { background: #bcd9df url("/assets/img/watercolor.webp") center 30% / cover no-repeat; border-bottom: 1px solid rgba(36, 70, 78, .12); }
.topbar .social-top a { color: var(--teal-ink); }
.topbar .social-top a:hover { background: rgba(255, 255, 255, .45); }
.topbar .topbar-gift { color: #7a5c17; }
.topbar .topbar-gift:hover { color: var(--teal-ink); }
.topbar-inner { width: min(1180px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.social-top { margin: 0; gap: 4px; justify-content: flex-start; }
.social-top a { width: 30px; height: 30px; border: 0; background: transparent; color: var(--teal-deep); }
.social-top a:hover { background: var(--teal-wash); color: var(--teal-ink); }
.social-top svg { width: 15px; height: 15px; }
.social-top .icon-mask { width: 16px; height: 16px; } .social-top .icon-bb { width: 17px; height: 17px; }
.topbar-gift { font: 400 1.45rem/1 var(--script); color: var(--gold); text-decoration: none; padding: 2px 4px; white-space: nowrap; }
.topbar-gift:hover { color: var(--teal-deep); }
.site-header { padding: 14px 16px 10px; }
.nav-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: min(1180px, 100%); margin: 0 auto; }
.nav-split ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 6px; flex-wrap: wrap; }
.nav-left { justify-content: flex-end; } .nav-right { justify-content: flex-start; }
.nav-split .logo img { width: clamp(140px, 15vw, 180px); }
@media (max-width: 900px) {
  .nav-split { grid-template-columns: 1fr 1fr; gap: 4px 0; }
  .nav-split .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .nav-split .logo img { width: 150px; }
  .nav-left { justify-content: flex-end; } .nav-right { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-header nav a { padding: 8px 9px; font-size: .68rem; letter-spacing: .12em; }
  .topbar-inner { width: calc(100% - 16px); }
  .social-top a { width: 28px; height: 28px; }
  .topbar-gift { font-size: 1.3rem; }
  .nav-split { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
  .nav-split .logo { flex-basis: 100%; text-align: center; margin-bottom: 6px; order: -1; }
  .nav-split ul { display: contents; }
}

/* Cards with round photos */
.cards { padding-top: clamp(80px, 10vw, 110px); gap: clamp(24px, 4vw, 36px); }
.cards .tile { position: relative; background: var(--white); border: 1px solid #e7eeee; border-radius: 18px; padding: 74px 24px 30px; box-shadow: 0 18px 40px -30px rgba(36, 70, 78, .45); }
.cards .tile img { position: absolute; top: -56px; left: 50%; transform: translateX(-50%); width: 112px; height: 112px; aspect-ratio: auto; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 10px 22px -10px rgba(36, 70, 78, .45); margin: 0; }
.cards .tile h2 { font-size: 1.55rem; margin-bottom: .35em; }
.btn-text { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--btn); text-decoration: none; }
.btn-text:hover { color: var(--gold); }
@media (max-width: 860px) { .cards { row-gap: 88px; } }

/* Rounded photos */
.quote-img, .about-img { border-radius: 22px; }

/* Three-part footer */
.footer-main { width: min(1120px, 100%); margin: 0 auto 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.footer-brand { text-align: left; }
.footer-logo { width: 140px; height: auto; display: inline-block; }
.footer-name { font: 400 2.3rem/1 var(--script); color: #fff; margin: 0 0 .15em !important; }
.footer-tag { font: 600 .66rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #ecd08a; margin: 0 !important; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 0; font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-footer .footer-links a { text-decoration: none; }
.site-footer .footer-links a:hover { color: #ecd08a; }
.footer-main .social { justify-content: flex-end; margin: 0; flex-wrap: nowrap; gap: 8px; }
.footer-main .social a { width: 38px; height: 38px; }
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-main .social { justify-content: center; flex-wrap: wrap; }
}

/* Privacy policy */
.policy { max-width: 760px; padding-bottom: clamp(48px, 8vw, 80px); }
.policy h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 1.6em 0 .5em; }
.site-footer .copyright a { color: inherit; text-decoration: none; }
.site-footer .copyright a:hover { color: #ecd08a; }

/* Still watercolor "window" behind scenic sections (works on iPhone too) */
.scenic { position: relative; isolation: isolate; clip-path: inset(0); background: #bcd9df; }
.scenic::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #bcd9df url("/assets/img/watercolor.webp") center / cover no-repeat; pointer-events: none; }
.scenic > .wrap { position: relative; z-index: 2; }

/* Faded books photo behind the logo and tabs */
/* Books still life (left) and a faint blurred window with greenery (right),
   both feathered into the pale center.
   The photo is desaturated, cool-toned and has feathered edges baked in;
   the overlay sits under the logo and tabs so they stay crisp. */
.site-header {
  background:
    linear-gradient(rgba(247,248,248,.65), rgba(247,248,248,.65)),
    url("/assets/img/header-books-soft.webp") left -10px top -56px / auto 125% no-repeat,
    url("/assets/img/header-window-soft.webp") right -6px top -18px / auto 125% no-repeat,
    #f7f8f8;
}
@media (max-width: 760px) {
  .site-header { background-position: 0 0, left -6px top 132px, right -4px top 150px; background-size: auto, auto 42%, auto 42%; }
}

/* Pinned menu bar */
.site-header { position: sticky; top: 0; z-index: 60; transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease; }
.site-header .logo img { transition: width .35s ease; }
.site-header.scrolled { background: rgba(219, 238, 241, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); padding-top: 6px; padding-bottom: 6px; box-shadow: 0 8px 24px -18px rgba(36, 70, 78, .55); border-bottom-color: rgba(36, 70, 78, .12); }
.site-header.scrolled .nav-split .logo img { width: 92px; }
.site-header.scrolled nav a[aria-current="page"], .site-header.scrolled nav a:hover { background: rgba(255, 255, 255, .6); }
@media (max-width: 560px) {
  .site-header.scrolled .nav-split { align-items: center; }
  .site-header.scrolled .nav-split .logo { flex-basis: auto; margin: 0 4px 0 0; }
  .site-header.scrolled .nav-split .logo img { width: 42px; }
  .site-header.scrolled nav a { padding: 6px 7px; font-size: .64rem; letter-spacing: .1em; }
  .site-header.scrolled nav a { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .logo img { transition: none; } }

/* Phones & small tablets */
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .cover-strip { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 760px) {
  .book-page { grid-template-columns: 1fr; }
  .book-cover-col { position: static; max-width: 300px; margin-inline: auto; width: 100%; }
  .book-text-col { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .site-header { padding-top: 16px; }
  .site-header nav ul { gap: 0; }
  .site-header nav a { padding: 9px 9px; letter-spacing: .12em; font-size: .7rem; }
  .book-card { grid-template-columns: 112px 1fr; gap: 16px; padding: 16px; }
  .book-card .hook { display: none; }
  .book-card .subtitle { font-size: .88rem; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
  .read-next-inner { grid-template-columns: 104px 1fr; gap: 18px; }
  .read-next .hook { display: none; }
  .next-title { font-size: 1.15rem; }
  .free-book { grid-template-columns: 1fr; text-align: center; }
  .free-book .cover-link { max-width: 220px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
