/* 
  Author Book Website CSS
  No external CSS framework required.
*/

:root {
  --bg: #0d0b09;
  --bg-soft: #17120f;
  --card: rgba(255, 248, 238, 0.08);
  --card-strong: rgba(255, 248, 238, 0.13);
  --text: #fff8ee;
  --muted: #c8b8a6;
  --gold: #d9a441;
  --gold-light: #ffcf74;
  --brown: #5b351d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.16), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(84, 117, 197, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.28;
  z-index: -1;
}

.glow-one {
  background: var(--gold);
  top: 10%;
  left: -120px;
}

.glow-two {
  background: #476ac8;
  bottom: 5%;
  right: -120px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: 0.3s ease;
}

.site-header.scrolled {
  background: rgba(13, 11, 9, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #8a5425);
  color: #1a1109;
  box-shadow: 0 14px 35px rgba(217, 164, 65, 0.25);
  font-size: 22px;
}

.brand-text {
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  transition: 0.25s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  font-weight: 700;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 rgba(255, 207, 116, 0.7);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 207, 116, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 207, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 207, 116, 0); }
}

.hero h1,
.section-heading h2,
.author-content h2,
.highlight-card h2,
.newsletter-card h2,
.contact-content h2 {
  margin: 18px 0;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  max-width: 760px;
}

.hero p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1d1208;
  box-shadow: 0 18px 40px rgba(217, 164, 65, 0.25);
}

.btn-secondary,
.btn-light {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-dark {
  background: #fff8ee;
  color: #21160d;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 120px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  color: var(--gold-light);
}

.hero-stats span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.book-stack {
  position: relative;
  width: min(430px, 100%);
  height: 500px;
  perspective: 1200px;
}

.hero-book,
.book-cover {
  position: absolute;
  width: 260px;
  height: 380px;
  border-radius: 18px 26px 26px 18px;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-book img,
.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.hero-book:has(img),
.book-cover:has(img) {
  padding: 0;
  background: #111;
}

.hero-book:has(img)::before,
.hero-book:has(img)::after,
.book-cover:has(img)::before,
.book-cover:has(img)::after {
  display: none;
}


.hero-book::before,
.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 12px;
  height: 100%;
  background: rgba(0,0,0,0.18);
}

.hero-book::after,
.book-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px 22px 22px 14px;
  pointer-events: none;
}

.hero-book h3,
.book-cover h3 {
  position: relative;
  font-size: 34px;
  line-height: 1.04;
  margin: 90px 0 0;
  letter-spacing: -0.04em;
}

.hero-book span,
.book-cover span {
  position: relative;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.78);
}

.hero-book small,
.book-cover small {
  position: absolute;
  left: 28px;
  bottom: 28px;
  font-family: Arial, sans-serif;
  color: rgba(255,255,255,0.72);
}

.hero-book-1 {
  transform: rotateY(-18deg) rotateZ(-8deg) translateX(-70px);
  z-index: 3;
  animation: floatBook 6s ease-in-out infinite;
}

.hero-book-2 {
  transform: rotateY(-6deg) rotateZ(6deg) translateX(40px) translateY(42px);
  z-index: 2;
  animation: floatBook 6s ease-in-out infinite 0.5s;
}

.hero-book-3 {
  transform: rotateY(12deg) rotateZ(12deg) translateX(130px) translateY(95px);
  z-index: 1;
  opacity: 0.8;
  animation: floatBook 6s ease-in-out infinite 1s;
}

@keyframes floatBook {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

.theme-gold {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.22), transparent 25%),
    linear-gradient(135deg, #dfaa47, #6e3917);
}

.theme-blue {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.22), transparent 25%),
    linear-gradient(135deg, #597fcf, #1a284f);
}

.theme-purple {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.22), transparent 25%),
    linear-gradient(135deg, #8c61d8, #341b56);
}

.hero-card {
  position: absolute;
  right: 20px;
  bottom: 80px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 248, 238, 0.12);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(16px); }
}

.hero-card span {
  display: block;
  color: var(--gold-light);
  font-family: Arial, sans-serif;
  font-size: 13px;
  margin-bottom: 5px;
}

.hero-card strong {
  display: block;
  max-width: 190px;
}

.floating-shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.shape-one {
  width: 110px;
  height: 110px;
  border-radius: 32px;
  right: 8%;
  top: 18%;
  transform: rotate(23deg);
  animation: slowSpin 18s linear infinite;
}

.shape-two {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  left: 7%;
  bottom: 18%;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes slowSpin {
  to { transform: rotate(383deg); }
}

.intro-strip {
  padding: 30px 0;
}

.strip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.strip-card span {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 22px;
}

.strip-card p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-heading h2,
.author-content h2,
.highlight-card h2,
.newsletter-card h2,
.contact-content h2 {
  font-size: clamp(36px, 5vw, 60px);
}

.section-heading p,
.author-content p,
.highlight-card p,
.newsletter-card p,
.contact-content p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.8;
  font-size: 17px;
}

.books-grid {
  display: grid;
  gap: 28px;
}

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,207,116,0.4);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
}

.book-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 13px;
  background: rgba(255,207,116,0.13);
  color: var(--gold-light);
  border: 1px solid rgba(255,207,116,0.25);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  z-index: 2;
}

.book-cover {
  position: relative;
  width: 240px;
  height: 340px;
  transform: rotate(-3deg);
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover {
  transform: rotate(0deg) scale(1.03);
}

.book-cover h3 {
  font-size: 29px;
}

.cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.25) 45%, transparent 60%);
  transform: translateX(-110%);
  transition: 0.7s ease;
}

.book-card:hover .cover-shine {
  transform: translateX(110%);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.book-meta span {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--gold-light);
  border: 1px solid rgba(255,207,116,0.25);
  background: rgba(255,207,116,0.08);
  padding: 8px 11px;
  border-radius: 999px;
}

.book-info h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.book-info p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.75;
}

.book-subtitle {
  color: var(--text) !important;
  font-size: 18px;
}

.book-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.book-price {
  color: var(--gold-light);
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.book-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.author-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: center;
}

.author-portrait {
  display: grid;
  place-items: center;
}

.portrait-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 45% 55% 52% 48%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(135deg, rgba(217,164,65,0.85), rgba(92,53,29,0.72));
  border: 1px solid rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: morphPortrait 8s ease-in-out infinite;
}

@keyframes morphPortrait {
  0%, 100% { border-radius: 45% 55% 52% 48%; }
  50% { border-radius: 58% 42% 45% 55%; }
}

.portrait-initial {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 78px;
  color: #201205;
  background: rgba(255,248,238,0.75);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.3);
}

.portrait-lines {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: inherit;
}

.author-points {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.author-points div {
  padding: 20px;
  background: rgba(255,255,255,0.065);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.author-points strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-light);
}

.author-points span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

.highlight-card,
.newsletter-card {
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255,207,116,0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.highlight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  transition: 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.1);
}

.stars {
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.review-card p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.8;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.23);
  border: 1px solid var(--line);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  font-family: Arial, sans-serif;
}

.newsletter-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,248,238,0.45);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.065);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  color: var(--gold-light);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 160px;
}

.contact-grid {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  font-family: Arial, sans-serif;
  color: var(--gold-light);
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(0,0,0,0.23);
  color: var(--text);
  border-radius: 15px;
  padding: 14px 15px;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-inner a {
  color: var(--gold-light);
}

.sample-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.sample-modal.active {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
}

.modal-box {
  position: relative;
  width: min(680px, calc(100% - 34px));
  max-height: 82vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255,207,116,0.14), transparent 20rem),
    #15100c;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}

.modal-box h3 {
  font-size: 36px;
  margin: 14px 0;
}

.modal-box p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.9;
  font-size: 17px;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  --delay: 140ms;
}

.delay-2 {
  --delay: 280ms;
}

@media (max-width: 980px) {
  .hero-inner,
  .author-grid,
  .highlight-card,
  .newsletter-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .book-card {
    grid-template-columns: 1fr;
  }

  .book-cover {
    margin: 0 auto;
  }

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

  .strip-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(13, 11, 9, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    font-size: 22px;
    transform: translateX(100%);
    transition: 0.35s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

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

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

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

  .hero {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .book-stack {
    height: 430px;
  }

  .hero-book {
    width: 210px;
    height: 310px;
  }

  .hero-book h3 {
    font-size: 26px;
  }

  .hero-book-1 {
    transform: rotateY(-12deg) rotateZ(-8deg) translateX(-45px);
  }

  .hero-book-2 {
    transform: rotateY(-3deg) rotateZ(6deg) translateX(35px) translateY(45px);
  }

  .hero-book-3 {
    transform: rotateY(8deg) rotateZ(12deg) translateX(90px) translateY(90px);
  }

  .hero-card {
    right: 0;
    bottom: 40px;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stats div {
    width: 100%;
  }

  .book-footer,
  .book-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .book-buttons a,
  .book-buttons button {
    width: 100%;
  }

  .newsletter-form {
    border-radius: 22px;
    flex-direction: column;
  }

  .newsletter-form input {
    padding: 16px 14px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .hero h1 {
    font-size: 40px;
  }

  .book-info h3 {
    font-size: 30px;
  }

  .highlight-card,
  .newsletter-card,
  .contact-form,
  .modal-box {
    padding: 24px;
  }

  .book-card {
    padding: 18px;
  }
}


.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.author-bio p,
.book-description p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.75;
  margin: 0 0 14px;
}

.author-bio strong,
.book-description strong {
  color: var(--text);
  font-weight: 700;
}

.author-bio em,
.book-description em {
  color: var(--gold-light);
}


.portrait-frame:has(.author-photo) {
  padding: 0;
  overflow: hidden;
}

.portrait-frame:has(.author-photo) .portrait-lines {
  pointer-events: none;
}


/* Matthew Fleeman Custom Polish */
.hero h1 {
  max-width: 820px;
}

.book-description p:last-child,
.author-bio p:last-child {
  margin-bottom: 0;
}
