/* Tabi's Creative Designs: charcoal, true peach, hot pink and a little glitter. */
:root {
  --bg: #1c1b20;          /* soft charcoal (matches the logo image background) */
  --bg-alt: #232128;
  --card: #26242b;
  --line: #36323c;
  --text: #f3eee9;        /* warm off-white */
  --muted: #b9b0aa;
  --peach: #ffa07a;       /* main accent: true peach, not cream */
  --peach-soft: #ffbe9f;
  --pink: #e0479e;        /* used sparingly: main buttons */
  --pink-hover: #c93a8b;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--peach); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(28, 27, 32, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; border-radius: 6px; }
.nav { display: flex; gap: 1.2rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--peach); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); max-width: 1100px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); }
.section-head .eyebrow { color: var(--peach); }
.section-alt .section-head { padding-inline: max(0px, env(safe-area-inset-left, 0px)); }
.tagline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-style: italic; color: var(--peach-soft) !important; margin-top: 1.5rem; }
@media (max-width: 760px) { .nav { gap: .9rem; font-size: .95rem; } }
.eyebrow {
  color: var(--peach); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; margin-bottom: .6rem;
}
.center { text-align: center; }
.note { text-align: center; color: var(--muted); margin-top: 2.5rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}
.hero-logo { max-width: 400px; width: 100%; justify-self: center; }
.hero-text p { color: var(--muted); font-size: 1.1rem; }
.hero-text strong { color: var(--peach-soft); font-weight: 700; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-hover); }
.btn-quiet { border: 1.5px solid var(--peach); color: var(--peach); }
.btn-quiet:hover { background: var(--peach); color: var(--bg); }
.link { color: var(--peach); text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }

/* Book cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 2rem; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.formats { color: var(--muted); font-size: .95rem; }
.tag { font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: var(--peach); margin-bottom: .4rem; }
.tag-ready { color: var(--peach-soft); }

/* Coloring feature */
.feature {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center; max-width: 1000px; margin: 0 auto;
}
.feature img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature-text p { color: var(--muted); }

/* Signup */
.signup { text-align: center; max-width: 640px; }
.signup p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 2rem 1rem 2.5rem; color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: .3rem 0; }

/* Phones */
@media (max-width: 760px) {
  .hero, .feature { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { max-width: 260px; }
  .buttons { justify-content: center; }
  .brand span { display: none; }
}

/* Pages and menu */
.site-header { position: sticky; }
.nav a[aria-current="page"] { color: var(--peach); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--peach); }
.feature-mox img { max-width: 380px; width: 100%; justify-self: center; border: 0; }
.menu-btn {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 1.3rem; line-height: 1; padding: .4rem .65rem; cursor: pointer;
}
.menu-btn:hover { border-color: var(--peach); color: var(--peach); }

/* Social links */
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; padding: 0; margin: 0 0 1rem; }
.socials a { color: var(--peach); text-decoration: none; font-weight: 700; }
.socials a:hover { text-decoration: underline; }
.social-buttons { justify-content: center; }

@media (max-width: 760px) {
  .brand span { display: inline; font-size: .95rem; }
  .js .menu-btn { display: block; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: .9rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
  .nav { flex-wrap: wrap; }
}

/* ============ Glitter ============ */
:root {
  --purple: #a64ad8;
  /* tiny sparkles in white, pink and gold, tiled at odd sizes so they don't line up */
  --glitter:
    radial-gradient(circle, rgba(255,255,255,.95) 0 .8px, transparent 1.4px) 0 0 / 11px 13px,
    radial-gradient(circle, rgba(255,214,240,.9) 0 .9px, transparent 1.5px) 4px 6px / 17px 15px,
    radial-gradient(circle, rgba(255,231,163,.9) 0 .8px, transparent 1.4px) 9px 2px / 23px 19px,
    radial-gradient(circle, rgba(255,255,255,.8) 0 1.3px, transparent 2px) 2px 11px / 37px 31px;
  --glitter-gradient: linear-gradient(135deg, var(--pink), var(--purple) 35%, var(--peach) 65%, var(--pink));
}

/* Glitter buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary {
  background: var(--glitter), linear-gradient(120deg, var(--pink), var(--purple) 50%, var(--pink)) 0 0 / 200% 100%;
  box-shadow: 0 0 14px rgba(224, 71, 158, .45);
  animation: twinkle 6s linear infinite;
}
.btn-primary:hover {
  background: var(--glitter), linear-gradient(120deg, var(--pink-hover), var(--purple) 50%, var(--pink-hover)) 0 0 / 200% 100%;
  box-shadow: 0 0 22px rgba(224, 71, 158, .7);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  animation: shine 4s ease-in-out infinite;
}
.btn-primary { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.btn-quiet {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  animation: twinkle 8s linear infinite;
}
.section-alt .btn-quiet { background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box, var(--glitter), var(--glitter-gradient) border-box; }
.btn-quiet:hover {
  background: var(--glitter), var(--glitter-gradient);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Glitter frames on covers, cards and Mox */
.card {
  border: 3px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: 0 0 18px rgba(224, 71, 158, .25);
  animation: twinkle 10s linear infinite;
}
.feature img {
  padding: 6px; border: 0;
  background: var(--glitter), var(--glitter-gradient);
  box-shadow: 0 0 22px rgba(224, 71, 158, .35);
  animation: twinkle 10s linear infinite;
}
.feature-mox img { border-radius: var(--radius); }

/* Sparkly headline and divider */
.hero h1, .page-title {
  background: linear-gradient(120deg, var(--peach), #ff7fbf 50%, var(--peach)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: twinkle 8s linear infinite;
}
.section-head h2::after, .signup h2::after {
  content: "\2726  \2727  \2726"; display: block; margin-top: .35rem;
  font-size: .9rem; letter-spacing: .3em; color: var(--pink);
  text-shadow: 0 0 8px rgba(224, 71, 158, .8);
}

@keyframes twinkle { to { background-position: 11px 13px, 21px 21px, 32px 21px, 39px 42px, 100% 0; } }
@keyframes shine { 0%, 60% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-quiet, .card, .feature img, .hero h1, .page-title { animation: none; }
  .btn-primary::after { animation: none; display: none; }
}

/* Hot pink text accents (Nov 30, 2026): headings and highlights pink, peach for small touches */
:root { --hot: #ff5cb0; }
h2, .eyebrow, .section-head .eyebrow, .tag, .link, .socials a,
.nav a:hover, .nav a[aria-current="page"], .menu-btn:hover { color: var(--hot); }
.tag-ready, .hero-text strong { color: var(--peach); }
.hero h1, .page-title {
  background-image: linear-gradient(120deg, var(--hot), var(--peach) 50%, var(--hot));
}
.section-head h2::after, .signup h2::after { color: var(--peach); text-shadow: 0 0 8px rgba(255, 160, 122, .8); }

/* Champagne gold instead of purple + glitter menu bar (Nov 30, 2026) */
:root {
  --purple: #e3c07f;                /* champagne gold (name kept so older rules pick it up) */
  --champagne: #e3c07f;
  --champagne-light: #f6e3b4;
  --glitter-gradient: linear-gradient(135deg, var(--pink), var(--champagne) 35%, var(--peach) 65%, var(--pink));
}
.btn-primary {
  background: var(--glitter), linear-gradient(120deg, var(--pink), #e98fa0 35%, var(--champagne) 50%, #e98fa0 65%, var(--pink)) 0 0 / 200% 100%;
}
.btn-primary:hover {
  background: var(--glitter), linear-gradient(120deg, var(--pink-hover), #e07f93 35%, #d6b06c 50%, #e07f93 65%, var(--pink-hover)) 0 0 / 200% 100%;
}
.btn-primary { text-shadow: 0 1px 3px rgba(0,0,0,.55); }

.site-header {
  background: var(--glitter), linear-gradient(90deg, rgba(40,30,38,.95), rgba(28,27,32,.95) 50%, rgba(44,36,30,.95));
  animation: twinkle 12s linear infinite;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: var(--glitter), linear-gradient(90deg, var(--pink), var(--champagne) 50%, var(--pink));
  box-shadow: 0 0 10px rgba(227, 192, 127, .55);
  animation: twinkle 6s linear infinite;
}
.site-header { border-bottom-color: transparent; }
.brand span { color: var(--champagne-light); text-shadow: 0 0 8px rgba(227, 192, 127, .45); }
.nav a { color: var(--champagne-light); }
.menu-btn { border-color: var(--champagne); color: var(--champagne-light); }
@media (max-width: 760px) {
  .js .nav { background: var(--glitter), rgba(28,27,32,.98); }
  .js .nav a { border-top-color: rgba(227, 192, 127, .25); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::after { animation: none; }
}

/* Real glitter texture (Nov 30, 2026): replaces the dot pattern. Flakes stay put;
   star glints fade in and out on top so it twinkles instead of sliding. */
:root {
  --glitter: url("images/glitter.png") 0 0 / 180px 180px;
}
.btn-primary, .btn-quiet, .card, .feature img, .site-header, .site-header::after { animation: none; }
@media (max-width: 760px) { .js .nav { animation: none; } }

.btn::before, .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/glints-a.png") 0 0 / 180px 180px;
  animation: glint 2.6s ease-in-out infinite;
}
.site-header { isolation: isolate; }
.site-header::before {
  background: url("images/glints-a.png") 0 0 / 180px 180px, url("images/glints-b.png") 90px 40px / 180px 180px;
  animation-duration: 3.4s;
}
.btn-quiet::before { opacity: .7; animation-delay: -1.3s; }
.buttons .btn:nth-child(2)::before { animation-delay: -.9s; }

@keyframes glint {
  0%, 100% { opacity: .15; }
  20% { opacity: 1; }
  35% { opacity: .35; }
  60% { opacity: .85; }
  80% { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before, .site-header::before { animation: none; opacity: .6; }
}

/* Menu links as glitter-outlined bubbles with a solid charcoal fill (Nov 30, 2026) */
.nav { gap: .6rem; align-items: center; }
.nav a {
  padding: .35rem .95rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; color: var(--text);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: color .2s, box-shadow .2s;
}
.nav a:hover { color: var(--hot); box-shadow: 0 0 12px rgba(255, 92, 176, .55); }
.nav a[aria-current="page"] {
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55);
  background: var(--glitter), linear-gradient(120deg, var(--pink), #e98fa0 50%, var(--champagne));
}
@media (max-width: 760px) {
  .js .nav { padding: .8rem clamp(1rem, 4vw, 2.5rem) 1rem; gap: .6rem; align-items: stretch; }
  .js .nav a { border-top: 2px solid transparent; padding: .7rem 1.1rem; text-align: center; }
}
@media (min-width: 761px) and (max-width: 900px) { .nav a { padding: .3rem .7rem; font-size: .88rem; } }

/* Selected / pressed states: plain hot pink + glitter, no peachy pink (Nov 30, 2026) */
.nav a[aria-current="page"],
.btn-quiet:hover, .section-alt .btn-quiet:hover {
  background: var(--glitter), var(--pink);
  color: #fff;
}

/* Main buttons: plain hot pink + glitter to match selected states (Nov 30, 2026) */
.btn-primary { background: var(--glitter), var(--pink); }
.btn-primary:hover { background: var(--glitter), var(--pink-hover); }

/* Logo images get the same thin glitter outline as unselected buttons (Nov 30, 2026) */
.hero-logo, .feature-mox img {
  padding: 0; border: 3px solid transparent; border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* Brand (logo + name) in the same glitter-outlined bubble as the menu links (Nov 30, 2026) */
.brand {
  padding: .25rem 1rem .25rem .3rem; border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.brand img { width: 30px; height: 30px; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.brand span { color: var(--text); text-shadow: none; }
.brand:hover span { color: var(--hot); }
@media (max-width: 760px) { .brand { padding-right: .8rem; } .brand span { font-size: .9rem; } }

/* Menu and brand bubbles sparkle like the main buttons: twinkling glints + shine sweep (Nov 30, 2026) */
.nav a, .brand { position: relative; overflow: hidden; isolation: isolate; }
.nav a::before, .brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/glints-a.png") 0 0 / 180px 180px;
  animation: glint 2.6s ease-in-out infinite;
}
.nav a::after, .brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  animation: shine 4s ease-in-out infinite;
}
.nav a:nth-child(2)::before, .nav a:nth-child(2)::after { animation-delay: -.6s; }
.nav a:nth-child(3)::before, .nav a:nth-child(3)::after { animation-delay: -1.3s; }
.nav a:nth-child(4)::before, .nav a:nth-child(4)::after { animation-delay: -2s; }
.nav a:nth-child(5)::before, .nav a:nth-child(5)::after { animation-delay: -2.7s; }
.brand::before, .brand::after { animation-delay: -3.2s; }
@media (prefers-reduced-motion: reduce) {
  .nav a::before, .brand::before { animation: none; opacity: .6; }
  .nav a::after, .brand::after { animation: none; display: none; }
}

/* Busier, random sparkles in menu + brand bubbles (selected one included) (Nov 30, 2026).
   Layer A twinkles in place; layer B hops to new spots so sparkles pop up randomly. */
.nav a::before, .brand::before {
  background: url("images/bubble-sparkle-a.png") 0 0 / 70px 70px,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px;
  animation: glint 2.6s ease-in-out infinite, sparkle-hop 2.1s steps(1) infinite;
}
.nav a[aria-current="page"]::before { opacity: 1; }
@keyframes sparkle-hop {
  0%   { background-position: 0 0, 35px 20px; }
  25%  { background-position: 0 0, 12px 47px; }
  50%  { background-position: 0 0, 51px 8px; }
  75%  { background-position: 0 0, 23px 61px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a::before, .brand::before { animation: none; opacity: .7; }
}

/* Main buttons get the same busy, random bubble sparkles; menu text peach, white when selected (Nov 30, 2026) */
.btn-primary::before {
  background: url("images/bubble-sparkle-a.png") 0 0 / 70px 70px,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px;
  animation: glint 2.6s ease-in-out infinite, sparkle-hop 2.1s steps(1) infinite;
}
.buttons .btn-primary:nth-child(2)::before { animation-delay: -1.1s, -.7s; }
.nav a, .brand span { color: var(--peach); }
.nav a[aria-current="page"] { color: #fff; }
.nav a:hover:not([aria-current="page"]), .brand:hover span { color: var(--hot); }
@media (prefers-reduced-motion: reduce) { .btn-primary::before { animation: none; opacity: .7; } }

/* Outlined buttons (e.g. "Coloring books") sparkle like the menu bubbles, with the same shine (Nov 30, 2026) */
.btn-quiet::before {
  opacity: 1;
  background: url("images/bubble-sparkle-a.png") 0 0 / 70px 70px,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px;
  animation: glint 2.6s ease-in-out infinite, sparkle-hop 2.1s steps(1) infinite;
  animation-delay: -1.3s, -.4s;
}
.btn-quiet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  animation: shine 4s ease-in-out infinite; animation-delay: -2s;
}
.social-buttons .btn-quiet:nth-child(2n)::before { animation-delay: -.5s, -1.2s; }
.social-buttons .btn-quiet:nth-child(3n)::before { animation-delay: -2.1s, -.9s; }
@media (prefers-reduced-motion: reduce) {
  .btn-quiet::before { animation: none; opacity: .7; }
  .btn-quiet::after { animation: none; display: none; }
}

/* Phone menu (☰) button: charcoal bubble, glitter outline, peach lines, sparkles (Nov 30, 2026) */
.menu-btn {
  position: relative; overflow: hidden; isolation: isolate;
  border: 2px solid transparent; border-radius: 12px; color: var(--peach);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  font-size: 1.4rem; padding: .35rem .7rem;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--hot); border-color: transparent; }
.menu-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/bubble-sparkle-a.png") 0 0 / 70px 70px,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px;
  animation: glint 2.6s ease-in-out infinite, sparkle-hop 2.1s steps(1) infinite;
  animation-delay: -1.7s, -1s;
}
@media (prefers-reduced-motion: reduce) { .menu-btn::before { animation: none; opacity: .7; } }

/* Email list placeholder button: sparkly like the main buttons, not clickable until the list opens */
.signup .buttons { justify-content: center; }
.btn-soon { cursor: default; }

/* Email list block placed under the page title on Books and Coloring Books */
.signup-inline { margin: 0 auto 3.5rem; padding: 0 0 2.5rem; border-bottom: 1px solid var(--line); }

/* Every frame sparkles (Nov 30, 2026): random sparkles hop around the glitter frames of
   covers, book cards, the Home logo and Mox. Images can't hold overlays, so the sparkle
   layers live in each frame's own background and hop by position. */
.feature img {
  background: url("images/bubble-sparkle-a.png") 0 0 / 70px 70px,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px,
              var(--glitter), var(--glitter-gradient);
  animation: frame-hop4 2.1s steps(1) infinite;
}
.card {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              url("images/bubble-sparkle-a.png") 0 0 / 70px 70px border-box,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px border-box,
              var(--glitter), var(--glitter-gradient) border-box;
  animation: frame-hop5 2.1s steps(1) infinite;
}
.hero-logo, .feature-mox img {
  padding: 0; border-width: 4px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              url("images/bubble-sparkle-a.png") 0 0 / 70px 70px border-box,
              url("images/bubble-sparkle-b.png") 35px 20px / 70px 70px border-box,
              var(--glitter), var(--glitter-gradient) border-box;
  animation: frame-hop5 2.1s steps(1) infinite;
}
.feature-mox img, .home-feature img { animation-delay: -1s; }
@keyframes frame-hop4 {
  0%   { background-position: 0 0, 35px 20px, 0 0, 0 0; }
  25%  { background-position: 18px 9px, 12px 47px, 0 0, 0 0; }
  50%  { background-position: 41px 33px, 51px 8px, 0 0, 0 0; }
  75%  { background-position: 7px 52px, 23px 61px, 0 0, 0 0; }
}
@keyframes frame-hop5 {
  0%   { background-position: 0 0, 0 0, 35px 20px, 0 0, 0 0; }
  25%  { background-position: 0 0, 18px 9px, 12px 47px, 0 0, 0 0; }
  50%  { background-position: 0 0, 41px 33px, 51px 8px, 0 0, 0 0; }
  75%  { background-position: 0 0, 7px 52px, 23px 61px, 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .feature img, .card, .hero-logo, .feature-mox img { animation: none; }
}

/* Email list button: black with glitter instead of pink (Nov 30, 2026) */
.btn-primary.btn-soon, .btn-primary.btn-soon:hover {
  border: 2px solid transparent;
  background: var(--glitter) padding-box, linear-gradient(#0b0a0d, #0b0a0d) padding-box,
              var(--glitter), var(--glitter-gradient) border-box;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, .6), 0 0 10px rgba(227, 192, 127, .25);
}

/* Email list button toned down to match the other dark buttons: solid black inside,
   glitter outline, same sparkles + shine, peach text (Nov 30, 2026) */
.btn-primary.btn-soon, .btn-primary.btn-soon:hover {
  background: linear-gradient(#0b0a0d, #0b0a0d) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  color: var(--peach); text-shadow: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Twinkling stars on the logo's gems: top-left cluster and bottom-right cluster only (the blue spot on Mox's cheek is paint, not a gem) (Nov 30, 2026).
   Star positions are percentages of logo.jpg, so they stay on the gems at any size. */
.logo-sparkle { position: relative; display: block; justify-self: center; width: 100%; max-width: 400px; line-height: 0; }
.feature-mox .logo-sparkle { max-width: 380px; }
.logo-sparkle img { max-width: 100%; width: 100%; }
.logo-sparkle i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  transform: translate(-50%, -50%) scale(0); pointer-events: none;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgba(255, 214, 236, .9));
  animation: gem-twinkle var(--t) ease-in-out var(--d) infinite;
}
.logo-sparkle i::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@keyframes gem-twinkle {
  0%, 55%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1) rotate(25deg); opacity: 1; }
  85% { transform: translate(-50%, -50%) scale(.35) rotate(45deg); opacity: .6; }
}
@media (prefers-reduced-motion: reduce) { .logo-sparkle i { animation: none; } }
@media (max-width: 760px) { .hero .logo-sparkle { max-width: 260px; } }

/* Bigger top bar on phones (Nov 30, 2026): Dawn found it hard to read; the ☰ lines looked tiny */
@media (max-width: 760px) {
  .site-header { padding-top: .85rem; padding-bottom: .85rem; }
  .brand { padding: .35rem 1rem .35rem .35rem; gap: .65rem; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1.05rem; }
  .menu-btn { font-size: 2rem; padding: .3rem .8rem .4rem; border-radius: 14px; }
  .js .nav a { font-size: 1.1rem; padding: .85rem 1.1rem; }
  /* dropdown backdrop: plain charcoal, no glitter (the bubbles keep theirs) */
  .js .nav { background: #1c1b20; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
}

/* Book descriptions from Amazon (Nov 30, 2026): Dawn asked for them so people
   don't have to click to Amazon to learn what a book is about */
.feature-book { align-items: start; }
.blurb p { color: var(--text); opacity: .9; line-height: 1.65; margin: 0 0 .85rem; }
.blurb .blurb-hook { color: var(--hot); font-weight: 700; font-style: italic; opacity: 1; }
@media (max-width: 760px) {
  .blurb { text-align: left; }
  .blurb .blurb-hook { text-align: center; }
  .feature-book img { max-width: 320px; margin: 0 auto; }
}
.book-gap { height: clamp(2.5rem, 6vw, 4rem); }
.preorder-note { color: var(--peach); font-weight: 700; }

/* Contact email (Dec 1, 2026) */
.footer-email { margin-bottom: .4rem; }
.btn[href^="mailto:"] { max-width: 100%; overflow-wrap: anywhere; text-transform: none; }

/* Real email list signup (MailerLite, Dec 1, 2026): dark charcoal email box with a glitter
   outline like the menu bubbles, and the black glitter-outline button. Nothing white. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 560px; margin: 1.2rem auto 0; }
.signup-input {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1rem;
  color: var(--text); padding: .8rem 1.2rem; border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(#141317, #141317) padding-box, var(--glitter), var(--glitter-gradient) border-box;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
  color-scheme: dark;
}
.signup-input::placeholder { color: var(--muted); opacity: 1; }
.signup-input:focus { outline: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(255, 92, 176, .45); }
.signup-input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px #141317 inset; caret-color: var(--text); }
.btn-join { cursor: pointer; font: inherit; font-weight: 700; }
.btn-join:disabled { cursor: wait; opacity: .8; }
.signup-msg { flex-basis: 100%; margin: .2rem 0 0; min-height: 1.4em; color: var(--peach); font-weight: 700; }
.signup-msg:empty { display: none; }
.signup-form.done .signup-input, .signup-form.done .btn-join { display: none; }
@media (max-width: 760px) { .signup-form .btn-join { flex: 1 1 100%; } }
