:root {
  /* Sampled from the real Calm Water Academy logo + illustrations */
  --color-bg: #faf7f2;
  --color-bg-alt: #e9f1f6;
  --color-primary: #3a2d25;
  --color-text: #3a2d25;
  --color-text-muted: #7a6a5e;
  --color-accent: #f2765a;
  --color-accent-dark: #e05f42;
  --color-droplet: #a9c8e6;
  --color-sage: #b8e0d4;
  --color-surface: #ffffff;
  --radius: 10px;
  --wrap: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--color-primary);
  line-height: 1.2;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cta-button:hover { background: var(--color-accent-dark); }
.cta-small { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.cta-outline {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-droplet);
}
.cta-outline:hover { background: var(--color-bg-alt); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.trust-badge:hover { color: var(--color-text); }
.trust-stars { color: #e8a33d; letter-spacing: 1px; }

/* Header */
.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-primary);
}
.logo-drop { width: 28px; height: 28px; border-radius: 0; }
.logo-text { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.logo-text small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--color-text-muted); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

nav#primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav#primary-nav a:not(.cta-button) {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav#primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  nav#primary-nav.open { display: flex; }
}

/* Hero */
.hero { padding: 2rem 0 4rem; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  z-index: 0;
}
.hero::before { width: 320px; height: 320px; background: var(--color-droplet); top: -100px; left: -100px; }
.hero::after { width: 260px; height: 260px; background: var(--color-sage); bottom: -60px; right: 5%; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy h1 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.subtitle { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero-media { position: relative; }
.hero-media picture, .hero-media img { border-radius: var(--radius); }
.hero-cover {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  width: 35%;
  aspect-ratio: 971 / 1500;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-droplet);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 2.8rem; }
  .hero { min-height: 75vh; display: flex; align-items: center; }
  .hero-grid { width: 100%; }
}

/* Worries */
.worries { padding: 4rem 0; }
.worries h2, .journey h2, .reviews h2 { text-align: center; margin-bottom: 2.5rem; }
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-chip .icon { width: 28px; height: 28px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip-droplet { background: #d9e8f5; }
.icon-chip-droplet .icon { stroke: #3f6e96; }
.icon-chip-coral { background: #fbe3dc; }
.icon-chip-coral .icon { stroke: #c14a2f; }
.icon-chip-sage { background: #dcf1e9; }
.icon-chip-sage .icon { stroke: #2f7a5e; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Journey */
.journey { padding: 4rem 0; background: var(--color-bg-alt); }
.journey-intro { text-align: center; color: var(--color-text-muted); max-width: 42ch; margin: -1.5rem auto 2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}
.reviews .eyebrow { text-align: center; }
.badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.step-book { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; color: var(--color-primary); }
.step-desc { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.step-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.step-status-soon { background: #fbe3dc; color: #c14a2f; }
.step-status-future { background: var(--color-surface); color: var(--color-text-muted); }

/* Book shelf (pure CSS scroll-snap carousel — no JS) */
.book-shelf-wrap { position: relative; margin-top: 1rem; }
.book-shelf {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem calc(50% - 90px) 1.5rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.book-shelf::-webkit-scrollbar { display: none; }
.shelf-slide {
  flex: 0 0 180px;
  scroll-snap-align: center;
  scroll-margin-left: calc(50% - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.shelf-slide-link { cursor: pointer; transition: transform 0.2s ease; }
.shelf-slide-link:hover { transform: translateY(-4px); }
.shelf-slide-link:hover .shelf-cover { box-shadow: 0 16px 28px rgba(58, 45, 37, 0.22); }
.shelf-cover {
  width: 160px;
  aspect-ratio: 971 / 1500;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(58, 45, 37, 0.15);
}
.shelf-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #e9f1f6, #e9f1f6 10px, #dfeaf1 10px, #dfeaf1 20px);
  border: 2px dashed var(--color-droplet);
  box-shadow: none;
}
.shelf-placeholder-icon { opacity: 0.35; }

/* Try tonight */
.try-tonight { padding: 4rem 0; }
.try-grid {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.try-copy p { color: var(--color-text-muted); margin-top: 0.75rem; }

@media (min-width: 700px) {
  .try-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Reviews */
.reviews { padding: 4rem 0; }
.review-card {
  position: relative;
  max-width: 560px;
  margin: 2rem auto 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.review-quote-mark {
  position: absolute;
  top: -2.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-droplet);
}
.stars { color: #e8a33d; font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-title { font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.review-card blockquote { color: var(--color-text-muted); margin-bottom: 0.75rem; }
.review-card figcaption { font-weight: 600; font-size: 0.9rem; }
.reviews .text-link { display: block; text-align: center; }

/* Author */
.author { padding: 4rem 0; background: var(--color-bg-alt); }
.author-copy p { color: var(--color-text-muted); }
.author-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.author-photo { display: block; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (min-width: 700px) {
  .author-grid { grid-template-columns: auto 1fr; text-align: left; }
}

/* Next book */
.next-book {
  padding: 4rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-droplet);
}
.next-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.next-grid picture { display: block; max-width: 280px; margin: 0 auto; }
.next-grid img { max-width: 280px; margin: 0 auto; }
.next-copy p { color: var(--color-text-muted); margin: 0.75rem 0 1.25rem; }
.signup-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.text-link { color: var(--color-text-muted); font-size: 0.9rem; text-decoration: underline; }
.text-link:hover { color: var(--color-accent-dark); }
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .next-grid { grid-template-columns: auto 1fr; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.site-footer p + p { margin-top: 0.4rem; }
