:root {
  --ink: #171313;
  --muted: #655d58;
  --paper: #fbfaf7;
  --ivory: #f4efe7;
  --wine: #9b0e36;
  --wine-dark: #640722;
  --gold: #c8a45f;
  --aqua: #0c8fb1;
  --line: rgba(23, 19, 19, 0.13);
  --shadow: 0 24px 70px rgba(60, 31, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(200, 164, 95, 0.15), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 45%, #ffffff 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.65rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 156px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #352d29;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.36);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(155, 14, 54, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.nav-links a.active {
  border-color: rgba(155, 14, 54, 0.25);
  color: var(--wine-dark);
  background: rgba(155, 14, 54, 0.1);
  box-shadow: 0 8px 22px rgba(155, 14, 54, 0.08);
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(155, 14, 54, 0.18);
  border-radius: 50%;
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-social-links a:hover,
.header-social-links a:focus-visible {
  border-color: rgba(155, 14, 54, 0.4);
  background: rgba(155, 14, 54, 0.07);
  transform: translateY(-1px);
}

.header-social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-social-links a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.header-social-links a:nth-child(3) svg rect {
  fill: currentColor;
  stroke: none;
}

.header-social-links a:nth-child(3) svg path {
  fill: #fff;
  stroke: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 76px);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.1rem, 6vw, 6.5rem) clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  color: var(--wine);
  font-size: clamp(4rem, 10vw, 9.5rem);
}

h2 {
  color: #241b18;
  font-size: clamp(2.25rem, 5vw, 5rem);
}

.subtitle {
  margin: 1rem 0 0;
  color: #3a302b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
}

.intro {
  max-width: 610px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  box-shadow: 0 14px 30px rgba(155, 14, 54, 0.25);
}

.button.secondary {
  color: var(--wine-dark);
  border-color: rgba(155, 14, 54, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.book-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
}

.book-stage::before {
  position: absolute;
  inset: 13% 8% 7% 8%;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(12, 143, 177, 0.22), rgba(200, 164, 95, 0.28));
  filter: blur(24px);
  content: "";
}

.book-stage img {
  width: 100%;
  border-radius: 3px;
  filter: drop-shadow(0 32px 36px rgba(39, 20, 22, 0.21));
  transform: rotate(1.5deg);
}

.launch-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 6vw, 6.5rem);
  border-block: 1px solid var(--line);
  background: #211815;
  color: #fffaf3;
  scroll-margin-top: 88px;
}

.content-section,
.author-section,
.waitlist-section {
  scroll-margin-top: 88px;
}

.launch-strip h2 {
  color: #fffaf3;
  font-size: clamp(2rem, 4vw, 4rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.countdown div {
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.countdown span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.content-section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.1rem, 6vw, 6.5rem);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.prose {
  color: #514842;
  font-size: 1.02rem;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 4rem);
  max-width: 1080px;
}

blockquote {
  max-width: 900px;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 4px solid var(--gold);
  color: #2b211d;
  background: linear-gradient(90deg, rgba(200, 164, 95, 0.13), rgba(255, 255, 255, 0));
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.17;
}

.author-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.1rem, 6vw, 6.5rem);
  background: var(--ivory);
}

.author-photo {
  position: relative;
}

.author-photo::after {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 42%;
  height: 42%;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  content: "";
}

.author-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.waitlist-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.9fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.1rem, 6vw, 6.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 231, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(12, 143, 177, 0.13), transparent 22rem);
}

.waitlist-copy {
  max-width: 680px;
}

.waitlist-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.waitlist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(155, 14, 54, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  color: #352d29;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(23, 19, 19, 0.18);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(155, 14, 54, 0.58);
  box-shadow: 0 0 0 4px rgba(155, 14, 54, 0.1);
}

.waitlist-form .button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.2rem;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  margin: 0;
  color: var(--wine-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.waitlist-dialog {
  width: min(92vw, 460px);
  padding: 1.6rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(23, 19, 19, 0.32);
}

.waitlist-dialog::backdrop {
  background: rgba(23, 19, 19, 0.52);
}

.waitlist-dialog h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.waitlist-dialog p {
  margin: 0.8rem 0 1.25rem;
  color: var(--muted);
}

.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 16px 34px rgba(18, 140, 126, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(18, 140, 126, 0.42);
}

.whatsapp-float svg {
  width: 100%;
  height: 100%;
}

.whatsapp-ring {
  fill: rgba(255, 255, 255, 0.12);
}

.whatsapp-text {
  fill: #fff;
  font-size: 8.6px;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-mark {
  fill: #fff;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 68px;
    height: 68px;
  }
}

.closing-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.1rem, 6vw, 6.5rem);
  color: #fff;
  background:
    linear-gradient(rgba(100, 7, 34, 0.92), rgba(33, 24, 21, 0.92)),
    url("assets/book-cover.png") center 43% / cover no-repeat;
  text-align: center;
}

.closing-section h2 {
  max-width: 900px;
  margin-inline: auto;
  color: #fff;
}

.closing-section h2 span {
  color: #f6d98d;
}

.closing-section p {
  max-width: 720px;
  margin: 1rem auto 2rem;
  color: rgba(255, 255, 255, 0.82);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.1rem, 6vw, 6.5rem);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

footer img {
  width: 138px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(155, 14, 54, 0.18);
  border-radius: 4px;
  color: var(--wine-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease;
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-links a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.social-links a:nth-child(3) svg rect {
  fill: currentColor;
  stroke: none;
}

.social-links a:nth-child(3) svg path {
  fill: #fff;
  stroke: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(155, 14, 54, 0.42);
  background: rgba(155, 14, 54, 0.06);
}

@media (max-width: 900px) {
  .hero,
  .launch-strip,
  .two-column,
  .author-section,
  .waitlist-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .book-stage {
    max-width: 440px;
  }

  .author-section {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand img {
    width: 122px;
    height: 56px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 0.78rem;
    font-size: 0.72rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .header-social-links a {
    width: 32px;
    height: 32px;
  }

  .header-social-links svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 2.2rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

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

  .author-photo::after {
    right: -0.5rem;
    bottom: -0.5rem;
  }

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

  .social-links {
    justify-content: flex-start;
  }
}
