/* Wanderwit Press: brain candy for girls who annotate */
:root {
  --ink: #17141d;
  --ink-2: #2a2533;
  --soft: #5d5666;
  --paper: #faf6f0;
  --card: #fffdf9;
  --line: #e8ded2;
  --blush: #f5d6d2;
  --rose: #d65a72;
  --rose-deep: #b8435b;
  --butter: #f8e7a1;
  --sage: #d3e0cc;
  --lilac: #e4dcf4;
  --sky: #d4e7ee;
  --radius: 22px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1200px;
  --shadow: 0 1px 1px rgba(23,20,29,.04), 0 18px 40px -18px rgba(23,20,29,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(23,20,29,.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: lowercase; }
.chapter { font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: .06em; }
.chapter b { color: var(--rose); font-weight: 500; }
.hand { font-family: var(--hand); }
.hl { background: linear-gradient(104deg, transparent 2%, var(--butter) 4%, var(--butter) 94%, transparent 97%); background-size: 100% 46%; background-position: 0 82%; background-repeat: no-repeat; padding: 0 .08em; }
.hl-pink { background-image: linear-gradient(104deg, transparent 2%, var(--blush) 4%, var(--blush) 94%, transparent 97%); }
em { font-style: italic; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 2px dashed var(--rose); outline-offset: 4px; border-radius: 6px; }

/* ---------- announcement marquee ---------- */
.announce { background: var(--ink); color: #f3ece4; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.announce .track { display: inline-flex; gap: 40px; padding: 9px 0; animation: marquee 38s linear infinite; }
.announce span::before { content: "✦"; color: var(--butter); margin-right: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; }
.brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--rose); border: 1px solid currentColor; padding: 2px 6px; border-radius: 4px; transform: translateY(-4px); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; }
.nav-links a { text-decoration: none; color: var(--soft); position: relative; }
.nav-links a::before { content: "/"; color: var(--rose); margin-right: 3px; opacity: 0; transition: opacity .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { opacity: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--rose); }
.btn-dark:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--rose); }
.btn-line { background: var(--card); color: var(--ink); }
.btn-line:hover { background: var(--butter); }
.btn-rose { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.arrow { font-family: var(--mono); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--blush), transparent 65%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; left: -220px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, var(--lilac), transparent 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(56px, 7.6vw, 112px); margin: 18px 0 22px; }
.hero h1 em { color: var(--rose); }
.lede { font-size: 19px; color: var(--soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.note { position: relative; display: inline-block; margin-top: 26px; margin-left: 8px; font-family: var(--hand); font-size: 24px; color: var(--rose); transform: rotate(-2deg); }
.note svg { position: absolute; left: -46px; top: -24px; width: 44px; color: var(--rose); }
.stats { display: flex; gap: 0; margin-top: 40px; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; width: fit-content; background: var(--card); }
.stats div { padding: 12px 20px; border-right: 1.5px solid var(--ink); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; }
.stats span { font-family: var(--mono); font-size: 11px; color: var(--soft); }

.collage { position: relative; height: 560px; }
.polaroid { position: absolute; background: #fff; padding: 12px 12px 40px; border-radius: 4px; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.polaroid img { border-radius: 2px; }
.polaroid figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: 22px; color: var(--ink-2); }
.p1 figcaption, .p2 figcaption { text-align: left; padding-left: 14px; }
.tape { position: absolute; width: 92px; height: 26px; top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: rgba(248, 231, 161, .85); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tape.pink { background: rgba(245, 214, 210, .9); }
.tape.sage { background: rgba(211, 224, 204, .9); }
.p1 { width: 44%; left: 0; top: 70px; transform: rotate(-8deg); }
.p2 { width: 46%; left: 30%; top: 0; transform: rotate(3deg); z-index: 2; }
.p3 { width: 40%; right: 0; top: 230px; transform: rotate(9deg); z-index: 3; }
.collage:hover .p1 { transform: rotate(-11deg) translate(-8px, 4px); }
.collage:hover .p3 { transform: rotate(12deg) translate(8px, 6px); }
.sticky {
  position: absolute; z-index: 4; left: 4%; bottom: 20px; width: 200px; padding: 18px 16px 16px;
  background: var(--butter); transform: rotate(-4deg); box-shadow: 0 10px 22px -10px rgba(0,0,0,.35);
  font-family: var(--hand); font-size: 23px; line-height: 1.15;
}
.sticky small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; margin-bottom: 6px; color: var(--ink-2); }
.spin { position: absolute; z-index: 5; right: -3%; top: -46px; width: 130px; height: 130px; animation: spin 18s linear infinite; }
.spin text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; fill: var(--ink); }
.spin-dot { position: absolute; z-index: 5; right: calc(-3% + 47px); top: 1px; width: 36px; height: 36px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; color: #fff; font-size: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ribbon marquee ---------- */
.ribbon { background: var(--rose); color: #fff; overflow: hidden; white-space: nowrap; transform: rotate(-1.4deg); margin: 0 -20px; border-block: 1.5px solid var(--ink); }
.ribbon .track { display: inline-flex; gap: 34px; padding: 14px 0; animation: marquee 30s linear infinite; font-family: var(--serif); font-style: italic; font-size: 28px; }
.ribbon span::after { content: "✦"; font-style: normal; font-size: 18px; margin-left: 34px; color: var(--butter); vertical-align: middle; }

/* ---------- sections ---------- */
section { padding: 100px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head h2 { font-size: clamp(42px, 5.4vw, 72px); margin-top: 12px; }
.head h2 em { color: var(--rose); }
.head p { color: var(--soft); max-width: 42ch; }

/* ---------- quiz ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 8px 8px 0 var(--ink); }
.quiz-q { padding: 44px; border-right: 1.5px solid var(--ink); }
.quiz-q h3 { font-size: 40px; margin: 12px 0 22px; }
.quiz-step + .quiz-step { margin-top: 26px; }
.quiz-step .mono { color: var(--soft); display: block; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: 500 14px var(--sans); padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; transition: background .15s, transform .15s; }
.opt:hover { transform: translateY(-2px); }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.quiz-a { position: relative; padding: 44px; background: var(--lilac); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 420px; }
.quiz-a .waiting { font-family: var(--hand); font-size: 30px; color: var(--ink-2); max-width: 16ch; }
.result { display: none; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.result.show { display: grid; animation: pop .45s cubic-bezier(.2,.9,.3,1.3); }
.result img { border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-4deg); background: #fff; }
.result h4 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 6px 0 8px; }
.result p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* ---------- shop ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: 500 13px var(--mono); padding: 9px 14px 9px; border-radius: 10px 10px 0 0; border: 1.5px solid var(--ink); border-bottom-width: 4px; background: var(--card); cursor: pointer; text-transform: lowercase; transition: transform .15s; }
.tab:hover { transform: translateY(-2px); }
.tab[data-filter="kids"] { background: var(--sky); }
.tab[data-filter="seniors"] { background: var(--lilac); }
.tab[data-filter="mindful"] { background: var(--blush); }
.tab[data-filter="explore"] { background: var(--sage); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(-3px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.product[hidden] { display: none; }
.art { position: relative; aspect-ratio: 4 / 3.3; display: grid; place-items: center; overflow: hidden; background: var(--tint, var(--blush)); border-bottom: 1.5px solid var(--ink); }
.art img { height: 80%; width: auto; border-radius: 3px; box-shadow: 0 16px 28px -12px rgba(0,0,0,.5); transition: transform .35s; }
.art.duo img:first-child { position: absolute; height: 70%; transform: translate(-21%, 4%) rotate(-7deg); }
.art.duo img:last-child { position: absolute; height: 74%; transform: translate(20%, -2%) rotate(5deg); }
.art.wide img { height: auto; width: 84%; }
.product:hover .art img:last-child { transform: translate(20%, -5%) rotate(7deg); }
.product:hover .art.single img, .product:hover .art.wide img { transform: rotate(-2deg) scale(1.03); }
.flag { position: absolute; top: 14px; right: -2px; z-index: 2; font: 500 11px var(--mono); letter-spacing: .06em; background: var(--butter); border: 1.5px solid var(--ink); border-right: 0; padding: 6px 12px 6px 14px; border-radius: 6px 0 0 6px; }
.body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.body .meta { font-family: var(--mono); font-size: 11.5px; color: var(--soft); }
.product h3 { font-size: 30px; }
.product .desc { color: var(--soft); font-size: 15px; }
.buy { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px dashed var(--line); }
.price { font-family: var(--serif); font-size: 34px; line-height: 1; }
.price small { font-family: var(--mono); font-size: 11px; color: var(--soft); margin-left: 4px; }

/* ---------- peek ---------- */
.peek { background: var(--ink); color: #f3ece4; }
.peek .chapter { color: #a89fb2; }
.peek .head p { color: #b9b1c3; }
.peek-row { display: flex; gap: 26px; overflow-x: auto; padding: 12px 6px 30px; scroll-snap-type: x mandatory; scrollbar-color: var(--rose) transparent; }
.peek-row figure { margin: 0; flex: 0 0 230px; scroll-snap-align: start; background: #fff; padding: 10px 10px 38px; border-radius: 4px; position: relative; transition: transform .25s; }
.peek-row figure:nth-child(odd) { transform: rotate(-2deg); }
.peek-row figure:nth-child(even) { transform: rotate(2deg); }
.peek-row figure:hover { transform: rotate(0) translateY(-6px); }
.peek-row figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: 21px; color: var(--ink); }

/* ---------- free ---------- */
.free { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; background: var(--butter); border: 1.5px solid var(--ink); border-radius: 28px; padding: 56px; box-shadow: 8px 8px 0 var(--ink); }
.free h2 { font-size: clamp(42px, 5vw, 66px); margin: 12px 0 14px; }
.free p { color: var(--ink-2); max-width: 42ch; }
.free ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 15px; }
.free li::before { content: "☑ "; font-family: var(--mono); color: var(--rose); }
.stamp { position: absolute; top: -26px; right: 40px; width: 110px; height: 110px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: .9; transform: rotate(12deg); border: 1.5px solid var(--ink); }
.stamp small { display: block; font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .14em; margin-top: 4px; }
.fan { position: relative; height: 330px; }
.fan img { position: absolute; width: 46%; background: #fff; padding: 6px; border-radius: 4px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); }
.fan img:nth-child(1) { left: 2%; top: 36px; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 28%; top: 0; transform: rotate(-1deg); z-index: 2; }
.fan img:nth-child(3) { left: 52%; top: 40px; transform: rotate(8deg); }

/* ---------- shelf ---------- */
.shelf { display: flex; align-items: end; justify-content: center; gap: 18px; padding: 0 12px 0; border-bottom: 10px solid var(--ink); position: relative; flex-wrap: nowrap; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 12px; background: radial-gradient(ellipse at center, rgba(0,0,0,.18), transparent 70%); }
.shelf img { width: 13%; border-radius: 3px 3px 0 0; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); transition: transform .25s; }
.shelf img:hover { transform: translateY(-14px) rotate(-2deg); }
.shelf-note { text-align: center; margin-top: 40px; font-family: var(--hand); font-size: 26px; color: var(--rose); }

/* ---------- share ---------- */
.share { text-align: center; }
.share h2 { font-size: clamp(46px, 7vw, 100px); }
.share h2 .tag { font-family: var(--mono); font-size: .42em; letter-spacing: -.02em; display: inline-block; background: var(--ink); color: var(--butter); padding: .12em .4em; border-radius: 12px; transform: rotate(-2deg); vertical-align: middle; }
.share p { color: var(--soft); max-width: 52ch; margin: 22px auto 0; }

/* ---------- about + faq ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about blockquote { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.about blockquote em { color: var(--rose); }
.about .copy p { color: var(--soft); }
.about .copy p + p { margin-top: 14px; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.traits span { font-family: var(--mono); font-size: 12px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; background: var(--card); }
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1.5px solid var(--ink); padding: 22px 4px; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 28px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; width: 34px; height: 34px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--butter); }
.faq details p { color: var(--soft); margin-top: 12px; max-width: 68ch; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #b8b0c2; padding: 70px 0 34px; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--butter); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
.bigmark { font-family: var(--serif); font-style: italic; color: #fff; font-size: clamp(80px, 17vw, 250px); line-height: .8; letter-spacing: -.03em; margin-top: 56px; white-space: nowrap; }
.legal { border-top: 1px solid #332d3c; margin-top: 30px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 11.5px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.intro { animation: intro .6s ease both; }
.intro-2 { animation-delay: .12s; }
@keyframes intro { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .announce .track, .ribbon .track, .spin, .intro { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-line { display: none; }
  .menu-btn { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); padding: 22px 24px 28px; gap: 18px; border-bottom: 1.5px solid var(--ink); font-size: 16px; }
  .hero { padding: 36px 0 70px; }
  .hero-grid, .about, .free, .quiz { grid-template-columns: 1fr; }
  .quiz-q { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 30px 24px; }
  .quiz-a { padding: 30px 24px; min-height: 260px; }
  .collage { height: 470px; }
  .free { padding: 44px 24px 30px; }
  section { padding: 76px 0; }
  .shelf img { width: 22%; }
  .shelf { flex-wrap: wrap; border-bottom: 0; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav-cta .btn-dark { display: none; }
  .collage { height: 380px; }
  .sticky { width: 160px; font-size: 19px; }
  .spin { width: 96px; height: 96px; right: 0; top: -30px; }
  .spin-dot { right: 30px; top: 0; width: 30px; height: 30px; font-size: 13px; }
  .stats div { padding: 10px 14px; }
  .stats strong { font-size: 24px; }
  .free ul { grid-template-columns: 1fr; }
  .fan { height: 230px; }
  .result { grid-template-columns: 110px 1fr; }
  .foot { grid-template-columns: 1fr; }
  .ribbon .track { font-size: 22px; }
  .stamp { right: 18px; width: 92px; height: 92px; font-size: 25px; }
}
