:root {
  --charcoal-950: #4a2835;
  --charcoal-900: #5a3140;
  --charcoal-800: #744056;
  --paper-100: #fbf3f0;
  --paper-200: #f4e7e2;
  --ink-900: #2d2226;
  --ink-700: #5d4a50;
  --wine-700: #7f2f4d;
  --wine-600: #9a4262;
  --gold-500: #c2a06c;
  --gold-400: #d4b788;
  --line-soft: rgba(69, 35, 47, 0.16);
  --shadow-soft: 0 18px 40px rgba(58, 29, 39, 0.18);
  --shadow-card: 0 14px 28px rgba(58, 29, 39, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink-900);
  background: var(--paper-100);
  line-height: 1.65;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow-x: hidden;
}

body.page-leaving {
  opacity: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.55em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-700);
}

.eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-grid;
  gap: 0.1rem;
}

.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-review-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-review-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-review-link .arrow {
  width: 7px;
  height: 7px;
  margin-top: -1px;
}

.nav-review-menu {
  top: calc(100% + 12px);
  left: 50%;
  min-width: 248px;
  transform: translate(-50%, -8px);
  z-index: 260;
}

.nav-review-dropdown:hover .nav-review-menu,
.nav-review-dropdown:focus-within .nav-review-menu,
.nav-review-dropdown.open .nav-review-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-review-dropdown:hover .nav-review-link .arrow,
.nav-review-dropdown:focus-within .nav-review-link .arrow,
.nav-review-dropdown.open .nav-review-link .arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.52rem 0.1rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: clamp(3.8rem, 6vw, 6.3rem) 0;
}

.section-light {
  background: var(--paper-100);
}

.section-paper {
  background: var(--paper-200);
}

.section-dark {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(194, 160, 108, 0.18), transparent 45%),
    radial-gradient(circle at 12% 94%, rgba(170, 84, 111, 0.27), transparent 38%),
    linear-gradient(128deg, #653548, var(--charcoal-900) 54%, #8c4d68);
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding-top: 108px;
  padding-bottom: 4.6rem;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(46, 21, 33, 0.72), rgba(72, 33, 49, 0.52) 48%, rgba(50, 20, 34, 0.7)),
    radial-gradient(circle at center, transparent 45%, rgba(40, 14, 26, 0.28));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2.1rem, 5vw, 5rem);
  margin-top: 40px;
}

.hero-copy p {
  color: rgba(255, 244, 240, 0.9);
  max-width: 58ch;
}

.hero-stage {
  display: grid;
  place-items: center;
  padding-top: 1.1rem;
}

.hero-visual {
  position: relative;
  width: min(520px, 90vw);
  height: min(500px, 63vh);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  display: none;
}

.hero-mockup {
  position: absolute;
  width: 60%;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%) rotateY(-18deg) scale(0.95);
  transform-origin: center;
  opacity: 0;
  filter: drop-shadow(0 24px 34px rgba(50, 17, 30, 0.46));
  transition: transform 0.85s ease, opacity 0.85s ease;
  animation: floatMockup 6.4s ease-in-out infinite;
}

.hero-mockup.active {
  opacity: 1;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
}

.hero-mockup.pre-active {
  opacity: 0;
  transform: translate(-50%, -48%) rotateY(-320deg) scale(0.9);
}

.hero-mockup.rotating-out {
  opacity: 0;
  transform: translate(-50%, -54%) rotateY(360deg) scale(0.88);
}

.hero-mockup.rotating-in {
  opacity: 1;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
}

@keyframes floatMockup {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -11px;
  }
}

.section-divider {
  display: grid;
  place-items: center;
  background: var(--paper-100);
}

.page-home main > .section-divider:first-of-type {
  background: linear-gradient(128deg, #653548, var(--charcoal-900) 54%, #8c4d68);
}

.page-home main > .section-divider:first-of-type span::after {
  background: #7a435a;
}

.section-divider span {
  width: min(150px, 32vw);
  height: 1px;
  display: block;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  position: relative;
}

.section-divider span::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-500);
  background: var(--paper-100);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 4rem);
}

.author-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-soft);
}

.author-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-md);
  z-index: 1;
  pointer-events: none;
}

.author-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.93) contrast(1.03);
}

.section-head {
  margin-bottom: clamp(1.7rem, 3.5vw, 3rem);
  text-align: center;
}

.book-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.4rem, 3.5vw, 3.2rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  margin-bottom: 1.9rem;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.book-feature.dropdown-open {
  z-index: 60;
}

.book-feature.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.book-feature.reverse .book-image-wrap {
  order: 2;
}

.book-feature.reverse .book-copy {
  order: 1;
}

.book-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  background: #ece7df;
}

.book-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.book-feature:hover .book-image-wrap img {
  transform: scale(1.05);
}

.book-kicker {
  margin-bottom: 0.35rem;
  color: var(--wine-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 600;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, color 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--wine-600), var(--wine-700));
  color: #fff;
  box-shadow: 0 10px 20px rgba(107, 47, 58, 0.26);
}

.btn-outline {
  background: transparent;
  color: var(--wine-700);
  border-color: rgba(107, 47, 58, 0.45);
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--wine-700);
}

.btn-subtle {
  background: transparent;
  color: var(--ink-900);
  border-color: rgba(35, 35, 35, 0.26);
}

.btn-subtle:hover {
  border-color: var(--gold-500);
  color: var(--wine-700);
}

.hero .btn-outline,
.hero .btn-subtle {
  color: #fff3ec;
  border-color: rgba(255, 234, 223, 0.46);
}

.hero .btn-row {
  align-items: center;
  flex-wrap: nowrap;
}

.hero .btn-row > * {
  flex: 0 0 auto;
}

.hero-sample-dropdown .dropdown-toggle {
  white-space: nowrap;
}

.hero .btn-outline:hover,
.hero .btn-subtle:hover {
  color: #fff;
  border-color: rgba(255, 234, 223, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.buy-dropdown {
  position: relative;
  z-index: 10;
}

.dropdown-toggle {
  min-width: 142px;
}

.arrow {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.28s ease;
}

.buy-dropdown.open .arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 18px 30px rgba(22, 24, 28, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 120;
}

.buy-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.56rem 0.66rem;
  border-radius: 8px;
  color: var(--ink-900);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f4efe6;
  color: var(--wine-700);
}

.hero-sample-dropdown {
  z-index: 20;
}

.sample-dropdown-menu {
  min-width: 260px;
  padding: 0.45rem;
  z-index: 220;
}

.sample-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
}

.sample-dropdown-menu a + a {
  border-top: 1px solid rgba(88, 55, 66, 0.14);
  border-radius: 0;
  margin-top: 0.15rem;
  padding-top: 0.8rem;
}

.sample-dropdown-menu img {
  width: 34px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(38, 19, 28, 0.18);
}

.sample-dropdown-menu span {
  display: block;
  line-height: 1.2;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.review-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 32px rgba(14, 15, 18, 0.14);
}

.review-card-publisher {
  border-color: rgba(127, 47, 77, 0.28);
}

.review-logo-faint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 82px;
  opacity: 0.28;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
}

.review-source-line {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.84rem;
  color: #765d64;
  font-weight: 600;
}

.review-long {
  margin-bottom: 0.8rem;
}

.rating-stars {
  margin: 0.1rem 0 0.9rem;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-bottom: 0.62rem;
  border: 1px solid rgba(194, 160, 108, 0.45);
  background: #f8f2e8;
  color: #684d25;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link {
  color: var(--wine-700);
  font-weight: 600;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.section-cta {
  margin-top: 1.4rem;
  text-align: center;
}

.contact-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.74rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.45rem);
  box-shadow: var(--shadow-card);
}

.contact-form label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.9rem;
  color: var(--ink-900);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(35, 35, 35, 0.2);
  background: #fffdfa;
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font: inherit;
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(194, 160, 108, 0.16);
}

.site-footer {
  background: var(--charcoal-900);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 1rem 1.3rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-bottom: 0.42rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.22s ease;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.8rem;
  padding: 0.8rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
}

.page-hero {
  margin-top: 78px;
  padding: clamp(3.6rem, 6vw, 5.3rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(194, 160, 108, 0.18), transparent 45%),
    linear-gradient(130deg, #6b374a, #8a4d68);
}

.page-hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(280px, 370px) 1fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: start;
}

.bio-content {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2vw, 1.7rem);
  box-shadow: var(--shadow-card);
}

.bio-content p {
  margin-bottom: 0.95rem;
}

.prominent-link {
  margin-top: 0.6rem;
}

.books-note {
  margin: 0 auto 1.5rem;
  max-width: 72ch;
  text-align: center;
  font-size: 1.06rem;
  color: var(--ink-900);
}

.subsection-title {
  margin-bottom: 1rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  margin-bottom: 0.8rem;
}

.map-placeholder {
  margin-top: 1rem;
  border: 1px dashed rgba(107, 47, 58, 0.45);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(165deg, #fbf7f0, #f1e7d6);
}

.map-placeholder span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--wine-700);
}

.external-link span {
  font-size: 0.95em;
}

.sample-page {
  background: linear-gradient(180deg, #f7eeeb 0%, #f2e5e0 100%);
}

.sample-main {
  min-height: 100vh;
}

.sample-hero {
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background:
    linear-gradient(128deg, rgba(66, 33, 48, 0.92), rgba(90, 46, 66, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(194, 160, 108, 0.24), transparent 45%);
}

.sample-hero p {
  color: rgba(255, 244, 240, 0.92);
  max-width: 70ch;
}

.sample-hero .btn-outline {
  color: #fff3ec;
  border-color: rgba(255, 234, 223, 0.46);
}

.sample-hero .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 234, 223, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.sample-reader-section {
  padding-top: 1.4rem;
}

.pdf-card {
  background: linear-gradient(160deg, #f6ece7 0%, #f0e1da 100%);
  border: 1px solid rgba(96, 52, 69, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(0.8rem, 1.8vw, 1.2rem);
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 980px);
  border: 1px solid rgba(60, 28, 42, 0.18);
  border-radius: 12px;
  background: #f8f5f2;
}

.pdf-reader {
  display: grid;
  gap: 0.72rem;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid rgba(60, 28, 42, 0.16);
  border-radius: 12px;
  background: #f8f3ec;
  padding: 0.55rem 0.6rem;
}

.pdf-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pdf-toolbar .btn {
  width: auto;
}

.pdf-btn {
  padding: 0.44rem 0.84rem;
  font-size: 0.85rem;
}

.pdf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdf-indicator {
  min-width: 100px;
  font-size: 0.86rem;
  text-align: center;
  color: #5a454c;
  font-weight: 600;
}

.pdf-stage {
  border: 1px solid rgba(60, 28, 42, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 24%, rgba(170, 84, 111, 0.26), transparent 38%),
    radial-gradient(circle at 84% 78%, rgba(194, 160, 108, 0.24), transparent 40%),
    linear-gradient(145deg, #efe2dd, #e5d1cb);
  padding: 0.75rem;
  max-height: min(80vh, 980px);
  overflow: auto;
  display: block;
}

.pdf-pages {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.pdf-page-item {
  display: grid;
  justify-items: center;
  gap: 0.32rem;
}

.pdf-canvas {
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 22, 0.14);
}

.pdf-page-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6d565e;
}

.pdf-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: #5f5258;
}

.pdf-fallback {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.pdf-fallback p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 4vw;
    right: 4vw;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
    padding: 0.4rem;
    display: grid;
    gap: 0.2rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
  }

  .nav-review-dropdown {
    display: block;
  }

  .nav-review-menu {
    position: static;
    left: auto;
    min-width: 100%;
    margin-top: 0.35rem;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    box-shadow: none;
  }

  .nav-review-dropdown:hover .nav-review-menu,
  .nav-review-dropdown:focus-within .nav-review-menu,
  .nav-review-dropdown.open .nav-review-menu {
    display: block;
    transform: none;
  }

  .site-nav.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .nav-link {
    padding: 0.72rem 0.7rem;
    border-radius: 8px;
  }

  .site-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.13);
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 2.7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 26px;
  }

  .hero-stage {
    order: -1;
  }

  .hero .btn-row {
    flex-wrap: wrap;
  }

  .about-preview-grid,
  .book-feature,
  .book-feature.reverse,
  .contact-strip,
  .bio-layout,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .book-feature.reverse .book-image-wrap,
  .book-feature.reverse .book-copy {
    order: initial;
  }

  .author-frame {
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 80px;
  }

  .brand-title {
    font-size: 1.55rem;
  }

  .brand-subtitle {
    font-size: 0.66rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .container {
    width: min(1120px, 94vw);
  }

  .hero-mockup {
    width: 56%;
  }

  .pdf-frame {
    height: min(70vh, 780px);
  }

  .pdf-stage {
    max-height: min(68vh, 760px);
  }

  .pdf-toolbar {
    padding: 0.5rem;
  }

  .pdf-toolbar-group {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
