:root {
  --cream: #f5f0e1;
  --navy: #1a2b3c;
  --navy-dark: #0e1720;
  --orange: #cd6a50;
  --orange-soft: #d37d64;
  --text: #1a1512;
  --text-muted: #2c2623;
  --gold-line: #c4a57c;
  --white: #ffffff;
  --max: 1140px;
  --gutter: 1.5rem;
  --hero-book-size: clamp(300px, 28vw, 440px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}

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

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

em {
  font-style: italic;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    letter-spacing 0.28s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  letter-spacing: 0.14em;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.12s;
}

.btn:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 2px 0 rgba(140, 70, 50, 0.25);
}

.btn-primary:hover {
  background: #b85a42;
  border-color: #b85a42;
  box-shadow: 0 10px 22px rgba(205, 106, 80, 0.35);
}

.btn-primary:active {
  box-shadow: 0 4px 10px rgba(205, 106, 80, 0.28);
}

.btn-outline-dark {
  background: var(--white);
  color: var(--text);
  border-color: #1a1512;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 10px 22px rgba(26, 43, 60, 0.22);
}

.btn-outline-dark::after {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 70%
  );
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn-outline-light::after {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(26, 43, 60, 0.08) 45%,
    transparent 70%
  );
}

.btn-header {
  background: #0f1e2e;
  color: var(--white);
  padding: 0.85rem 1.25rem;
  font-size: 0.62rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-header:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(205, 106, 80, 0.3);
}

.btn-cta:hover {
  box-shadow: 0 12px 28px rgba(205, 106, 80, 0.4);
}

.footer-cta:hover {
  box-shadow: 0 10px 24px rgba(205, 106, 80, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::after {
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .btn:hover::after {
    transform: none;
  }
}

/* Header + hero backdrop (CSS layers — no mockup paste) */
.page-top {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: var(--cream);
}

.page-top-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-top-bg__photo {
  position: absolute;
  inset: 0;
  background: url("images/hero-forest.jpg?v=3") center center / cover no-repeat;
  filter: none;
  transform: none;
}

.page-top-bg__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 240, 225, 0.88) 0%,
    rgba(245, 240, 225, 0.72) 38%,
    rgba(245, 240, 225, 0.42) 62%,
    rgba(245, 240, 225, 0.18) 82%,
    rgba(245, 240, 225, 0.08) 100%
  );
}

.page-top > :not(.page-top-bg) {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(26, 21, 18, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-view {
  display: none;
  overflow: visible;
}

.site-view.is-active {
  display: block;
  overflow: visible;
}

.page-top {
  padding-top: 4.75rem;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  padding: 1.15rem 0;
}

.brand {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-right: 1px solid var(--gold-line);
  padding-right: clamp(0.75rem, 1.2vw, 1.5rem);
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

.brand-name {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-tag {
  font-size: clamp(0.42rem, 0.52vw, 0.52rem);
  letter-spacing: 0.12em;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 1.6vw, 1.85rem);
  flex-wrap: nowrap;
}

.nav-link {
  border: none;
  background: none;
  padding: 0 0 0.35rem;
  cursor: pointer;
  color: var(--navy);
  font: inherit;
  font-size: clamp(0.8rem, 0.92vw, 0.92rem);
  position: relative;
  white-space: nowrap;
}

.nav-link.active {
  color: var(--orange-soft);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange-soft);
}

.header-inner .btn-header {
  justify-self: end;
}

/* Desktop keeps panel children in the header grid */
.header-panel {
  display: contents;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(26, 43, 60, 0.22);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 2px;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 14px;
}

.menu-toggle__bars span {
  display: block;
  width: 100%;
  height: 1.25px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(4.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-4.75px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: clamp(1.75rem, 3vw, 2.75rem) 0 clamp(3.5rem, 5vw, 5rem);
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
  overflow: visible;
}

.hero-grid > * {
  min-width: 0;
  overflow: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: clamp(380px, 42vw, 520px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.5rem, 0.55vw, 0.58rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.65rem;
}

.eyebrow-line {
  flex: 0 0 28px;
  height: 1px;
  background: var(--orange);
}

.hero-title {
  margin: 0 0 1.55rem;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: 1.14;
  font-weight: 700;
  max-width: min(15ch, 100%);
}

.hero-dot {
  color: var(--orange);
}

.hero-desc {
  margin: 0 0 2.35rem;
  max-width: 40rem;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
  /* Extra room so float + shadow never clip */
  padding: clamp(1rem, 2vw, 1.75rem) 0.5rem clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: clamp(380px, 42vw, 520px);
}

.hero-book {
  display: block;
  width: var(--hero-book-size);
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* No clipping transforms from parent */
  clip-path: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
  transform-origin: center bottom;
  animation: book-float 3.8s ease-in-out infinite;
  will-change: transform;
}

.hero-book:hover {
  animation-play-state: paused;
  transform: translateY(-12px);
  filter: drop-shadow(12px 24px 34px rgba(0, 0, 0, 0.34));
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.featured-book-cover {
  width: 260px;
  flex-shrink: 0;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  filter: drop-shadow(8px 14px 24px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .hero-book {
    animation: none;
  }
}

/* Book cover (CSS fallback styles kept for any remaining mockups) */
.book-cover {
  position: relative;
  margin: 0 0 0 auto;
  overflow: hidden;
  background: #0a0f18;
  box-shadow: 12px 20px 34px rgba(0, 0, 0, 0.35);
}

.book-cover--large {
  width: min(100%, 280px);
  aspect-ratio: 280 / 420;
}

.book-cover--small {
  width: 148px;
  aspect-ratio: 148 / 214;
  flex-shrink: 0;
  margin: 0;
  box-shadow: 8px 14px 26px rgba(0, 0, 0, 0.45);
}

.book-cover__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 200, 90, 0.55), transparent 38%),
    radial-gradient(circle at 72% 22%, rgba(100, 160, 255, 0.45), transparent 36%),
    radial-gradient(circle at 48% 35%, rgba(255, 90, 70, 0.35), transparent 32%),
    linear-gradient(180deg, #121b2b 0%, #05080e 70%);
}

.book-cover__silhouette {
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: 74%;
  height: 38%;
  transform: translateX(-50%);
  border-radius: 40% 40% 0 0;
  background: linear-gradient(180deg, rgba(30, 20, 18, 0.2) 0%, rgba(8, 8, 10, 0.85) 100%);
  filter: blur(1px);
}

.spark {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.spark--a {
  top: 8%;
  left: 16%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.95) 0%, rgba(220, 80, 60, 0.4) 45%, transparent 72%);
}

.spark--b {
  top: 6%;
  right: 12%;
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, rgba(240, 245, 255, 0.9) 0%, rgba(80, 140, 255, 0.45) 42%, transparent 70%);
}

.spark--c {
  top: 26%;
  left: 46%;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(255, 160, 80, 0.85) 0%, rgba(200, 60, 50, 0.25) 48%, transparent 72%);
}

.book-cover--small .spark--c {
  display: none;
}

.book-cover__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%);
  z-index: 2;
  pointer-events: none;
}

.book-cover__head {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(0.72rem, 2.4vw, 1.05rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.book-cover--small .book-cover__head {
  font-size: 0.48rem;
  top: 8px;
  left: 6px;
  right: 6px;
}

.book-cover__foot {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #f5f5f5;
}

.book-cover--small .book-cover__foot {
  font-size: 0.42rem;
  bottom: 8px;
}

/* Story */
.story-section {
  background: var(--cream);
  padding: 4.5rem 0 5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.section-title {
  margin: 0 0 1.4rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.28;
  font-weight: 700;
  max-width: 18ch;
}

.section-title::after {
  content: "";
  display: block;
  width: 220px;
  max-width: 70%;
  height: 2px;
  background: var(--orange-soft);
  margin-top: 1rem;
}

.story-text {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.78;
}

.story-text:last-of-type {
  margin-bottom: 1.75rem;
}

/* Inner pages */
.page-banner {
  background: var(--cream);
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid rgba(26, 21, 18, 0.06);
}

.page-banner--offset {
  padding-top: 6.5rem;
}

.page-eyebrow {
  margin: 0 0 0.65rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 22ch;
}

.featured-book--page {
  padding-top: 3.5rem;
}

.book-details {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.9;
  opacity: 0.95;
}

.book-details strong {
  font-weight: 700;
}

.contact-section {
  background: var(--cream);
  padding: 3.5rem 0 5rem;
}

.contact-section--home {
  padding: 4rem 0 4.5rem;
}

.contact-form--home {
  max-width: 100%;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e4ddd2;
  box-shadow: 0 18px 48px rgba(14, 23, 32, 0.08);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-soft) 55%, var(--gold-line) 100%);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.35rem 2.35rem;
  border-right: 1px solid #ebe4d8;
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.65) 0%, rgba(255, 255, 255, 0) 42%),
    #fff;
}

.contact-eyebrow {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.contact-heading {
  margin: 0 0 0.9rem;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--navy);
}

.contact-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--orange);
  margin-top: 0.85rem;
}

.contact-lead {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.contact-points {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-points li {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 1rem 0 1rem 1rem;
  border-top: 1px solid #ebe4d8;
  border-left: 2px solid transparent;
  transition: border-color 0.22s ease, padding-left 0.22s ease;
}

.contact-points li:last-child {
  padding-bottom: 0.15rem;
}

.contact-points li:hover {
  border-left-color: var(--orange);
  padding-left: 1.15rem;
}

.contact-point-label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.contact-point-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--navy);
}

.contact-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
  line-height: 1.85;
  font-size: 0.98rem;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.5rem 2.35rem 2.35rem;
  background: #fff;
}

.contact-form-title {
  margin: 0;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #ebe4d8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-form-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 1.05rem;
  min-height: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.contact-form .field--message {
  flex: 1 1 auto;
  min-height: 0;
}

.contact-form .field span {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 21, 18, 0.68);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.92rem;
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid #ddd5c8;
  border-radius: 2px;
  background: #faf7f1;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c9c0b1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(205, 106, 80, 0.14);
}

.contact-form textarea {
  resize: vertical;
  min-height: 148px;
  height: 100%;
  flex: 1 1 auto;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.35rem;
  border: none;
  cursor: pointer;
  min-width: 176px;
}

.polaroid {
  margin: 0.5rem 0 0 auto;
  width: min(100%, 400px);
  padding: 0;
  background: transparent;
  border: none;
  transform: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.16));
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Featured book */
.featured-book {
  background: var(--navy);
  color: var(--white);
  padding: 4.25rem 0;
}

.featured-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.featured-divider {
  width: 2px;
  align-self: stretch;
  min-height: 200px;
  background: linear-gradient(180deg, #d2a85d 0%, #9a7342 100%);
  flex-shrink: 0;
}

.featured-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.featured-by {
  margin: 0 0 1.15rem;
  color: #d2a85d;
  font-style: italic;
  font-size: 1.05rem;
}

.featured-desc {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  line-height: 1.75;
  font-size: 0.96rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Themes */
.themes-section {
  background: var(--cream);
  padding: 4rem 0 5.25rem;
}

.themes-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  margin: 0 0 2.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.themes-line {
  flex: 1 1 80px;
  max-width: 140px;
  height: 2px;
  background: var(--orange);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
  padding-top: 2rem;
}

.theme-item {
  text-align: center;
  padding: 0 1.25rem 0.5rem;
  border-right: 1px solid var(--gold-line);
}

.theme-item:last-child {
  border-right: none;
}

.theme-item h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--navy);
}

/* Author */
.author-section {
  background: var(--cream);
  padding: 4.75rem 0 4.5rem;
}

.author-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3rem;
  align-items: start;
}

.author-photo-frame {
  margin: 0;
}

.author-photo {
  width: min(100%, 268px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #d5cfc5;
  outline: 6px solid var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.author-name {
  margin: 0 0 1.35rem;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  position: relative;
}

.author-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 72%;
  height: 2px;
  background: var(--orange-soft);
}

.author-bio {
  margin: 0;
  max-width: 40rem;
  line-height: 1.82;
  font-size: 0.98rem;
}

/* CTA */
.cta-section {
  position: relative;
  padding: 6.5rem 0 5.75rem;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url("images/cta-mountains.jpg") center / cover no-repeat;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 22, 0.35);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.cta-sub {
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.btn-cta {
  padding: 1rem 2rem;
  font-size: 0.72rem;
}

/* Footer */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(205, 106, 80, 0.14), transparent 55%),
    radial-gradient(90% 70% at 100% 20%, rgba(194, 164, 116, 0.1), transparent 50%),
    linear-gradient(165deg, #0f1924 0%, #0a121a 48%, #060b10 100%);
  color: #e8e4dc;
  padding: 0 0 0;
  overflow: hidden;
}

.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 22%, #d2a85d 50%, var(--orange) 78%, transparent 100%);
  opacity: 0.9;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.95fr 1fr;
  gap: 2.5rem;
  padding: 3.25rem 0 2.75rem;
}

.footer-logo {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #d2a85d;
}

.footer-tagline em {
  font-style: italic;
}

.footer-note {
  margin: 0;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(232, 228, 220, 0.78);
}

.footer-col-title {
  margin: 0 0 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.55);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  color: #e8e4dc;
  text-align: left;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #f0b090;
  transform: translateX(3px);
}

.footer-link--accent {
  margin-top: 0.75rem;
  font-style: italic;
  color: #d2a85d;
}

.footer-book-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.footer-meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(232, 228, 220, 0.75);
}

.footer-cta {
  padding: 0.75rem 1.1rem;
  font-size: 0.62rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.15rem;
}

.footer-copy {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.5);
}

.footer-signature {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
}

.footer-signature em {
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
}

/* Large desktop */
@media (min-width: 1400px) {
  :root {
    --max: 1280px;
    --hero-book-size: clamp(400px, 26vw, 480px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 3rem;
  }

  .hero-copy,
  .hero-visual {
    min-height: 540px;
  }

  .hero-title {
    font-size: clamp(3rem, 3.4vw, 3.85rem);
  }
}

/* Standard desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
  :root {
    --max: 1180px;
    --hero-book-size: clamp(360px, 30vw, 440px);
  }
}

/* Compact desktop / large laptop — keep 2-col, tighten spacing */
@media (min-width: 981px) and (max-width: 1199px) {
  :root {
    --max: 1080px;
    --gutter: 1.25rem;
    --hero-book-size: clamp(280px, 32vw, 360px);
  }

  .header-inner {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: 0.85rem;
  }

  .main-nav {
    gap: 0.95rem;
    justify-content: flex-end;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .brand-tag {
    letter-spacing: 0.08em;
  }

  .btn-header {
    padding: 0.75rem 1rem;
    font-size: 0.58rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 1.25rem;
  }

  .hero-copy,
  .hero-visual {
    min-height: 400px;
  }

  .hero-visual {
    padding-inline: 0;
  }

  .hero-title {
    max-width: 15ch;
  }

  .story-grid,
  .author-grid {
    gap: 2rem;
  }

  .themes-grid {
    gap: 0;
  }

  .theme-item {
    padding-inline: 0.85rem;
  }

  .theme-item h3 {
    font-size: 1rem;
  }

  .footer-main {
    gap: 1.75rem;
  }
}

@media (max-width: 980px) {
  :root {
    --hero-book-size: min(100%, 280px);
    --gutter: 1.15rem;
  }

  .page-top {
    padding-top: 4.1rem;
  }

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
  }

  .brand {
    border-right: none;
    padding-right: 0;
    align-items: flex-start;
    text-align: left;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-tag {
    font-size: 0.42rem;
    letter-spacing: 0.1em;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    width: 200px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(26, 21, 18, 0.1);
    border-radius: 3px;
    box-shadow: 0 8px 20px rgba(14, 23, 32, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    z-index: 120;
  }

  .header-panel.is-open {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    flex-wrap: nowrap;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.25;
    padding: 0.55rem 0.65rem;
    border-radius: 2px;
    color: var(--navy);
  }

  .nav-link:hover {
    background: rgba(245, 240, 225, 0.95);
  }

  .nav-link.active {
    background: rgba(205, 106, 80, 0.1);
    color: var(--orange);
  }

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

  .header-inner .btn-header {
    justify-self: stretch;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.7rem 0.65rem;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .hero {
    padding: 1.5rem 0 3rem;
  }

  .hero-grid,
  .story-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    border-right: none;
    border-bottom: 1px solid #ebe4d8;
    padding-bottom: 2rem;
  }

  .hero-copy {
    text-align: left;
    min-height: 0;
    align-self: auto;
  }

  .hero-title {
    max-width: 16ch;
    font-size: clamp(1.7rem, 6.5vw, 2.25rem);
    margin: 0 0 1.25rem;
  }

  .hero-desc {
    font-size: 0.94rem;
    margin: 0 0 2rem;
  }

  .eyebrow {
    margin: 0 0 1.35rem;
  }

  .hero-visual,
  .book-cover--large,
  .polaroid {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 0;
    padding: 0.75rem 0 0.5rem;
  }

  .story-section,
  .author-section,
  .themes-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section-title {
    max-width: none;
  }

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

  .featured-divider {
    width: 80px;
    height: 2px;
    min-height: 0;
    align-self: center;
  }

  .featured-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .featured-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .themes-heading {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .themes-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .theme-item:nth-child(2) {
    border-right: none;
  }

  .theme-item:nth-child(1),
  .theme-item:nth-child(2) {
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 1.5rem;
  }

  .author-grid {
    justify-items: center;
  }

  .author-photo-frame {
    margin-inline: auto;
    width: fit-content;
    display: flex;
    justify-content: center;
  }

  .author-photo {
    margin-inline: auto;
  }

  .author-copy {
    text-align: center;
    width: 100%;
  }

  .author-name::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-form {
    padding: 1.75rem 1.35rem 1.55rem;
  }

  .contact-points {
    margin-top: 0.35rem;
  }

  .contact-points li {
    padding: 0.9rem 0 0.9rem 0.85rem;
  }

  .contact-form textarea {
    min-height: 130px;
  }

  .page-banner--offset {
    padding-top: 5.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 0.85rem;
    --hero-book-size: min(100%, 240px);
  }

  .brand-tag {
    max-width: 18ch;
    white-space: normal;
    line-height: 1.35;
  }

  .header-panel {
    width: 190px;
    padding: 0.45rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  .header-inner .btn-header {
    padding: 0.65rem 0.55rem;
    font-size: 0.55rem;
  }

  .eyebrow {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    gap: 0.55rem;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 0.65rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .featured-actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .featured-actions .btn {
    padding-inline: 0.55rem;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }

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

  .theme-item {
    border-right: none;
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 1.25rem;
  }

  .theme-item:last-child {
    border-bottom: none;
  }

  .featured-book {
    padding: 3rem 0;
  }

  .featured-book-cover {
    width: min(72vw, 240px);
  }

  .cta-section {
    padding: 4.5rem 0 4rem;
  }

  .cta-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.1rem;
    text-align: left;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col--contact {
    grid-column: auto;
  }

  .footer-note {
    margin-inline: 0;
    max-width: none;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-link {
    text-align: left;
  }

  .footer-cta {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.55rem;
  }

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

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .menu-toggle__bars span {
    transition: none;
  }
}