:root {
  --green: #708e41;
  --green-deep: #526d2d;
  --ink: #11150e;
  --paper: #f4e9c4;
  --white: #ffffff;
  --header-height: 88px;
  color-scheme: light;
  font-family: "Source Serif 4", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4.4vw, 72px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  transition: background-color 220ms ease, backdrop-filter 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(112, 142, 65, 0.94);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-decoration: none;
  white-space: nowrap;
}

.header-buy {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--white);
  border-radius: 6px;
  background: var(--white);
  color: var(--green-deep);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-buy:hover,
.header-buy:focus-visible {
  background: transparent;
  color: var(--white);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #10140d;
  color: var(--white);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: 1;
  background: rgba(0, 0, 0, 0.19);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 48px));
  margin-top: calc(var(--header-height) * 0.35);
  text-align: center;
}

.hero-title {
  width: min(617px, 82vw);
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, 0.18));
}

.hero-tagline {
  margin: clamp(22px, 3.2vh, 36px) 0 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.76rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: clamp(0.14em, 0.48vw, 0.35em);
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.scroll-mark {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.scroll-mark span {
  display: block;
  width: 100%;
  height: 48%;
  background: var(--white);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: translateY(-120%); }
  55%, 100% { transform: translateY(220%); }
}

.book-section {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.book-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 52%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.14);
}

.book-layout {
  width: min(1320px, calc(100% - 48px));
  min-height: 950px;
  margin: 0 auto;
  padding: clamp(110px, 12vw, 190px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(70px, 10vw, 155px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.book-copy {
  max-width: 660px;
}

.book-copy h1 {
  margin: 0;
  max-width: 700px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(2.3rem, 4.8vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.01;
}

.book-intro {
  max-width: 590px;
  margin: 34px 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.65;
}

.amazon-button {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: min(100%, 390px);
  margin-top: 40px;
  padding: 13px 18px 13px 24px;
  border: 1px solid var(--white);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.amazon-button:hover,
.amazon-button:focus-visible {
  background: #f5f5f3;
  color: var(--ink);
  transform: translateY(-2px);
}

.amazon-logo {
  width: 96px;
  height: auto;
  flex: 0 0 96px;
}

.purchase-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  line-height: 1.5;
}

.book-visual {
  margin: 0;
  display: grid;
  justify-items: center;
}

.book-shadow {
  width: min(100%, 430px);
  background: var(--paper);
  box-shadow:
    rgba(0, 0, 0, 0.35) 20px 20px 50px 0,
    rgba(0, 0, 0, 0.25) 80px 80px 150px 0;
}

.book-shadow img {
  width: 100%;
  height: auto;
}

.author-section {
  background: var(--white);
}

.author-layout {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 10vw, 160px) 0;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(56px, 9vw, 145px);
  align-items: center;
}

.author-photo {
  margin: 0;
  overflow: hidden;
  background: #c8945f;
}

.author-photo img {
  width: 100%;
  height: auto;
}

.eyebrow-dark {
  color: var(--green);
}

.author-copy {
  max-width: 650px;
}

.author-copy h2 {
  margin: 0 0 36px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(3.05rem, 6.8vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: var(--green);
}

.author-copy > p:not(.eyebrow) {
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.75;
}

.site-footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(22px, 4.4vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

:focus-visible {
  outline: 3px solid #ffd45c;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .book-section::before {
    display: none;
  }

  .book-layout,
  .author-layout {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
  }

  .book-layout {
    min-height: 0;
    gap: 80px;
  }

  .book-visual {
    grid-row: 1;
  }

  .book-copy {
    grid-row: 2;
  }

  .book-shadow {
    width: min(78vw, 390px);
    box-shadow:
      rgba(0, 0, 0, 0.34) 16px 18px 42px 0,
      rgba(0, 0, 0, 0.23) 48px 58px 100px 0;
  }

  .author-layout {
    gap: 58px;
  }

  .author-photo {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
  }

  .header-buy {
    min-height: 38px;
    padding-inline: 17px;
    font-size: 0.68rem;
  }

  .hero-content {
    width: calc(100vw - 36px);
  }

  .hero-title {
    width: 90vw;
  }

  .hero-tagline {
    max-width: 300px;
    margin-inline: auto;
  }

  .book-layout,
  .author-layout {
    width: calc(100% - 36px);
  }

  .book-layout {
    padding-block: 92px 116px;
  }

  .book-copy h1 {
    font-size: clamp(2.1rem, 11.5vw, 3.4rem);
  }

  .amazon-button {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding-left: 18px;
  }

  .amazon-logo {
    width: 84px;
    flex-basis: 84px;
  }

  .author-layout {
    padding-block: 90px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.footer-recipes {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
