/* /ai-trends-2026: candy sticker book. Light only. */
:root {
  --paper: #fff6e9;
  --ink: #2b1d3a;
  --soft: #5b4a6b;
  --pink: #ff5fa2;
  --pink-l: #ffd6e8;
  --blue: #3ab8ff;
  --blue-l: #d4efff;
  --lemon: #ffd23f;
  --lemon-l: #fff1b8;
  --mint: #3ddc97;
  --mint-l: #d1f7e5;
  --grape: #8b5cf6;
  --grape-l: #e6dcff;
  --orange: #ff8a3d;
  --orange-l: #ffe1cc;
  --round: "Fredoka", "Arial Rounded MT Bold", ui-rounded, "Trebuchet MS", sans-serif;
  --body: "Nunito", ui-rounded, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 5px 5px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(43, 29, 58, .09) 1.5px, transparent 0);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: #c2186b; text-underline-offset: 3px; }
a:hover { color: var(--grape); }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; }

nav.site {
  max-width: 1100px; margin: 0 auto; padding: 18px 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
nav.site .brand { font-family: var(--round); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
nav.site .brand::first-letter { color: var(--pink); }
.pill-link {
  font-family: var(--round); font-weight: 600; text-decoration: none; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 16px; box-shadow: 3px 3px 0 var(--ink);
}

/* Header */
.top { position: relative; overflow: hidden; padding: 28px 20px 40px; }
.top-inner {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center;
}
.kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; font-weight: 800; color: var(--soft); }
.kicker span {
  font-family: var(--round); background: var(--lemon); border: 3px solid var(--ink); border-radius: 999px;
  padding: 2px 14px; color: var(--ink); transform: rotate(-3deg); display: inline-block;
}
h1 {
  font-family: var(--round); font-weight: 700; font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.02; margin: 0 0 18px; letter-spacing: -.5px;
}
h1 .w { display: inline-block; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
h1 .w1 { color: var(--pink); }
h1 .w2 { color: var(--blue); }
h1 .w3 { color: var(--lemon); }
h1 .w4 { color: var(--mint); }
h1 .w5 { color: var(--orange); }
h1 .w6 { color: var(--grape); }
.lede { font-size: 1.25rem; max-width: 34rem; margin: 0 0 22px; color: var(--soft); font-weight: 700; }

.buddy { margin: 0; position: relative; justify-self: center; max-width: 280px; width: 100%; }
.buddy img { display: block; width: 100%; filter: drop-shadow(6px 8px 0 rgba(43, 29, 58, .18)); }
.bubble {
  position: relative; margin: 0 0 14px; background: #fff; border: 3px solid var(--ink); border-radius: 22px;
  padding: 12px 16px; font-family: var(--round); font-weight: 600; font-size: 1.05rem; line-height: 1.3; box-shadow: var(--shadow);
}
.bubble::after {
  content: ""; position: absolute; left: 46%; bottom: -16px; width: 22px; height: 22px; background: #fff;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg);
}

.floaties { position: absolute; inset: 0; pointer-events: none; }
.fl { position: absolute; width: 46px; height: 46px; stroke: var(--ink); stroke-width: 3; }
.fl-1 { left: 4%; top: 12%; fill: var(--lemon); }
.fl-2 { left: 46%; top: 6%; fill: var(--pink); width: 26px; height: 26px; }
.fl-3 { right: 6%; top: 10%; fill: var(--blue); width: 36px; height: 36px; }
.fl-4 { left: 38%; bottom: 8%; fill: var(--mint); }
.fl-5 { right: 30%; bottom: 14%; fill: var(--grape); width: 30px; height: 30px; }
.fl-6 { left: 10%; bottom: 10%; fill: var(--orange); width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--round); font-weight: 700; font-size: 1.15rem; text-decoration: none;
  color: var(--ink); background: var(--pink); border: 3px solid var(--ink); border-radius: 999px;
  padding: 10px 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: #fff; }

/* Sections */
main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.block { padding: 36px 0; }
h2 {
  font-family: var(--round); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.1;
  margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.tag {
  font-size: .95rem; padding: 3px 12px; border: 3px solid var(--ink); border-radius: 999px; transform: rotate(-4deg);
  display: inline-block; box-shadow: 3px 3px 0 var(--ink);
}
.tag-pink { background: var(--pink-l); }
.tag-blue { background: var(--blue-l); }
.tag-grape { background: var(--grape-l); }
.tag-mint { background: var(--mint-l); }
.tag-lemon { background: var(--lemon-l); }
.intro { margin: -8px 0 20px; color: var(--soft); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 26px; }

.sticker {
  background: #fff; border: 3px solid var(--ink); border-radius: 26px; padding: 22px 22px 20px;
  box-shadow: var(--shadow); transform: rotate(var(--tilt, -1deg)); transition: transform .25s ease;
}
.sticker:nth-child(even) { --tilt: 1.2deg; }
.sticker:nth-child(3n) { --tilt: -.6deg; }
.sticker:hover { animation: wobble .6s ease; }
.sticker h3 { font-family: var(--round); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 6px 0 8px; }
.sticker p { margin: 0 0 8px; }
.c-blue { background: var(--blue-l); }
.c-pink { background: var(--pink-l); }
.c-lemon { background: var(--lemon-l); }
.c-mint { background: var(--mint-l); }
.c-grape { background: var(--grape-l); }
.c-orange { background: var(--orange-l); }

.big { font-family: var(--round); font-weight: 700; font-size: clamp(2.3rem, 6vw, 3.1rem); line-height: 1; margin: 0 0 6px !important; }
.big .unit { font-size: .5em; color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }
.twist { background: #fff; border: 2px dashed var(--ink); border-radius: 16px; padding: 10px 14px; }
.rocket { font-size: 2.4rem; margin: 0 !important; line-height: 1; display: inline-block; }

/* Banner */
.banner {
  background: var(--lemon); border: 3px solid var(--ink); border-radius: 30px; padding: 26px 26px 22px;
  box-shadow: 8px 8px 0 var(--ink); text-align: center;
}
.banner p { margin: 0 auto 12px; max-width: 40rem; font-weight: 700; }
.banner-kicker { font-family: var(--round); text-transform: uppercase; letter-spacing: 1.5px; color: var(--soft); }
.banner-big { font-family: var(--round); font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1.05; }
.wiggle { display: inline-block; color: var(--pink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.icons { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.icons li {
  font-family: var(--round); font-weight: 600; background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 16px 6px 10px; box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; gap: 8px;
}
.ico { font-size: 1.5rem; display: inline-block; }

/* Flop */
.flop {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--grape-l); border: 3px solid var(--ink); border-radius: 30px; padding: 26px; box-shadow: 8px 8px 0 var(--ink);
}
.grave { position: relative; height: 230px; display: flex; align-items: flex-end; justify-content: center; }
.stone {
  width: 150px; height: 170px; background: #cfc7da; border: 3px solid var(--ink); border-radius: 75px 75px 10px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--round); transform: rotate(-3deg);
}
.stone b { font-size: 2rem; }
.stone small { font-weight: 600; font-size: .95rem; }
.ghost { position: absolute; top: 0; right: 4px; width: 64px; }
.ghost svg { width: 100%; fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ghost svg circle, .ghost svg ellipse { fill: var(--ink); stroke: none; }
.flop-text h3 { font-family: var(--round); font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
.flop-text p { margin: 0 0 10px; }
.lesson { font-family: var(--round); font-weight: 600; font-size: 1.25rem; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px; display: inline-block; }

/* Effects */
.fx-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fx {
  margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 18px 12px 12px;
  box-shadow: var(--shadow); text-align: center;
}
.fx figcaption { font-family: var(--round); font-weight: 700; font-size: 1.3rem; margin-top: 10px; }
.fx-pic { position: relative; display: block; width: 96px; height: 96px; margin: 0 auto; transform-origin: 50% 100%; }
.fx-pic i {
  position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 22px;
  background:
    radial-gradient(circle at 34% 40%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 40%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(ellipse 18px 10px at 50% 66%, var(--ink) 0 60%, transparent 62%),
    var(--blue);
}
.fx-melt i { background-color: var(--lemon); }
.fx-inflate i { background-color: var(--pink); }
.fx-cake i { background: repeating-linear-gradient(180deg, #fff3d6 0 14px, var(--pink) 14px 22px, #8a4b2a 22px 32px); }
.fx-cake::before, .fx-cake::after {
  content: ""; position: absolute; top: -10px; width: 12px; height: 16px; border: 3px solid var(--ink);
  border-radius: 6px 6px 3px 3px; background: var(--lemon); z-index: 1;
}
.fx-cake::before { left: 30%; }
.fx-cake::after { right: 30%; }

/* Quiz */
.quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.qcard {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: grid;
  background: #fff; border: 3px solid var(--ink); border-radius: 24px; padding: 20px; box-shadow: var(--shadow);
  min-height: 170px; position: relative; perspective: 900px;
}
.q-front { font-family: var(--round); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.q-back { display: block; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--ink); }
.q-back b { font-family: var(--round); font-size: 1.4rem; display: block; }
.q-true b { color: #0e8a57; }
.q-false b { color: #c2186b; }
/* With the script, each card hides its answer until tapped. */
.js-quiz .qcard { grid-template-areas: "face"; align-items: center; transition: transform .45s ease, background-color .45s ease; }
.js-quiz .q-front, .js-quiz .q-back { grid-area: face; transition: opacity .2s ease; }
.js-quiz .q-back { margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; }
.js-quiz .q-front::after {
  content: "Tap to flip"; display: block; margin-top: 12px; font-family: var(--body); font-size: .9rem; font-weight: 800; color: var(--soft);
}
.js-quiz .qcard[aria-pressed="true"] { transform: rotateY(180deg); background: var(--mint-l); }
.js-quiz .qcard[aria-pressed="true"] .q-front { opacity: 0; visibility: hidden; }
.js-quiz .qcard[aria-pressed="true"] .q-back { opacity: 1; visibility: visible; transform: rotateY(180deg); }
.js-quiz .qcard[aria-pressed="true"]:has(.q-false) { background: var(--pink-l); }

/* Try Wurt */
.try {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--mint-l); border: 3px solid var(--ink); border-radius: 30px; padding: 26px 30px; box-shadow: 8px 8px 0 var(--ink);
}
.try-buddy { width: 100%; max-width: 200px; justify-self: center; }
.try-text h2 { margin-bottom: 12px; }
.try-text p { margin: 0 0 12px; font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px !important; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.qa { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.qa h3 { font-family: var(--round); font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.qa p { margin: 0; }

/* Sources */
.sources h2 { font-size: 1.5rem; }
.sources p, .sources li { font-size: .95rem; color: var(--soft); }
.sources ul { padding-left: 1.2rem; margin: 0; }
.sources li { margin-bottom: 6px; }

.site-foot { max-width: 1100px; margin: 20px auto 0; padding: 26px 20px 40px; border-top: 3px dashed rgba(43, 29, 58, .25); text-align: center; color: var(--soft); font-weight: 700; }
.site-foot p { margin: 0 0 6px; }

/* Motion (all of it is off for reduced motion, below) */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(20deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-14px) rotate(-6deg); } 60% { transform: translateY(-14px) rotate(6deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(var(--tilt, -1deg)); } 25% { transform: rotate(-3deg) scale(1.02); } 50% { transform: rotate(3deg) scale(1.02); } 75% { transform: rotate(-1.5deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes ghost { 0%, 100% { transform: translate(0, 0); opacity: .95; } 50% { transform: translate(-10px, -12px); opacity: .7; } }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(1.35, .55); } 60% { transform: scale(.9, 1.1); } }
@keyframes melt { 0%, 15% { transform: scale(1, 1); border-radius: 22px; } 60%, 75% { transform: scale(1.3, .45); border-radius: 50% 50% 18px 18px / 70% 70% 18px 18px; } 100% { transform: scale(1, 1); border-radius: 22px; } }
@keyframes inflate { 0%, 100% { transform: scale(1); border-radius: 22px; } 50% { transform: scale(1.22); border-radius: 50%; } }
@keyframes cake { 0%, 30%, 100% { clip-path: inset(0 0 0 0); } 55%, 80% { clip-path: polygon(0 0, 46% 0, 46% 100%, 0 100%, 0 0, 54% 0, 100% 0, 100% 100%, 54% 100%, 54% 0); } }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(26px) scale(.92) rotate(var(--tilt, 0deg)); } 70% { opacity: 1; transform: translateY(-4px) scale(1.02) rotate(var(--tilt, 0deg)); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, 0deg)); } }

.buddy img { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.try-buddy { animation: bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.fl { animation: floaty 6s ease-in-out infinite; }
.fl-2 { animation-duration: 4.5s; animation-delay: -1s; }
.fl-3 { animation-duration: 7s; animation-delay: -2s; }
.fl-4 { animation-duration: 5.5s; animation-delay: -3s; }
.fl-5 { animation-duration: 6.5s; animation-delay: -.5s; }
.fl-6 { animation-duration: 4s; animation-delay: -2.5s; }
.rocket, .ico { animation: hop 2.4s ease-in-out infinite; }
.icons li:nth-child(2) .ico { animation-delay: .3s; }
.icons li:nth-child(3) .ico { animation-delay: .6s; }
.icons li:nth-child(4) .ico { animation-delay: .9s; }
.wiggle { animation: wiggle 1.4s ease-in-out infinite; }
.ghost { animation: ghost 3.4s ease-in-out infinite; }
.fx-squish { animation: squish 1.8s ease-in-out infinite; }
.fx-melt i { animation: melt 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.fx-inflate { animation: inflate 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.fx-cake i { animation: cake 3s ease-in-out infinite; }
/* Cards pop in as they scroll into view, only when the page script runs. */
.js-pop .pop { opacity: 0; }
.js-pop .pop.in { animation: pop-in .6s cubic-bezier(.2, .9, .3, 1.3) both; }

@media (max-width: 760px) {
  .top-inner { grid-template-columns: minmax(0, 1fr); }
  .buddy { max-width: 210px; }
  .fl-2 { left: auto; right: 22%; top: 3%; }
  .flop, .try { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .grave { height: 200px; }
  .try-buddy { max-width: 150px; }
  .btns { justify-content: center; }
  .fx-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticker, .sticker:nth-child(even), .sticker:nth-child(3n) { --tilt: 0deg; }
}

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

@media print {
  body { background: #fff; }
  .floaties, nav.site, .btn, .skip { display: none; }
  .js-pop .pop { opacity: 1; }
  .sticker, .banner, .flop, .try, .qa, .fx, .qcard { box-shadow: none; transform: none; }
}
