/* ============ Tokens ============ */
:root {
  --navy: #1f3f5c;
  --navy-deep: #14283c;
  --blue: #3b6f9a;
  --ink: #2a3c4e;
  --muted: #5d7186;
  --cream: #fffaf2;
  --gold: #c99a4b;
  --rose: #e9a8a0;
  --glass: rgba(255, 255, 255, .6);
  --radius: 22px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Backgrounds — sections alternate light / dark, top to bottom:
     hero L · book D · rhythms L · quote D · author L · buy D · contact L · footer D */
  --bg-hero:     url("../public/images/backgrounds/bg-1.jpg"); /* light */
  --bg-book:     url("../public/images/backgrounds/bg-6.jpg"); /* dark  */
  --bg-soft:     url("../public/images/backgrounds/bg-3.jpg"); /* light */
  --bg-quote:    url("../public/images/backgrounds/bg-7.jpg"); /* dark  */
  --bg-author:   url("../public/images/backgrounds/bg-2.jpg"); /* light */
  --bg-buy:      url("../public/images/backgrounds/bg-10.jpg"); /* dark  */
  --bg-contact:  url("../public/images/backgrounds/bg-4.jpg"); /* light */
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.1; margin: 0 0 .5em; font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
.container { width: min(1140px, 100% - 3rem); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 500; color: var(--blue); margin-bottom: 1rem;
}
.eyebrow--light { color: #f3c9b8; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; cursor: pointer; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
  padding: .9rem 2rem; border-radius: 999px;
  font: 500 .88rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 63, 92, .28); background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--small { padding: .65rem 1.3rem; font-size: .76rem; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--rose); border-color: var(--rose); color: var(--navy-deep); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(255, 250, 242, .88); backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(31, 63, 92, .08); padding-block: .7rem;
}
.nav__brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.nav__brand em { color: var(--gold); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { font-size: .9rem; letter-spacing: .06em; color: var(--navy); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--navy); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  min-height: min(100svh, 900px); display: flex; align-items: center; position: relative;
  padding: 7rem 0 4rem;
  background: var(--bg-hero) center / cover no-repeat;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); font-weight: 500; letter-spacing: -.01em; }
.hero h1 span { display: block; font-style: italic; color: var(--blue); }
.hero__sub { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); letter-spacing: .04em; margin-bottom: .4rem; }
.hero__tag { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__book img { margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(31, 63, 92, .28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--navy); border-radius: 20px; opacity: .6; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--navy); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Sections ============ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--bg-soft   { background: var(--bg-soft) center / cover no-repeat; }
.section--bg-author { background: var(--bg-author) center / cover no-repeat; }
.section--bg-book    { background: var(--bg-book) center / cover no-repeat; }
.section--bg-buy     { background: var(--bg-buy) center / cover no-repeat; }
.section--bg-contact { background: var(--bg-contact) center / cover no-repeat; }

/* Dark sections: light text */
.section--dark { color: #e8eef5; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: #f3c9b8; }
.section--dark .ticks li::before { color: var(--rose); }
.section--dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.section--dark .btn:hover { background: var(--rose); border-color: var(--rose); color: var(--navy-deep); }
.section--dark .buy .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--dark .buy .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.section--dark .buy h2 { color: var(--navy); }
.section--dark .buy { color: var(--ink); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* Book */
.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book__cover img {
  margin-inline: auto; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(31, 63, 92, .3), 0 8px 18px rgba(31, 63, 92, .15);
  transform: rotate(-2deg); transition: transform .5s;
}
.book__cover img:hover { transform: rotate(0) scale(1.03); }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.card {
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius);
  padding: 2rem 1.4rem; text-align: center;
  box-shadow: 0 10px 30px rgba(31, 63, 92, .08);
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(31, 63, 92, .16); }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .2em; }
.card h3 { font-size: 2rem; margin: .4rem 0 .6rem; }
.card p { font-size: .95rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* Quote */
.quote {
  background: var(--bg-quote) center / cover no-repeat;
  padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; color: #fff;
}
.quote__mark { font-family: var(--serif); font-size: 7rem; line-height: .5; color: var(--rose); margin: 0; }
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.25;
  max-width: 820px; margin: 1rem auto 1.5rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.quote__by { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: #f3c9b8; margin: 0; }

/* Author */
.author { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.author__photo { position: relative; max-width: 420px; margin-inline: auto; }
.author__halo {
  position: absolute; inset: 8% 4% 0; border-radius: 50% 50% 22px 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(233, 168, 160, .35));
  box-shadow: 0 30px 60px rgba(31, 63, 92, .15);
}
.author__photo img { position: relative; }

/* Buy */
.buy {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
  background: #fff; border-radius: 30px; padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 24px 60px rgba(31, 63, 92, .12);
  border: 1px solid rgba(201, 154, 75, .3);
}
.buy__img { border-radius: 4px; box-shadow: 0 12px 28px rgba(31, 63, 92, .25); }
.buy__text { flex: 1 1 280px; }
.buy__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .3em; }
.buy__text p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.form {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 16px 44px rgba(31, 63, 92, .12);
  display: grid; gap: 1rem;
}
.form label span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; color: var(--navy); }
.form small { text-transform: none; letter-spacing: 0; opacity: .7; }
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(31, 63, 92, .18);
}
.form input::placeholder, .form textarea::placeholder { color: #8fa0b2; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--blue); }

/* Footer */
.footer { background: var(--navy-deep); color: #b9c8d8; padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; }
.footer p { margin: 0; font-size: .9rem; }
.footer__brand { font-family: var(--serif); font-size: 1.4rem !important; color: #fff; }
.footer__brand em { color: var(--gold); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3) { transition-delay: .2s; }
.cards .reveal:nth-child(4) { transition-delay: .3s; }
.cards .reveal:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__book img, .scroll-hint span { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; justify-content: center;
    gap: 1.6rem; height: 100svh; background: rgba(255, 250, 242, .97);
    transform: translateY(-100%); transition: transform .4s; z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { font-size: 1.4rem; font-family: var(--serif); }
  .hero__inner, .book, .author, .contact { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__book { order: -1; max-width: 360px; margin-inline: auto; }
  .hero { padding-top: 6rem; }
  .book__cover img { max-width: 240px; }
  .ticks { text-align: left; display: inline-block; }
  .author__photo { max-width: 320px; }
  .form .btn { justify-self: stretch; }
  .form { text-align: left; }
  .scroll-hint { display: none; }
  .footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .buy { text-align: center; }
}
