:root {
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --ink: #1E1B2E;
  --muted: #5B566B;
  --purple: #7B5CD6;
  --purple-deep: #5A3FB0;
  --sun: #FFD54F;
  --orange: #FF9F1C;
  --teal: #2EC4B6;
  --pink: #FF7AA8;
  --radius: 22px;
  --shadow: 0 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Outfit", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: "Luckiest Guy", "Outfit", sans-serif; font-weight: 400; letter-spacing: .5px; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); text-align: center; }
h3 { font-weight: 800; font-size: 1.15rem; }
a { color: inherit; }
section { padding: 72px 20px; max-width: 1140px; margin: 0 auto; }
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; background: rgba(255, 248, 236, .92);
  backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: "Luckiest Guy", sans-serif; font-weight: 400; font-size: 1.6rem; letter-spacing: 1px; }
.wordmark small { font-weight: 800; font-size: .58rem; letter-spacing: .32em; margin-top: 3px; }
nav { display: flex; gap: 22px; font-weight: 600; }
nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
nav a:hover { border-color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 800 1rem "Outfit", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.small { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; }
.eyebrow { display: inline-block; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .85rem; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 span { color: var(--purple); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art { position: relative; height: 460px; }
.fan { position: absolute; width: 58%; border: 3px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); }
.f1 { left: 2%; top: 40px; transform: rotate(-9deg); }
.f2 { right: 2%; top: 40px; transform: rotate(9deg); }
.f3 { left: 21%; top: 0; z-index: 2; }

/* Books */
.books { padding-top: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cover { position: relative; margin-bottom: 14px; }
.cover img { border-radius: 10px; border: 2px solid var(--ink); }
.badge { position: absolute; top: -10px; right: -10px; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: .8rem; }
.age { align-self: flex-start; background: var(--teal); color: #fff; border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: .8rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.soon { font-weight: 800; font-size: .85rem; color: var(--purple-deep); }

/* Why */
.why { background: var(--paper); border: 3px solid var(--ink); border-radius: 32px; margin: 40px auto; max-width: 1100px; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.reasons article { text-align: center; }
.reasons p { color: var(--muted); font-size: .95rem; margin: 0; }
.dot { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font: 800 1.5rem "Outfit", sans-serif; }
.d1 { background: var(--sun); } .d2 { background: var(--teal); color: #fff; }
.d3 { background: var(--orange); } .d4 { background: var(--pink); color: #fff; }

/* About + contact */
.about { display: flex; gap: 40px; align-items: center; max-width: 900px; }
.about h2 { text-align: left; }
.about p { color: var(--muted); }
.contact { text-align: center; max-width: 680px; }
.contact p { color: var(--muted); margin-bottom: 26px; }

.site-footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 28px 20px; border-top: 3px solid var(--ink); font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0; }

/* Look-inside dialog */
dialog { border: 3px solid var(--ink); border-radius: var(--radius); padding: 44px 18px 18px; max-width: min(92vw, 520px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(30, 27, 46, .55); }
dialog img { border: 2px solid var(--ink); border-radius: 8px; }
dialog p { text-align: center; font-weight: 600; margin: 12px 0 0; }
.close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 2rem; cursor: pointer; line-height: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .hero-art { height: 360px; max-width: 420px; margin: 0 auto; width: 100%; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .about { flex-direction: column; text-align: center; }
  .about h2 { text-align: center; }
}
@media (max-width: 560px) {
  section { padding: 48px 16px; }
  .site-header { padding: 10px 16px; }
  nav { display: none; }
  .hero-art { height: 280px; }
  .reasons { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 10px; border-radius: 16px; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: .85rem; }
  .card-actions .btn.small { padding: 6px 12px; font-size: .8rem; }
  .why { margin: 24px 16px; }
}
