﻿/* ------------------------------
   Design Tokens
------------------------------ */
:root {
  --bg: #dee8f0;
  --bg-alt: #f2dfbe;
  --surface: #eef4f8;
  --text: #2a384a;
  --muted: #5f738a;
  --line: rgba(42, 56, 74, 0.18);
  --blue: #8098b1;
  --blue-deep: #506f91;
  --gold: #c4aa72;
  --overlay-dark: rgba(15, 24, 37, 0.62);
  --radius: 1.1rem;
  --radius-pill: 999px;
  --container: min(1120px, 92vw);
  --shadow-soft: 0 16px 45px rgba(38, 54, 76, 0.2);
  --shadow-strong: 0 28px 70px rgba(16, 27, 43, 0.38);
  --transition: 260ms ease;
}

/* ------------------------------
   Base Styles
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 85% 10%, rgba(219, 172, 101, 0.33), transparent 44%),
    radial-gradient(circle at 10% 24%, rgba(86, 118, 156, 0.34), transparent 46%),
    linear-gradient(160deg, #e2edf5 0%, #f0e3c8 44%, #d9e5ef 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

body.nav-open {
  overflow: hidden;
}

main {
  overflow: clip;
}

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

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.45rem);
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
}

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

p {
  color: var(--muted);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  font-weight: 700;
}

.section-head {
  margin-bottom: 2.1rem;
}

.section-head.centered {
  text-align: center;
}

/* ------------------------------
   Header + Navigation
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 0.85rem;
  transition: padding var(--transition);
  background: transparent;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 41, 0.32);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 0;
}

.nav-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.88rem 1rem 0.88rem 1.2rem;
  gap: 1.1rem;
  border: 1px solid rgba(80, 111, 145, 0.22);
  border-radius: 999px;
  background: linear-gradient(125deg, rgba(228, 236, 245, 0.9), rgba(242, 224, 189, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(30, 45, 64, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.site-header.scrolled {
  padding-top: 0.45rem;
}

.site-header.scrolled .nav-wrap {
  background: linear-gradient(125deg, rgba(232, 239, 247, 0.96), rgba(245, 230, 203, 0.94));
  box-shadow: 0 22px 42px rgba(25, 39, 57, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.brand {
  display: grid;
  gap: 0.08rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.brand::before {
  content: "Author / Poet";
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(80, 111, 145, 0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.42rem 0.42rem 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(80, 111, 145, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.site-nav ul a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 0.94rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 56, 74, 0.86);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0.85rem 0.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.site-nav ul a:hover,
.site-nav ul a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 20px rgba(67, 86, 111, 0.12);
}

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

.menu-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(80, 111, 145, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(221, 229, 238, 0.86));
  box-shadow: 0 10px 22px rgba(45, 62, 84, 0.16);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ------------------------------
   Button System
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.84rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

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

.btn-primary {
  color: #f9f9fb;
  background: linear-gradient(135deg, #3f5f84 0%, #5f7ea0 56%, #88a2bc 100%);
  box-shadow: 0 10px 26px rgba(64, 93, 126, 0.42);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(64, 93, 126, 0.56), 0 0 20px rgba(196, 170, 114, 0.34);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(80, 111, 145, 0.35);
  background: rgba(248, 243, 233, 0.72);
}

.btn-secondary:hover {
  border-color: rgba(196, 170, 114, 0.82);
  box-shadow: 0 10px 24px rgba(39, 52, 69, 0.14), 0 0 14px rgba(196, 170, 114, 0.24);
}

.btn-nav {
  background: linear-gradient(140deg, rgba(196, 170, 114, 0.2), rgba(248, 243, 233, 0.42));
  color: var(--text);
  border-color: rgba(196, 170, 114, 0.72);
  box-shadow: 0 12px 24px rgba(86, 118, 156, 0.14);
}

/* ------------------------------
   Home Hero
------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - 3.2rem);
  display: flex;
  align-items: center;
  padding: clamp(3.75rem, 6vw, 5.4rem) 0;
  isolation: isolate;
  overflow: hidden;
  z-index: 2;
}

.hero-video,
.hero-overlay,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-video {
  inset: -14% 0 0 0;
  width: 100%;
  height: 114%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  z-index: -3;
  filter: saturate(78%) brightness(0.74);
}

.hero-overlay {
  background: linear-gradient(112deg, rgba(15, 24, 37, 0.78) 0%, rgba(15, 24, 37, 0.5) 48%, rgba(15, 24, 37, 0.66) 100%);
  z-index: -2;
}

.hero-glow {
  background: radial-gradient(circle at 74% 44%, rgba(196, 170, 114, 0.22), transparent 44%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 35rem;
  margin-top: -0.4rem;
}

.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .author-line,
.hero-content .eyebrow {
  color: #f7f3e8;
}

.hero-content .hero-subtitle {
  margin-top: 0.95rem;
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
  max-width: 34rem;
}

.author-line {
  margin-top: 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  color: rgba(247, 243, 232, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.hero-book-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-book {
  --px: 0px;
  --py: 0px;
  width: min(420px, 92%);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform-style: preserve-3d;
  animation: float-book 7.2s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-book:hover {
  transform: perspective(1000px) translate3d(var(--px), var(--py), 0) rotateY(-9deg) rotateX(3deg) scale(1.02);
  box-shadow: 0 34px 90px rgba(14, 16, 24, 0.42);
}

@keyframes float-book {
  0%,
  100% {
    transform: perspective(1000px) translate3d(var(--px), calc(var(--py) - 5px), 0) rotateY(-11deg);
  }
  50% {
    transform: perspective(1000px) translate3d(var(--px), calc(var(--py) + 9px), 0) rotateY(-8deg);
  }
}

.hero.media-fallback {
  background: linear-gradient(112deg, #2a3a4e, #5a7592 56%, #8ea3b8);
}

.hero.media-fallback .hero-video {
  display: none;
}

/* ------------------------------
   Content Blocks
------------------------------ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.split-layout p {
  margin-bottom: 1.4rem;
}

.section-about-preview {
  background: linear-gradient(150deg, rgba(239, 245, 249, 0.78), rgba(245, 230, 203, 0.55));
}

.about-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: center;
}

.about-preview-copy p {
  margin-top: 1rem;
  margin-bottom: 1.35rem;
}

.section-books-preview {
  background: linear-gradient(155deg, rgba(86, 118, 156, 0.22), rgba(219, 172, 101, 0.2));
}

.book-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(80, 111, 145, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(34, 53, 76, 0.3);
}

.book-media {
  position: relative;
  overflow: hidden;
  max-height: 29rem;
}

.book-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.book-card:hover .book-media img {
  transform: scale(1.06);
}

.book-copy {
  padding: 1.3rem 1.4rem 1.55rem;
}

.book-copy p {
  margin-top: 0.5rem;
}

.book-tile-wrap {
  display: flex;
  justify-content: center;
}

.purchase-menu {
  position: relative;
  width: fit-content;
  margin: 1.35rem auto 0;
}

.purchase-menu.open {
  z-index: 30;
}

.hero-actions .purchase-menu,
.sales-actions .purchase-menu {
  margin: 0;
}

.purchase-toggle {
  min-width: 12rem;
}

.purchase-toggle::after {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  margin-left: 0.72rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.purchase-menu.open .purchase-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.purchase-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  min-width: min(18rem, 82vw);
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(80, 111, 145, 0.22);
  background: linear-gradient(160deg, rgba(238, 244, 248, 0.98), rgba(244, 230, 202, 0.96));
  box-shadow: 0 20px 45px rgba(34, 53, 76, 0.2);
  transform: translateX(-50%);
  z-index: 10;
}

.purchase-link {
  display: block;
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 0.82rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), color var(--transition);
}

.purchase-link:hover {
  background: rgba(128, 152, 177, 0.16);
  color: var(--blue-deep);
  transform: translateX(2px);
}

.purchase-link-disabled {
  color: rgba(42, 56, 74, 0.56);
  background: rgba(225, 231, 236, 0.6);
  cursor: default;
}

.purchase-link-disabled:hover {
  color: rgba(42, 56, 74, 0.56);
  background: rgba(225, 231, 236, 0.6);
  transform: none;
}

.book-card.compact {
  width: 3.65in;
  height: 3in;
  border-radius: 0.95rem;
}

.book-card.compact .book-media {
  height: 100%;
  max-height: none;
  background: #e7decb;
}

.book-card.compact .book-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

.book-card.compact:hover .book-media img {
  transform: scale(1.05);
}

.trailer-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(233, 236, 240, 0.34);
  box-shadow: 0 22px 50px rgba(25, 39, 57, 0.32);
  background: #0f1926;
}

.trailer-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(26, 44, 66, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.play-overlay:hover {
  transform: scale(1.08);
  background: rgba(26, 44, 66, 0.8);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
  border-left: 0.94rem solid #fff;
  margin-left: 0.2rem;
}

.trailer-frame.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.trailer-frame.media-fallback {
  min-height: clamp(16rem, 45vw, 28rem);
  background: linear-gradient(130deg, #334860, #617f9f 52%, #93a9be);
}

.trailer-frame.media-fallback .trailer-video,
.trailer-frame.media-fallback .play-overlay {
  display: none;
}

.trailer-frame.media-fallback::after {
  content: "Trailer video coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(243, 238, 228, 0.95);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
}

/* ------------------------------
   CTA Strip
------------------------------ */
.cta-strip {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.4rem, 5vw, 3.8rem) 0;
  position: relative;
  background: linear-gradient(115deg, rgba(62, 90, 124, 0.96), rgba(126, 156, 189, 0.9), rgba(220, 169, 94, 0.86));
}

.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.22), transparent 30%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip h2 {
  color: #f6f2e8;
  max-width: 40rem;
}

/* ------------------------------
   Inner Page Layouts
------------------------------ */
.page-hero {
  padding: clamp(6rem, 9vw, 8.2rem) 0 clamp(3.5rem, 6vw, 4.8rem);
  border-bottom: 1px solid rgba(80, 111, 145, 0.22);
  background: linear-gradient(140deg, rgba(224, 235, 246, 0.72), rgba(236, 213, 167, 0.46));
}

.page-hero p {
  margin-top: 1rem;
  max-width: 42rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.bio-grid article p + p {
  margin-top: 0.95rem;
}

.author-portrait {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.2rem);
  max-width: min(27rem, 100%);
  margin-inline: auto;
  isolation: isolate;
}

.author-portrait::before,
.author-portrait::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.author-portrait::before {
  inset: 8% 6% auto auto;
  width: 66%;
  height: 70%;
  border-radius: 45% 55% 61% 39% / 37% 43% 57% 63%;
  background: linear-gradient(145deg, rgba(127, 150, 176, 0.22), rgba(196, 170, 114, 0.3));
  filter: blur(1px);
}

.author-portrait::after {
  inset: auto auto 4% 0;
  width: 38%;
  height: 32%;
  border: 1px solid rgba(80, 111, 145, 0.24);
  border-radius: 38% 62% 49% 51% / 58% 42% 58% 42%;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.author-portrait-media {
  position: relative;
  aspect-ratio: 5 / 6.2;
  overflow: hidden;
  clip-path: polygon(11% 0, 85% 0, 100% 19%, 92% 86%, 74% 100%, 18% 96%, 0 77%, 4% 21%);
  border-radius: 32% 68% 28% 72% / 19% 31% 69% 81%;
  box-shadow: 0 26px 56px rgba(31, 46, 67, 0.24);
  background: linear-gradient(145deg, rgba(128, 152, 177, 0.18), rgba(196, 170, 114, 0.12));
}

.author-portrait-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 239, 228, 0.72);
  mix-blend-mode: screen;
  pointer-events: none;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
}

.author-portrait figcaption {
  width: fit-content;
  max-width: 18rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(80, 111, 145, 0.16);
  box-shadow: 0 12px 22px rgba(49, 66, 91, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.author-portrait-feature {
  transform: rotate(-4deg);
}

.author-portrait-feature figcaption {
  margin-left: auto;
}

.quote-section blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.3;
  color: var(--text);
  border-left: 2px solid rgba(196, 170, 114, 0.78);
  padding-left: 1.3rem;
  max-width: 55rem;
}

.sales-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.sales-cover {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.sales-cover img {
  width: 100%;
  object-fit: cover;
}

.feature-list {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--gold), var(--blue));
}

.sales-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-start;
}

.reviews-section {
  background: linear-gradient(160deg, rgba(220, 169, 94, 0.2), rgba(86, 118, 156, 0.2));
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-grid article {
  background: rgba(248, 243, 233, 0.72);
  border: 1px solid rgba(80, 111, 145, 0.2);
  padding: 1.2rem;
  border-radius: 1rem;
}

.review-grid h3 {
  margin-top: 0.85rem;
  font-size: 1.2rem;
}

/* ------------------------------
   Contact Form
------------------------------ */
.contact-form {
  max-width: 42rem;
  margin-inline: auto;
  background: linear-gradient(155deg, rgba(233, 241, 248, 0.86), rgba(244, 227, 194, 0.82));
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 1rem;
  border: 1px solid rgba(80, 111, 145, 0.22);
  box-shadow: var(--shadow-soft);
}

.home-contact {
  background: linear-gradient(160deg, rgba(86, 118, 156, 0.2), rgba(220, 169, 94, 0.18));
}

.field-group {
  position: relative;
  margin-bottom: 1.05rem;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(80, 111, 145, 0.35);
  background: rgba(233, 241, 248, 0.78);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 1rem 0.95rem 0.64rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field-group textarea {
  resize: vertical;
  min-height: 10rem;
}

.field-group label {
  position: absolute;
  left: 0.95rem;
  top: 0.92rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: transform var(--transition), color var(--transition), font-size var(--transition);
  pointer-events: none;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(128, 152, 177, 0.24);
  background: rgba(255, 255, 255, 0.84);
}

.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label,
.field-group textarea:focus + label,
.field-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.68rem);
  color: var(--blue-deep);
  font-size: 0.74rem;
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer {
  padding: 2.2rem 1rem 2.8rem;
  text-align: center;
}

.site-footer p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
}

.socials {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(80, 111, 145, 0.42);
  display: grid;
  place-items: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 170, 114, 0.78);
  background: rgba(196, 170, 114, 0.17);
}

.socials svg {
  width: 1rem;
  height: 1rem;
  fill: var(--text);
}

/* ------------------------------
   Reveal Animation
------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 580ms ease, transform 580ms ease;
}

[data-reveal="up"] {
  transform: translateY(32px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   Responsive Rules
------------------------------ */
@media (max-width: 1024px) {
  .site-header {
    padding-top: 0.7rem;
  }

  .nav-wrap {
    padding-inline: 0.95rem;
  }

  .site-nav {
    gap: 0.6rem;
    padding-left: 0.72rem;
  }

  .site-nav ul a {
    padding-inline: 0.82rem;
  }

  .hero-grid,
  .about-preview-layout,
  .split-layout,
  .bio-grid,
  .sales-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6.25rem;
    padding-bottom: 4rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-content {
    max-width: 40rem;
    margin-inline: auto;
    margin-top: 0;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-content,
  .page-hero p {
    max-width: 100%;
  }

  .hero-book-shell,
  .sales-cover,
  .author-portrait {
    max-width: min(28rem, 100%);
    margin-inline: auto;
  }

  .about-preview-copy {
    text-align: center;
  }

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

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-dropdown {
    min-width: min(18rem, 100%);
  }
}

@media (max-width: 860px) {
  body.nav-open .site-header::before {
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(155deg, rgba(233, 241, 248, 0.98), rgba(243, 227, 194, 0.97));
    border: 1px solid rgba(80, 111, 145, 0.2);
    border-radius: 1.4rem;
    box-shadow: 0 24px 52px rgba(24, 39, 57, 0.24);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5.6rem;
    background: radial-gradient(circle at top right, rgba(196, 170, 114, 0.22), transparent 54%);
    pointer-events: none;
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

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

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

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
  }

  .site-nav ul li,
  .site-nav ul a {
    width: 100%;
  }

  .site-nav ul a {
    justify-content: flex-start;
    padding: 0.92rem 1rem;
    background: rgba(255, 255, 255, 0.38);
  }

  .btn-nav,
  .hero-actions .btn,
  .purchase-menu,
  .purchase-toggle,
  .sales-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }

  .purchase-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .hero-book {
    width: min(330px, 85vw);
  }

  .sales-actions,
  .cta-inner {
    align-items: stretch;
  }

  .author-portrait-feature {
    transform: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .site-header {
    padding-top: 0.55rem;
  }

  .nav-wrap {
    padding: 0.8rem 0.82rem 0.8rem 1rem;
    border-radius: 1.35rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .brand::before {
    font-size: 0.56rem;
  }

  .hero {
    padding-top: 5.9rem;
    padding-bottom: 3.4rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-actions .purchase-menu {
    flex: 1 1 100%;
  }

  .book-copy {
    padding: 1.05rem 1rem 1.2rem;
  }

  .page-hero {
    padding-top: 5.8rem;
    padding-bottom: 3rem;
  }

  .author-portrait {
    padding-inline: 0.65rem;
  }

  .author-portrait figcaption {
    max-width: 100%;
    font-size: 0.71rem;
    letter-spacing: 0.12em;
  }

  .quote-section blockquote {
    padding-left: 1rem;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

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

  .review-grid article {
    padding: 1rem;
  }

  .trailer-frame {
    border-radius: 1rem;
  }

  .play-overlay {
    width: 3.55rem;
    height: 3.55rem;
  }

  .contact-form {
    padding: 1.1rem;
  }

  .contact-form .btn,
  .sales-actions .btn,
  .sales-actions .purchase-menu {
    width: 100%;
  }

  .book-card.compact {
    width: min(3.65in, 92vw);
    height: auto;
    aspect-ratio: 927 / 768;
  }

  .site-footer {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-book {
    width: min(290px, 82vw);
  }

  .author-portrait-media {
    aspect-ratio: 1 / 1.18;
  }

  .btn,
  .purchase-link {
    font-size: 0.82rem;
  }

  .cta-strip {
    padding: 2.2rem 0;
  }
}

/* ------------------------------
   Reduced Motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
