:root {
  --navy: #142029; --paper: #1e2c38; --paper-2: #243543; --line: #2c3d4b;
  --cream: #f4ead6; --muted: #b4bcc4; --orange: #f08a4b; --sun: #ffd34d;
  --green: #6cc590; --blue: #6db3ea; --kraft: #8a6a45; --pine: #173d2b;
  --head: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--cream); background: var(--navy);
  background-image:
    radial-gradient(rgba(255,240,210,.10) 1.2px, transparent 1.6px),
    radial-gradient(rgba(255,240,210,.06) 1px, transparent 1.4px);
  background-size: 46px 46px, 23px 23px; background-position: 0 0, 11px 17px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); margin-bottom: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.lead { margin: 0 0 40px; font-size: 1.19rem; color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons */
.pill, .ghost {
  display: inline-block; text-decoration: none; font-family: var(--head); font-size: 1.125rem;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s, background .12s;
}
.pill { background: var(--orange); color: var(--navy); }
.pill:hover { background: var(--sun); color: var(--navy); transform: translateY(-2px); }
.ghost { border: 2px solid var(--cream); color: var(--cream); padding: 11px 20px; }
.ghost:hover { background: var(--cream); color: var(--navy); }
.big { font-size: 1.3rem; padding: 17px 30px; }
.ghost.big { padding: 15px 28px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.logo img { height: 52px; width: auto; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.top nav a:not(.pill) { color: var(--cream); text-decoration: none; font-weight: 700; padding: 12px 14px; }
.top nav a:not(.pill):hover { color: var(--sun); }

/* books */
.band { background: var(--paper); padding: 96px 0; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; }
.book { scroll-margin-top: 24px; background: var(--paper-2); border-radius: 22px; padding: 30px; display: flex; gap: 28px; flex-wrap: wrap; }
.book > img { width: 190px; border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.4); flex: none; }
.book-body { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.book h3 { font-size: 2rem; }
.book p { margin: 0; color: var(--muted); }
.tag { align-self: flex-start; color: var(--cream); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tag-kraft { background: var(--kraft); } .tag-green { background: var(--pine); }
.buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
.price { font-family: var(--head); font-size: 1.75rem; color: var(--sun); }

/* store dropdown */
.stores { position: relative; }
.stores summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 10px; }
.stores summary::-webkit-details-marker { display: none; }
.caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid currentColor; transition: transform .15s; }
.stores[open] .caret { transform: rotate(180deg); }
.stores[open] summary { background: var(--sun); }
.store-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(290px, 82vw);
  background: var(--cream); color: var(--navy); border-radius: 18px; padding: 10px;
  box-shadow: 0 22px 50px rgba(0,0,0,.45); animation: drop .14s ease-out;
}
.store-menu::before { content: ""; position: absolute; top: -7px; right: 34px; width: 14px; height: 14px; background: var(--cream); transform: rotate(45deg); border-radius: 2px; }
.store-head { margin: 4px 10px 6px; font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #6b5d4f; }
.store-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--navy); }
.store-menu a:hover, .store-menu a:focus-visible { background: #e9dcc2; color: var(--navy); }
.store-name { font-family: var(--head); font-size: 1.2rem; }
.store-note { font-size: .9rem; color: #5a5047; }
.store-foot { margin: 8px 12px 4px; font-size: .82rem; line-height: 1.4; color: #4f463e; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .store-menu { animation: none; } .caret { transition: none; } }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.eyebrow { margin: 0 0 18px; font-weight: 800; font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; margin-bottom: 22px; }
.hero h1 span { color: var(--sun); }
.hero .lead { font-size: 1.25rem; margin-bottom: 34px; max-width: 34em; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hand { margin: 30px 0 0; font-family: var(--hand); font-size: 1.45rem; color: var(--muted); }
.covers { flex: 1 1 420px; min-width: 0; position: relative; aspect-ratio: 1 / 1.05; max-height: 540px; }
.covers img { position: absolute; border-radius: 6px; }
.covers .c1 { left: 4%; top: 0; width: 56%; transform: rotate(-5deg); box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.covers .c2 { right: 4%; top: 8%; width: 52%; transform: rotate(7deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* inside */
.section { padding-block: 96px; }
.worlds { width: 100%; border-radius: 22px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; padding-bottom: 96px; }
.step { border: 2px dashed var(--c); border-radius: 22px; padding: 30px; }
.step span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c); color: var(--navy); font-family: var(--head); font-size: 1.75rem; }
.step h3 { margin: 18px 0 8px; font-size: 1.6rem; }
.step p { margin: 0; color: var(--muted); }
.s1 { --c: var(--orange); } .s2 { --c: var(--green); } .s3 { --c: var(--blue); }

/* about */
.about { background: var(--cream); color: var(--navy); padding: 96px 24px; }
.about-in { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about img { width: 220px; flex: none; }
.about-in > div { flex: 1 1 380px; min-width: 0; }
.about h2 { margin-bottom: 16px; }
.about p { margin: 0; font-size: 1.19rem; line-height: 1.7; color: #3b4651; }

/* newsletter */
.news { max-width: 760px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.news .lead { margin-inline: auto; margin-bottom: 32px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* phones */
@media (max-width: 640px) {
  .top { justify-content: center; }
  .top nav { justify-content: center; }
  .band, .section, .about, .news { padding-block: 64px; }
  .hero { padding-block: 48px 64px; gap: 32px; }
  .book { padding: 22px; }
  .book > img { width: 140px; }
  .covers { aspect-ratio: 1 / .82; }
  .about-in { justify-content: center; text-align: center; gap: 28px; }
  .about img { width: 160px; }
}
