@font-face {
  font-family: "Nunito";
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Gochi Hand";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/gochi-hand-latin.woff2) format("woff2");
}

:root {
  --navy: #1E2A5E;
  --butter: #FFD84D;
  --cherry: #FF5C6C;
  --bubblegum: #FF9CC8;
  --mint: #8BE3C6;
  --lilac: #C4B5FF;
  --sky: #A9D8FF;

  --paper: #FFF8E7;
  --dot: rgba(30, 42, 94, 0.13);
  --text: #1E2A5E;
  --muted: #3D4878;
  --card: #FFFFFF;
  --ink: #1E2A5E; /* outlines + hard shadows */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151B42;
    --dot: rgba(255, 255, 255, 0.09);
    --text: #FFF4DD;
    --muted: #D6D9F0;
    --card: #232C62;
    --ink: #04071A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cherry); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--butter); color: var(--navy); padding: 8px 14px; border: 3px solid var(--navy); border-radius: 12px; font-weight: 800; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.hand { font-family: "Gochi Hand", "Comic Sans MS", cursive; font-weight: 400; }

/* sticker primitives */
.sticker {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
}
.candy { color: var(--navy); }
.candy a { color: var(--navy); }
.butter { background: var(--butter); }
.cherry { background: var(--cherry); }
.bubblegum { background: var(--bubblegum); }
.mint { background: var(--mint); }
.lilac { background: var(--lilac); }
.sky { background: var(--sky); }

/* header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.4rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.site-header nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; font-weight: 800; text-decoration: none; padding: 6px 14px; border: 3px solid transparent; border-radius: 999px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-color: var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }

/* buttons + badge */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
  color: var(--navy);
  padding: 12px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}
a.pill:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
a.pill:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.store { background: var(--navy); color: #fff; border-color: var(--ink); }
.store small { display: block; font-weight: 700; font-size: 0.75rem; opacity: 0.85; line-height: 1.1; }
.store span { line-height: 1.15; }
.store svg { width: 26px; height: 26px; flex: none; }
@media (prefers-color-scheme: dark) { .store { background: var(--butter); color: var(--navy); } }

/* hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .tag { display: inline-block; font-size: 1.5rem; padding: 2px 16px; transform: rotate(-2deg); margin-bottom: 18px; border-radius: 14px; }
.hero .lede { font-size: 1.2rem; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.hero .meta { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }
.phones { position: relative; display: flex; justify-content: center; gap: 0; }
.phones img { width: 46%; max-width: 250px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.phones img:first-child { transform: rotate(-4deg); z-index: 1; }
.phones img:last-child { transform: rotate(4deg) translate(-12px, 26px); }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }

/* quest chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { line-height: 1.3; font-family: "Gochi Hand", cursive; font-size: 1.3rem; color: var(--navy); padding: 6px 16px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.chips li:nth-child(odd) { transform: rotate(-1.5deg); }
.chips li:nth-child(even) { transform: rotate(1.5deg); }

section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title p { color: var(--muted); }

/* features */
.features { display: grid; gap: 28px; }
.feature { display: grid; gap: 20px; align-items: center; padding: 22px; }
.feature img { width: 100%; max-width: 230px; margin: 0 auto; border-radius: 18px; border: 3px solid var(--ink); }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin-bottom: 4px; }
@media (min-width: 720px) {
  .feature { grid-template-columns: 1fr 230px; padding: 30px 34px; }
  .feature:nth-child(even) { grid-template-columns: 230px 1fr; }
  .feature:nth-child(even) img { order: -1; }
}

.promise { text-align: center; padding: 28px 22px; }
.promise p { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }

/* content pages */
.page { padding: 12px 0 48px; }
.page .sticker { padding: 26px 22px; }
@media (min-width: 720px) { .page .sticker { padding: 40px 48px; } }
.page h2 { font-size: 1.45rem; margin-top: 1.6em; }
.page h2:first-of-type { margin-top: 0.6em; }
.page h3 { margin-top: 1.4em; margin-bottom: 0.25em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.updated { color: var(--muted); font-weight: 700; }
.callout { padding: 18px 20px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); margin: 18px 0; color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--navy); }
.mail { font-size: 1.4rem; font-weight: 900; }

/* footer */
.site-footer { padding: 32px 0 44px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } a.pill:hover, a.pill:active { transform: none; } }
.chips.center { justify-content: center; }
.promise-title { font-weight: 400; font-size: 1.8rem; }
.promise .promise-sub { font-weight: 600; font-size: 1.05rem; }

/* Side quest ideas page */
.eyebrow { margin: 0 0 4px; font-size: 1.35rem; color: var(--muted); }
.lede-small { font-size: 1.15rem; }
.flavor { display: inline-block; font-family: "Gochi Hand", cursive; font-weight: 400; color: var(--navy); padding: 0 12px; margin-right: 6px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.page section { scroll-margin-top: 16px; }
.quests { padding-left: 1.6em; margin: 12px 0 0; }
.quests li { margin-bottom: 12px; padding-left: 4px; }
.quests li::marker { font-weight: 900; color: var(--muted); }
.quests strong { display: block; font-size: 1.08rem; }
.quest-meta { display: inline-block; font-size: 0.85rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
