/* Zigzaghop - one stylesheet, no framework. Fonts are self-hosted (no third-party
   requests), and nothing here needs inline styles, so the CSP can stay at style-src 'self'. */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/baloo2-600.51ef62c038.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/baloo2-800.3cc0f944be.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/atkinson-400.4d9923fa85.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/atkinson-700.2e78c5c98c.woff2") format("woff2"); }

:root {
  --sun: #ffd24a;
  --sun-soft: #fff0bf;
  --sun-deep: #f5b82e;
  --coral: #ec5848;
  --coral-strong: #c23a28;
  --teal: #1f8fb5;
  --teal-soft: #dcf1f8;
  --leaf: #2e9e5b;
  --leaf-soft: #e1f4e8;
  --plum: #6b4fa0;
  --plum-soft: #ece6f7;
  --ink: #2b2340;
  --ink-soft: #5d5672;
  --paper: #fffbf2;
  --card: #ffffff;
  --line: rgba(43, 35, 64, 0.12);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(43, 35, 64, 0.06), 0 10px 30px rgba(43, 35, 64, 0.08);
  --wrap: 1120px;
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--coral-strong); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0 0 0.5em;
  letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
.eyebrow { font: 600 0.95rem/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral-strong); margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.center { text-align: center; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255, 251, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 1.55rem/1 var(--head); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 0 var(--sun-deep); }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font: 600 1.05rem/1 var(--head); color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sun-soft); color: var(--ink); }
.langs { display: flex; gap: 2px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; }
.langs a { font: 600 0.9rem/1 var(--head); text-decoration: none; color: var(--ink-soft);
  padding: 7px 10px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu { display: none; }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav a { padding: 8px 12px; }
  .brand { font-size: 1.35rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 1.08rem/1 var(--head);
  text-decoration: none; padding: 16px 24px 15px; border-radius: 999px; border: 0;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--coral-strong); color: #fff; box-shadow: 0 4px 0 #8f2a1c; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #8f2a1c; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #8f2a1c; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--sun-soft); }
.btn-amazon { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #120d1f; }
.btn-amazon:hover { color: #fff; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 35, 64, 0.09) 1.2px, transparent 1.4px) 0 0 / 26px 26px,
    var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 .hl { color: var(--coral-strong); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art .sun { position: absolute; inset: 4% 4% 10% 4%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe68a, var(--sun) 62%, var(--sun-deep));
  box-shadow: 0 30px 60px rgba(245, 184, 46, 0.35); }
.hero-art .bo { position: absolute; left: 50%; bottom: 25%; width: 58%; transform: translateX(-50%);
  animation: hop 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-art svg.trail { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.trail .band { fill: none; stroke: var(--coral); stroke-width: 22; stroke-linecap: round;
  stroke-linejoin: round; }
.trail .dash { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 14 14; animation: march 1.4s linear infinite; }
.trail .start { fill: var(--leaf); } .trail .end { fill: var(--teal); }
@keyframes hop { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  45% { transform: translateX(-50%) translateY(-7%) rotate(2deg); }
  55% { transform: translateX(-50%) translateY(-7%) rotate(2deg); } }
@keyframes march { to { stroke-dashoffset: -28; } }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 600 0.95rem/1 var(--head); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; order: -1; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sun { background: var(--sun-soft); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .lead, .section-ink .muted { color: rgba(255, 255, 255, 0.78); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
.zz { display: block; width: 100%; height: 28px; color: var(--sun-soft); }
.zz.flip { transform: scaleY(-1); }
.zz path { fill: currentColor; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 26px; position: relative; }
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.tile-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 14px; }
.tile-icon svg { width: 30px; height: 30px; }
.t-sun { background: var(--sun-soft); color: #9a6a00; }
.t-coral { background: #ffe3de; color: var(--coral-strong); }
.t-teal { background: var(--teal-soft); color: var(--teal); }
.t-leaf { background: var(--leaf-soft); color: var(--leaf); }
.t-plum { background: var(--plum-soft); color: var(--plum); }

/* the book cards */
.book-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.book-card:hover { transform: translateY(-4px); color: inherit;
  box-shadow: 0 2px 4px rgba(43, 35, 64, 0.08), 0 18px 40px rgba(43, 35, 64, 0.14); }
.book-card img { border-radius: 6px 12px 12px 6px; transform: rotate(-3deg);
  box-shadow: 0 12px 24px rgba(43, 35, 64, 0.25); }
.book-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.book-card .lang { display: inline-block; font: 600 0.85rem/1 var(--head); letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--teal); background: var(--teal-soft); border-radius: 999px;
  padding: 6px 10px; margin-bottom: 10px; }
.book-card .more { font: 800 1.02rem/1 var(--head); color: var(--coral-strong); }
@media (max-width: 480px) { .book-card { grid-template-columns: 110px 1fr; gap: 16px; padding: 20px; } }

/* coming next */
.soon { border: 2px dashed rgba(43, 35, 64, 0.22); box-shadow: none; background: rgba(255, 255, 255, 0.6); }
.tag { display: inline-block; font: 800 0.78rem/1 var(--head); letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag-sun { background: var(--sun); color: var(--ink); }

/* meet Bo */
.bo-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.bo-poses { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.bo-poses img { width: 30%; filter: drop-shadow(0 10px 14px rgba(43, 35, 64, 0.18)); }
.bo-poses img:nth-child(2) { width: 36%; transform: translateY(-14px); }
@media (max-width: 760px) { .bo-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px;
  scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #fff; }
.gallery figcaption { font: 600 1rem/1.3 var(--head); margin-top: 10px; }
.gallery figcaption span { display: block; font: 400 0.9rem/1.4 var(--text); color: var(--ink-soft); }

/* ---------------------------------------------------------------- book page */
.book-hero { padding: clamp(32px, 6vw, 72px) 0; }
.book-hero .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.book-cover { position: relative; }
.book-cover .cover { border-radius: 8px 16px 16px 8px; box-shadow: 0 24px 48px rgba(43, 35, 64, 0.28); }
.book-cover .bo-peek { position: absolute; width: 30%; right: -10%; bottom: -17%;
  filter: drop-shadow(0 8px 10px rgba(43, 35, 64, 0.2)); }
.subtitle { font: 600 1.25rem/1.35 var(--head); color: var(--ink-soft); margin-top: -6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 26px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px;
  font-size: 0.95rem; }
.facts strong { font-family: var(--head); }
.buy { background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 22px; box-shadow: var(--shadow); margin: 0 0 22px; }
.buy p { margin: 12px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 24px; height: 24px;
  border-radius: 50%; background: var(--leaf-soft);
  background-image: linear-gradient(135deg, transparent 0 0); }
.checklist li::after { content: ""; position: absolute; left: 8px; top: 0.42em; width: 7px; height: 12px;
  border: solid var(--leaf); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.note { border-left: 5px solid var(--sun-deep); background: var(--sun-soft); border-radius: 0 16px 16px 0;
  padding: 16px 20px; }
@media (max-width: 860px) {
  .book-hero .wrap { grid-template-columns: 1fr; }
  .book-cover { max-width: 300px; margin: 0 auto 10px; }
  .book-cover { margin-bottom: 48px; }
  .book-cover .bo-peek { right: -6%; width: 28%; bottom: -15%; }
}

/* ---------------------------------------------------------------- legal pages */
.legal { padding: clamp(32px, 6vw, 64px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 10px 20px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.legal dt { font: 600 1rem/1.4 var(--head); color: var(--ink-soft); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; } }
.updated { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------------------------------------------------------- language chooser */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px;
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 35, 64, 0.09) 1.2px, transparent 1.4px) 0 0 / 26px 26px,
    var(--paper); }
.chooser .box { text-align: center; max-width: 640px; }
.chooser .logo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px;
  box-shadow: 0 6px 0 var(--sun-deep), 0 20px 40px rgba(245, 184, 46, 0.35); }
.chooser h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 4px; }
.chooser .tagline { font: 600 1.15rem/1.5 var(--head); color: var(--ink-soft); margin-bottom: 30px; }
.lang-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lang-cards a { display: block; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 20px 12px; box-shadow: var(--shadow);
  transition: transform 0.15s ease; }
.lang-cards a:hover { transform: translateY(-3px); color: var(--ink); }
.lang-cards strong { display: block; font: 800 1.35rem/1.2 var(--head); }
.lang-cards span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 520px) { .lang-cards { grid-template-columns: 1fr; } }
.chooser .legal-links { margin-top: 28px; font-size: 0.92rem; color: var(--ink-soft); }
.chooser .legal-links a { margin: 0 6px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 56px 0 36px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 1.05rem; color: var(--sun); letter-spacing: 0.06em; text-transform: uppercase; }
.foot-grid h2.mt { margin-top: 26px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 800 1.5rem/1 var(--head); color: #fff;
  margin-bottom: 12px; }
.foot-brand img { width: 46px; height: 46px; border-radius: 50%; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; padding-top: 20px;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.64); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.lost img { width: 180px; margin: 0 auto 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
