/* Layout idea: an ice cream truck that melts. Cobalt ink on vanilla and freezer blue,
   creamsicle as the loud part. Sections drip into each other, the type is
   parlor-sign big, and the product is something you pick out of a freezer and eat. */
:root {
  color-scheme: light;
  --ink: #1c2b8f;
  --vanilla: #fff6e3;
  --ice: #d3ecf8;
  --creamsicle: #ff8a3c;
  --wood: #7a4a1e;
  --display: "Titan One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --puffy: "Titan One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --marker: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  --ui: "Bricolage Grotesque", "Trebuchet MS", Verdana, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--vanilla); color: var(--ink); font-family: var(--ui); font-weight: 500; font-size: 1.0625rem; line-height: 1.45; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed currentColor; outline-offset: 4px; border-radius: 8px; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em; text-wrap: balance; }
.marker { font-family: var(--marker); font-size: 1.35rem; line-height: 1.15; }
.caps { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 26px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--ink); color: var(--vanilla); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn::after { content: "→"; font-size: 1.2em; line-height: 0.8; transition: translate 0.2s; }
.btn:hover { background: var(--creamsicle); border-color: var(--creamsicle); }
.btn:hover::after { translate: 6px 0; }
.btn.line { background: none; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--vanilla); border-color: var(--ink); }

.drips { margin: 0 calc(-1 * var(--gutter)); height: 132px; }

/* Header with a truck awning */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--vanilla); border-bottom: 2.5px solid var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px var(--gutter);
}
.top nav { justify-self: start; display: inline-flex; gap: clamp(12px, 2.4vw, 30px); border: 2.5px solid var(--ink); border-radius: 999px; padding: 9px clamp(14px, 2vw, 26px); }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline wavy 2px; text-underline-offset: 5px; }
.logo {
  font-family: var(--puffy); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1; text-decoration: none; white-space: nowrap;
  color: var(--creamsicle); -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill;
  text-shadow: 0.03em 0.03em 0 var(--ink), 0.06em 0.06em 0 var(--ink), 0.09em 0.09em 0 var(--ink);
  rotate: -3deg; transition: rotate 0.2s;
}
.logo:hover { rotate: 3deg; }
.top .btn { justify-self: end; padding: 9px 20px; }

/* Hero */
.hero { background: var(--ice); padding: clamp(36px, 4vw, 60px) var(--gutter) 0; }
.hero h1 { position: relative; font-size: clamp(4.6rem, 21vw, 22rem); text-align: center; padding-bottom: 0.3em; }
.hero h1 .row { display: block; }
.ipop { display: inline-block; height: 1.015em; aspect-ratio: 140 / 232; vertical-align: -0.29em; margin: 0 -0.07em 0 -0.05em; transform-origin: 50% 85%; animation: sway 3.4s ease-in-out infinite alternate; }
.ipop svg { width: 100%; height: 100%; }
.ipop svg.chomp { animation: chomp 0.32s ease-out; }
.hero h1 .row { transition: translate 0.15s linear; }
.hero h1 .row:nth-child(1) { translate: calc(var(--p, 0) * -5vw) 0; }
.hero h1 .row:nth-child(2) { translate: calc(var(--p, 0) * 5vw) 0; }
.ch { display: inline-block; animation: drop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes drop { from { translate: 0 -60%; rotate: -12deg; opacity: 0; } }
@keyframes sway { from { rotate: -5deg; } to { rotate: 7deg; } }
.note {
  position: absolute; left: 0; top: 12%; width: clamp(120px, 14vw, 220px); display: grid; gap: 12px; rotate: -6deg;
  text-transform: none; letter-spacing: 0; text-align: left; font-size: clamp(1.05rem, 1.5vw, 1.5rem);
}
.note svg { justify-self: end; width: 3.2em; height: auto; margin-right: -0.5em; transform: scaleX(-1); }
.note path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero .under { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; max-width: 1180px; margin: 0 auto; }
.hero .under p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 30ch; line-height: 1.3; }
.stickbar {
  position: relative; z-index: 2; margin: clamp(36px, 5vw, 64px) calc(-1 * var(--gutter)) -1px; overflow: hidden; padding: 0.5em 0 0.42em;
  background: var(--ink); color: var(--vanilla);
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em;
}
.stickbar .track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.stickbar:hover .track { animation-play-state: paused; }
.stickbar span { white-space: nowrap; padding-right: 1.1em; }
.stickbar span::after { content: "●"; padding-left: 2.4em; font-size: 0.45em; vertical-align: 0.4em; color: var(--creamsicle); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Pick your pop */
.pick { padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.pick .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; max-width: 1180px; margin: 0 auto; }
.pick h2 { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.pick .head p { max-width: 15em; rotate: -3deg; margin-bottom: 0.6em; }
.freezer { display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1.6vw, 24px); max-width: 900px; margin: clamp(48px, 7vw, 90px) auto 0; padding: 0 5%; }
.freezer button { flex: 0 1 118px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: translate 0.3s cubic-bezier(0.3, 1.7, 0.5, 1), rotate 0.3s; }
.freezer button svg { width: 100%; height: auto; }
.freezer button:hover { translate: 0 -9%; rotate: -4deg; }
.freezer button[aria-pressed="true"] { translate: 0 -26%; rotate: 5deg; }
.tray {
  position: relative; z-index: 2; max-width: 900px; margin: calc(-1 * clamp(18px, 3.6vw, 42px)) auto 0; height: clamp(34px, 5vw, 56px);
  border: 2.5px solid var(--ink); border-radius: 16px; background: var(--ice); display: grid; place-items: center;
}
.detail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1120px; margin: clamp(40px, 6vw, 80px) auto 0; }
.eat { display: grid; justify-items: center; gap: 20px; }
.seal { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; }
.seal .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 50s linear infinite; }
.seal .ring path { fill: var(--tint); transition: fill 0.4s; }
@keyframes spin { to { rotate: 360deg; } }
.bigpop { position: absolute; inset: 7% 0 5%; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; rotate: 8deg; }
.bigpop svg { height: 100%; width: auto; }
.bigpop.chomp { animation: chomp 0.32s ease-out; }
@keyframes chomp { 30% { scale: 0.9; rotate: 2deg; } 60% { scale: 1.05; rotate: 12deg; } }
.panel { border: 2.5px solid var(--ink); border-radius: 34px; padding: clamp(22px, 3.2vw, 44px); display: grid; gap: 18px; }
.panel h3 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.panel .line { font-size: 1.2rem; max-width: 34ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.stats li { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-variant-numeric: tabular-nums; }
.ing { font-size: 0.95rem; }
.jokeslot { display: grid; gap: 10px; }
.joke, .hint { justify-self: start; display: flex; align-items: center; min-height: 58px; padding: 11px 26px 13px; border: 2.5px solid var(--ink); border-radius: 26px; }
.hint { border-style: dashed; }
.joke { background: #f3d39c; box-shadow: 5px 5px 0 var(--ink); rotate: -2deg; animation: plop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes plop { from { scale: 0.6; rotate: -10deg; } }

/* Anatomy */
.deal { background: var(--ink); color: var(--vanilla); padding: 0 var(--gutter) clamp(48px, 7vw, 100px); }
.deal .drips { color: var(--vanilla); }
.deal h2 { font-size: clamp(2.8rem, 8.4vw, 7.4rem); text-align: center; color: var(--creamsicle)}
.anatomy {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "a pop b" "c pop d"; align-items: center;
  gap: clamp(40px, 7vw, 110px) clamp(40px, 8vw, 130px); max-width: 1180px; margin: clamp(48px, 7vw, 96px) auto 0; padding-bottom: clamp(24px, 4vw, 56px);
}
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.leaders path.hot { stroke-dasharray: none; }
.pop-wrap { grid-area: pop; position: relative; width: clamp(170px, 24vw, 310px); }
.pop-wrap .ring { position: absolute; left: -32%; top: 50%; width: 164%; height: auto; translate: 0 -50%; animation: spin 60s linear infinite; }
.pop-wrap .ring path { fill: var(--vanilla); }
.pop-wrap .pop { position: relative; }
.pop-wrap .pop svg { width: 100%; height: auto; }
.num, .dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--vanilla); border: 2.5px solid var(--ink); color: var(--ink); font-family: var(--puffy); font-size: 1rem; line-height: 1; letter-spacing: 0;
  transition: scale 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s;
}
.dot { position: absolute; margin: -17px 0 0 -17px; }
.fact.hot .num, .dot.hot { background: var(--creamsicle); scale: 1.25; }
.fact { display: grid; gap: 8px; max-width: 19em; }
.fact.f1 { grid-area: a; } .fact.f2 { grid-area: b; } .fact.f3 { grid-area: c; } .fact.f4 { grid-area: d; }
.fact.f1, .fact.f3 { text-align: right; justify-self: end; }
.fact strong { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 0.95; }
.fact.f1 strong, .fact.f3 strong { flex-direction: row-reverse; }
.fact .marker { display: block; }

/* Quiz */
.quiz { background: var(--ice); padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.quiz .drips { color: var(--ink); }
.quiz .cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; }
.quiz h2 { font-size: clamp(3rem, 8.5vw, 7.4rem); }
.quiz .intro p { margin-top: 18px; rotate: -3deg; }
.qcard { display: grid; gap: 18px; align-content: center; min-height: 400px; padding: clamp(22px, 3.2vw, 44px); border: 2.5px solid var(--ink); border-radius: 34px; background: var(--vanilla); outline: none; }
.qcard h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.steps { display: flex; gap: 8px; }
.steps i { width: 38px; height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; }
.steps i.done { background: var(--ink); }
.steps i.now { background: var(--creamsicle); }
.answers { display: grid; gap: 10px; }
.answers button { text-align: left; padding: 13px 24px; border: 2.5px solid var(--ink); border-radius: 999px; background: none; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, translate 0.15s; }
.answers button:hover { background: var(--ink); color: var(--vanilla); translate: 6px 0; }
.result { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.result svg { width: 100%; height: auto; rotate: -6deg; animation: plop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.result h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 10px; }
.result .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.textbtn { padding: 6px 4px; border: 0; background: none; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.textbtn:hover { text-decoration-style: wavy; }

/* Find a freezer */
.find { padding: 0 var(--gutter) clamp(56px, 8vw, 110px); }
.find .drips { color: var(--ice); }
.find .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; max-width: 1180px; margin: 0 auto; }
.find h2 { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.zipform { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 0.8em; }
.zipform label { flex-basis: 100%; }
.zipform input { flex: 1 1 8em; min-width: 0; font: inherit; font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: var(--ink); padding: 12px 22px; background: var(--ice); border: 2.5px solid var(--ink); border-radius: 999px; }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips button { padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: none; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.chips button:hover { background: var(--ink); color: var(--vanilla); }
.findmsg { max-width: 1180px; margin: clamp(20px, 3vw, 36px) auto 0; min-height: 1.2em; }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 48px); align-items: start; max-width: 1180px; margin: 16px auto 0; }
.stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stores li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 14px 20px; border: 2.5px solid var(--ink); border-radius: 24px; transition: background 0.2s; }
.stores li.hot { background: var(--ice); }
.stores li.hot .num { background: var(--creamsicle); scale: 1.15; }
.stores strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.stores .mi { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stores .where { grid-column: 2 / -1; font-size: 0.95rem; }
.stores .has { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.85rem; }
.stores .has i { width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; }
.mapbox { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border: 2.5px solid var(--ink); border-radius: 34px; background: var(--ice); }
.mapbox svg { width: 100%; height: 100%; }
.mapbox path { fill: var(--vanilla); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pin { position: absolute; margin: -17px 0 0 -17px; padding: 0; cursor: pointer; }
.pin.far { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 0; opacity: 0.55; }
.pin.hot { background: var(--creamsicle); scale: 1.3; z-index: 2; }
.you { position: absolute; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(28, 43, 143, 0.22); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 18px rgba(28, 43, 143, 0); } }
.mapnote { position: absolute; left: 18px; bottom: 12px; font-size: 0.7rem; }

/* FAQ */
.faq { background: var(--ice); padding: 0 var(--gutter) clamp(40px, 6vw, 80px); }
.faq .drips { color: var(--vanilla); }
.faq .cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); align-items: start; max-width: 1180px; margin: 0 auto; }
.faq h2 { font-size: clamp(3.4rem, 11vw, 10rem); }
.faq .list { display: grid; gap: 14px; }
details { border: 2.5px solid var(--ink); border-radius: 24px; transition: background 0.2s; }
details[open], details:hover { background: var(--vanilla); }
summary { list-style: none; cursor: pointer; padding: 16px 24px; font-weight: 700; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--creamsicle); font-size: 1.7rem; line-height: 0.8; transition: rotate 0.25s; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 24px 20px; max-width: 56ch; }

/* Join */
.join { background: var(--creamsicle); padding: 0 var(--gutter); text-align: center; }
.join .drips { color: var(--ice); }
.join h2 { font-size: clamp(3.2rem, 11vw, 10rem); }
.join > p { margin: 18px auto 0; max-width: 36ch; font-size: 1.2rem; }
.join form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px auto 0; max-width: 580px; }
.join label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.join input { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--ink); padding: 12px 22px; background: var(--vanilla); border: 2.5px solid var(--ink); border-radius: 999px; }
.join input::placeholder { color: var(--ink); opacity: 0.55; }
.join .status { flex: 1 1 100%; min-height: 1.5em; font-weight: 700; }
.wave { width: 100vw; margin: clamp(16px, 3vw, 40px) calc(-1 * var(--gutter)) -1px; height: clamp(40px, 6vw, 90px); }
.wave path { fill: var(--ink); }

footer { background: var(--ink); color: var(--vanilla); overflow: hidden; text-align: center; padding: 8px var(--gutter) 0; }
footer p { font-size: 0.95rem; max-width: 60ch; margin: 0 auto; }
footer a:hover { text-decoration-style: wavy; }
footer .giant { font-family: var(--puffy); font-size: 17.5vw; line-height: 0.8; color: var(--creamsicle); white-space: nowrap; margin: 28px -4vw -0.12em; }

/* Mouse extras: the normal pointer stays, with a ring over clickable things and a word tag over the pops */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.cursor.on { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%;
  border: 2.5px solid var(--creamsicle); scale: 0; transition: scale 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.cursor.link::before { scale: 1; }
.cursor.link.down::before { scale: 0.7; }
.cursor .tag {
  position: absolute; left: 18px; top: 22px; padding: 7px 16px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--creamsicle); color: var(--vanilla); border: 2.5px solid var(--ink);
  font-family: var(--puffy); font-size: 1.05rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
  rotate: -7deg; scale: 0; transform-origin: 0 0; transition: scale 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.cursor.label .tag { scale: 1; }

@media (max-width: 900px) { .note { display: none; } }
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr; }
  .top nav { justify-self: end; order: 2; }
  .top .btn { display: none; }
  .detail, .faq .cols { grid-template-columns: minmax(0, 1fr); }
  .seal { max-width: 320px; }
  .anatomy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pop" "a" "b" "c" "d"; justify-items: start; gap: 26px; }
  .pop-wrap { justify-self: center; margin: 44px 0; }
  .fact.f1, .fact.f3 { text-align: left; justify-self: start; }
  .fact.f1 strong, .fact.f3 strong { flex-direction: row; }
  .leaders { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 760px) {
  .top nav .wide { display: none; }
  .quiz .cols, .finder { grid-template-columns: minmax(0, 1fr); }
  .qcard { min-height: 0; }
}
