:root {
  --gold: #b58a2b;
  --gold-bright: #d4af37;
  --purple: #6b3fa0;
  --purple-soft: #8a5fc0;
  --cream: #fbf7f0;
  --cream-2: #f3ecdf;
  --ink: #3a2f4a;
  --muted: #6c627a;
  --shadow: rgba(107, 63, 160, 0.15);
  --max: 1000px;
  --nav-h: 64px;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px var(--shadow);
  z-index: 100;
}
.nav__brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--purple);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  list-style: none;
}
.nav__links a {
  font-family: var(--font-head);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--gold); }

/* ---------- Sections ---------- */
.snap { scroll-snap-type: y proximity; }
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.2rem, 5vw, 4rem) 4rem;
  position: relative;
}
.section__inner { max-width: var(--max); width: 100%; }
.section--alt { background: var(--cream-2); }
.hero { background: linear-gradient(160deg, #f6eefc 0%, var(--cream) 60%); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
h1, h2 { font-family: var(--font-head); line-height: 1.15; color: var(--purple); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 600; margin-bottom: 1.2rem; }
p { margin: 0 auto 1rem; max-width: 60ch; }
.lead { font-size: 1.2rem; }

.gold { color: var(--gold); font-weight: 700; }
.purple { color: var(--purple); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  text-decoration: none;
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--purple-soft); }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); }

/* ---------- The Book ---------- */
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  text-align: left;
}
.book__cover { justify-self: center; }
.book__cover img {
  border-radius: 8px;
  box-shadow: 0 18px 40px var(--shadow);
  max-height: 62vh;
}
.tiara { font-size: 3rem; line-height: 1; margin-bottom: 0.3rem; }
.book__copy p { margin-left: 0; }
.qline { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; max-width: 50ch; }
.retailers { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.retailer-note { font-size: 0.95rem; margin: 0.9rem 0 0; color: var(--muted); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  text-align: left;
}
.about__photo img {
  border-radius: 14px;
  box-shadow: 0 14px 34px var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about__copy p { margin-left: 0; }

/* ---------- Contact ---------- */
.contact .email {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.6rem;
}
.contact .email:hover { color: var(--gold); }

/* ---------- Pansy decorations ---------- */
.pansy {
  position: absolute;
  width: clamp(46px, 8vw, 92px);
  opacity: 0.9;
  pointer-events: none;
}
.pansy--tl { top: calc(var(--nav-h) + 10px); left: 18px; }
.pansy--tr { top: calc(var(--nav-h) + 10px); right: 18px; transform: scaleX(-1); }
.pansy--bl { bottom: 18px; left: 18px; }
.pansy--br { bottom: 18px; right: 18px; transform: scaleX(-1); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--purple);
  color: #f3ecff;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .book, .about { grid-template-columns: 1fr; text-align: center; }
  .book__copy p, .about__copy p { margin-left: auto; margin-right: auto; }
  .qline { max-width: 100%; }
  .retailers { justify-content: center; }
  .tiara { text-align: center; }
  .nav__brand { font-size: 1.05rem; }
  .nav__links { gap: 0.7rem; }
  .nav__links a { font-size: 0.88rem; }
  .pansy { display: none; }
}
