/* ============================================================
   CLOWN CONES & CONFECTIONS — Design System
   A big-top, candy-counter, sugar-rush of a stylesheet.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --pink:    #ff2d95;
  --pink-d:  #d10c72;
  --cyan:    #00d4e0;
  --cyan-d:  #00a3ad;
  --yellow:  #ffd400;
  --orange:  #ff7a1a;
  --purple:  #8b3dff;
  --mint:    #2be38c;
  --berry:   #ff4d6d;
  --cream:   #fff8ec;
  --cream-2: #ffeed6;
  --ink:     #2a1150;
  --ink-2:   #5b3f86;
  --white:   #ffffff;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 10px 0 rgba(42, 17, 80, 0.14);
  --shadow-lift: 0 18px 40px rgba(42, 17, 80, 0.22);
  --border: 4px solid var(--ink);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 4px dashed var(--purple);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--ink); color: var(--white); padding: .75rem 1.5rem;
  border-radius: 0 0 14px 14px; z-index: 999; font-weight: 800;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.75rem, 1.6rem + 5.6vw, 6rem); }
h2 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem); }

.lede { font-size: clamp(1.075rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; }

/* Text that pops off the page like a fairground sign */
.pop {
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}
.pop-pink   { color: var(--pink); }
.pop-yellow { color: var(--yellow); }
.pop-cyan   { color: var(--cyan); }
.pop-mint   { color: var(--mint); }

.rainbow {
  background: linear-gradient(96deg, var(--pink), var(--orange) 22%, var(--yellow) 42%, var(--mint) 62%, var(--cyan) 80%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.script {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  color: var(--pink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--yellow);
  padding: .4rem 1.1rem;
  border-radius: 100px;
  transform: rotate(-2deg);
}

/* ---------- 4. Layout ---------- */
.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap-wide { width: min(1440px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

section { position: relative; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { text-align: center; max-width: 62ch; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.1rem; }

.center { text-align: center; }
.stack > * + * { margin-top: 1.15rem; }

/* min(Npx, 100%) is what keeps these from overflowing on narrow phones:
   a bare minmax(Npx, 1fr) refuses to shrink below N and pushes the page
   sideways once the viewport is narrower than N plus the gutters. */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* ---------- 5. Surfaces ---------- */
.bg-cream  { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-ink    { background: var(--ink); color: var(--cream); }
.bg-pink   { background: var(--pink); color: var(--white); }
.bg-cyan   { background: var(--cyan); }
.bg-yellow { background: var(--yellow); }
.bg-purple { background: var(--purple); color: var(--white); }

/* Confetti sprinkle field — pure CSS, no image requests */
.sprinkles {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, var(--pink) 50%, transparent 51%),
    radial-gradient(circle, var(--cyan) 50%, transparent 51%),
    radial-gradient(circle, var(--yellow) 50%, transparent 51%),
    radial-gradient(circle, var(--mint) 50%, transparent 51%);
  background-size: 190px 190px, 230px 230px, 170px 170px, 260px 260px;
  background-position: 0 0, 90px 60px, 40px 130px, 150px 20px;
  background-repeat: repeat;
}
.sprinkles::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--purple) 50%, transparent 51%),
    radial-gradient(circle, var(--orange) 50%, transparent 51%);
  background-size: 210px 210px, 280px 280px;
  background-position: 120px 100px, 30px 180px;
}
.sprinkles, .sprinkles::before { background-blend-mode: normal; }

/* Candy-stripe */
.stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--pink) 0 22px,
    var(--white) 22px 44px
  );
}

/* Big-top canvas roof */
.bigtop {
  background: repeating-linear-gradient(
    90deg,
    var(--berry) 0 8%,
    var(--cream) 8% 16%
  );
}

/* ---------- 6. Wave / scallop dividers ---------- */
.divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.divider path { fill: currentColor; }
.divider-top    { margin-bottom: -1px; }
.divider-bottom { margin-top: -1px; }

/* Scalloped edge, like a paper doily under a sundae */
.scallop {
  --s: 46px;
  height: calc(var(--s) / 2);
  width: 100%;
  background: currentColor;
  -webkit-mask: radial-gradient(var(--s) at 50% calc(100% + 14px), #0000 calc(99% - 2px), #000 calc(101% - 2px)) 0 0/ calc(var(--s) * 1.2) 100% repeat-x;
          mask: radial-gradient(var(--s) at 50% calc(100% + 14px), #0000 calc(99% - 2px), #000 calc(101% - 2px)) 0 0/ calc(var(--s) * 1.2) 100% repeat-x;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  text-decoration: none;
  padding: .85rem 1.9rem;
  border: var(--border);
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, background .2s;
  position: relative;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

.btn-pink   { background: var(--pink);   color: var(--white); }
.btn-cyan   { background: var(--cyan);   color: var(--ink); }
.btn-mint   { background: var(--mint);   color: var(--ink); }
.btn-white  { background: var(--white);  color: var(--ink); }
.btn-purple { background: var(--purple); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row.center { justify-content: center; }

/* ---------- 8. Top bar + marquee ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  font-size: .9rem;
  overflow: hidden;
  border-bottom: 4px solid var(--pink);
}
.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee-track { display: flex; gap: 2.5rem; padding: .55rem 1.25rem; white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: .55rem; }
.marquee-track b { color: var(--yellow); }
@keyframes slide { to { transform: translateX(-50%); } }
.topbar:hover .marquee { animation-play-state: paused; }

/* ---------- 9. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 5px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 52px; height: 52px; flex: none; }
.brand-text { line-height: .95; }
.brand-text .b1 {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--pink); letter-spacing: -.02em;
}
.brand-text .b2 {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; padding: .5rem .9rem; border-radius: 100px;
  transition: background .18s, color .18s, transform .18s;
}
.nav-links a:hover { background: var(--yellow); transform: rotate(-2deg); }
.nav-links a[aria-current="page"] { background: var(--pink); color: var(--white); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  background: var(--pink); color: var(--white);
  border: var(--border); border-radius: 14px;
  width: 52px; height: 48px; box-shadow: 0 4px 0 var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 3.5px; background: currentColor;
  border-radius: 3px; margin-inline: auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 5px solid var(--ink);
    padding: 1rem var(--gutter) 1.75rem;
    gap: .35rem;
    display: none;
  }
  /* The open menu has to be able to scroll: 7 links plus a CTA overflows a
     landscape phone, and without this the last items are unreachable. */
  .nav-links.open {
    display: flex;
    max-height: calc(100vh - 5.5rem);
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links a { padding: .8rem 1rem; font-size: 1.2rem; }
  .nav-cta { margin: .5rem 0 0; text-align: center; justify-content: center; }
}

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 600px at 82% 8%, rgba(255,212,0,.55), transparent 62%),
    radial-gradient(900px 620px at 8% 92%, rgba(0,212,224,.5), transparent 60%),
    linear-gradient(170deg, #ffe3f3, var(--cream) 55%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { max-width: 44ch; }
.hero-copy > * + * { margin-top: 1.4rem; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art svg { width: min(100%, 460px); height: auto; filter: drop-shadow(0 22px 30px rgba(42,17,80,.25)); }

/* Floating orbs of colour */
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  opacity: .85; z-index: 1; pointer-events: none;
  border: 4px solid var(--ink);
}
.blob-1 { width: 90px;  height: 90px;  background: var(--mint);   top: 12%;  left: 4%;   animation: float 7s ease-in-out infinite; }
.blob-2 { width: 54px;  height: 54px;  background: var(--pink);   top: 68%;  left: 12%;  animation: float 5.5s ease-in-out infinite .6s; }
.blob-3 { width: 72px;  height: 72px;  background: var(--purple); top: 18%;  right: 6%;  animation: float 6.4s ease-in-out infinite .3s; }
.blob-4 { width: 42px;  height: 42px;  background: var(--orange); bottom: 12%; right: 14%; animation: float 5s ease-in-out infinite .9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(10deg); }
}

/* ---------- 11. Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); }
.card > * + * { margin-top: .75rem; }

/* Dark-surface cards. Needs to out-specify .card/.jar, which are declared
   after .bg-ink and would otherwise win on source order. */
.card.bg-ink, .jar.bg-ink { background: var(--ink); color: var(--cream); }
.card.bg-ink .muted, .jar.bg-ink .muted { color: rgba(255, 248, 236, .82); }
.card.bg-ink p, .jar.bg-ink p { color: rgba(255, 248, 236, .82); }

.card-tint-pink   { background: #fff0f7; }
.card-tint-cyan   { background: #e8fbfd; }
.card-tint-yellow { background: #fff9dd; }
.card-tint-mint   { background: #e9fdf3; }
.card-tint-purple { background: #f4ecff; }

.card-icon {
  width: 78px; height: 78px; display: grid; place-items: center;
  border: var(--border); border-radius: 50%;
  background: var(--yellow); margin-bottom: 1rem;
}
.card-icon svg { width: 44px; height: 44px; }

.card-num {
  position: absolute; top: -22px; right: -14px;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--pink); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  border: var(--border); border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
  transform: rotate(8deg);
}

/* Ribbon tag */
.tag {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 100px;
  border: 3px solid var(--ink); background: var(--mint);
}

/* ---------- 12. Flavour wall ---------- */
.flavors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: .9rem; }
.flavor {
  display: flex; align-items: center; gap: .65rem;
  border: 3.5px solid var(--ink); border-radius: 100px;
  padding: .6rem 1.1rem; background: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 5px 0 rgba(42,17,80,.16);
  transition: transform .16s ease, box-shadow .16s ease;
}
.flavor:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 8px 0 rgba(42,17,80,.2); }
.scoop {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 3px solid var(--ink);
}

/* ---------- 13. Menu list ---------- */
.menu-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; height: 100%;
}
.menu-card-head {
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: var(--border);
}
.menu-card-head h3 { color: inherit; }
.menu-card-body { padding: 1.4rem 1.5rem 1.7rem; }

.menu-item { padding-block: .8rem; border-bottom: 2.5px dashed rgba(42,17,80,.2); }
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-item-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; }
.menu-item-size { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); white-space: nowrap; }
.menu-item p { color: var(--ink-2); font-size: .97rem; margin-top: .15rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip {
  font-weight: 800; font-size: .88rem;
  padding: .35rem .85rem; border-radius: 100px;
  border: 3px solid var(--ink); background: var(--cream-2);
}

/* ---------- 14. Candy jar grid ---------- */
.jar {
  border: var(--border); border-radius: var(--radius-sm);
  padding: 1.5rem; background: var(--white); box-shadow: var(--shadow);
  height: 100%;
}
.jar h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.jar h3 .dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.jar li {
  display: inline-block; margin: 0 .4rem .5rem 0;
  padding: .32rem .8rem; border-radius: 100px;
  background: var(--cream-2); border: 2.5px solid rgba(42,17,80,.25);
  font-weight: 700; font-size: .95rem;
}
.jar li:hover { background: var(--yellow); border-color: var(--ink); }

/* ---------- 15. Stats / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1.25rem; }
.fact {
  text-align: center; padding: 1.6rem 1rem;
  border: var(--border); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow);
}
.fact b {
  display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1; color: var(--pink);
}
.fact span { font-weight: 800; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- 16. Info panel (hours / address) ---------- */
/* Always a light surface, so it pins its own dark text -- otherwise it inherits
   the cream/white text of a dark section it is nested in and disappears. */
.info-panel {
  border: var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 2.5px dashed rgba(42,17,80,.22);
  font-weight: 700;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row b { font-family: var(--font-display); font-size: 1.1rem; }

.contact-line { display: flex; align-items: flex-start; gap: 1rem; }
.contact-line + .contact-line { margin-top: 1.4rem; }
.contact-line .ci {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border: var(--border); border-radius: 50%;
}
.contact-line .ci svg { width: 26px; height: 26px; }
.contact-line h4 { font-family: var(--font-display); font-size: 1.15rem; }
.contact-line a { font-weight: 800; color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.map-frame {
  border: var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2);
  min-height: 380px; height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- 17. Forms ---------- */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 600;
  padding: .85rem 1.1rem;
  border: 3.5px solid var(--ink); border-radius: 16px;
  background: var(--white); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(255,45,149,.22);
}
.form-note { font-size: .92rem; color: var(--ink-2); }

/* ---------- 18. Callout banner ---------- */
.callout {
  border: var(--border); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.callout h2 { color: var(--yellow); }
.callout .btn-row { margin-top: 1.75rem; }
.callout::after {
  content: ""; position: absolute; inset: auto -60px -90px auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), transparent 70%);
  opacity: .55;
}

/* ---------- 19. Notice strip ---------- */
.notice {
  display: flex; gap: 1.1rem; align-items: flex-start;
  border: var(--border); border-left-width: 14px; border-radius: var(--radius-sm);
  background: #fff9dd; padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow);
}
.notice svg { width: 34px; height: 34px; flex: none; margin-top: 2px; }
.notice b { font-family: var(--font-display); font-size: 1.15rem; display: block; }

/* ---------- 20. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--white); color: var(--ink);
  border: var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 54px; height: 54px; flex: none; display: grid; place-items: center;
  border: var(--border); border-radius: 50%;
  background: var(--cyan); font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--ink-2); }

/* ---------- 21. Page header (interior pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { margin-block: .8rem .9rem; }
.page-head p { max-width: 58ch; margin-inline: auto; font-weight: 600; }

.crumbs { font-weight: 800; font-size: .92rem; letter-spacing: .06em; }
.crumbs a { text-decoration: none; border-bottom: 3px solid currentColor; }

/* ---------- 22. Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: var(--cream); }
.footer h4 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--yellow); margin-bottom: 1rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.footer-links li + li { margin-top: .55rem; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.footer .brand-text .b1 { color: var(--yellow); }
.footer .brand-text .b2 { color: rgba(255,248,236,.7); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 3px dashed rgba(255,248,236,.28);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .9rem; font-weight: 600; color: rgba(255,248,236,.75);
}

/* ---------- 22b. Photography ---------- */
/* The shop's own photos. Several source files are only 240x320, so those are
   capped at native width to stay sharp — see .media-sm. */

.media {
  display: block; width: 100%; height: auto;
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--cream-2);
  object-fit: cover;
}
.media-round { border-radius: 50%; aspect-ratio: 1; }

/* Small-source images: never upscale past their native 240px width */
.media-sm { max-width: 240px; margin-inline: auto; }

/* Framed photo on a colour stage — good for the little product shots */
.photo-stage {
  display: grid; place-items: center;
  padding: 1rem; border-radius: var(--radius);
  border: var(--border); box-shadow: var(--shadow);
  background: var(--yellow);
}
.photo-stage img {
  width: 100%; max-width: 240px; height: auto;
  border: 3.5px solid var(--ink); border-radius: var(--radius-sm);
  display: block;
}
.stage-pink   { background: var(--pink); }
.stage-cyan   { background: var(--cyan); }
.stage-mint   { background: var(--mint); }
.stage-purple { background: var(--purple); }
.stage-yellow { background: var(--yellow); }

/* Card with a photo at the top */
.card-media {
  display: block; width: 100%; aspect-ratio: 3 / 4;
  max-width: 240px; margin: 0 auto 1.1rem;
  object-fit: cover;
  border: 3.5px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--cream-2);
}
.card-media-wide { aspect-ratio: 4 / 3; max-width: 100%; }

/* Big feature photo, tilted like a polaroid on a corkboard */
.polaroid {
  background: var(--white); padding: 12px 12px 52px;
  border: var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lift);
  position: relative; max-width: 480px;
}
.polaroid img { width: 100%; height: auto; display: block; border-radius: 4px; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}

/* Hero photo treatment — circular crop with a thick ring */
.hero-photo {
  width: min(100%, 440px); aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  border: 7px solid var(--ink);
  box-shadow: 0 22px 44px rgba(42,17,80,.32);
}

/* Photo strip / gallery */
.strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.strip img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.strip img:hover { transform: translateY(-6px) rotate(-2deg); }

/* Logo lockup */
.brand-logo { width: auto; height: 46px; display: block; }
@media (max-width: 520px) { .brand-logo { height: 38px; } }

/* The logo artwork is dark — give it a light chip on dark surfaces */
.brand-chip {
  background: var(--cream); padding: .55rem .9rem;
  border-radius: 100px; border: 3px solid var(--ink);
  display: inline-block;
}

/* ---------- 23. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 24. Utilities ---------- */
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-2); }

/* Muted text sitting on a dark surface has to flip to cream, or it renders
   dark-on-dark. Keep this list in sync with the dark surfaces in section 5. */
.footer .muted,
.bg-ink .muted,
.bg-purple .muted,
.bg-pink .muted,
.callout .muted { color: rgba(255, 248, 236, .82); }

/* ...but a light panel nested inside a dark section keeps dark text. This has
   to come last: same specificity as the rules above, so source order decides. */
.info-panel .muted,
.menu-card .muted,
.card:not(.bg-ink) .muted,
.jar:not(.bg-ink) .muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 25. Small screens ---------- */

/* Long single words (flavor names, URLs) must never push the page sideways */
h1, h2, h3, h4, p, li, .flavor, .chip, .menu-item-name, .fact span {
  overflow-wrap: break-word;
}

/* Header rows that pair a title with a tag need to wrap rather than squash */
.menu-card-head, .menu-item-top, .hours-row { flex-wrap: wrap; }

@media (max-width: 640px) {
  /* Decorative floating orbs eat space and can sit over text on a phone */
  .blob { display: none; }

  /* Pull the corner badge inside the card so it can't be clipped */
  .card-num { top: -16px; right: -6px; width: 48px; height: 48px; font-size: 1.3rem; }

  /* Full-width tap targets read better than side-by-side on a narrow screen */
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: .75rem; }
  .nav-cta.btn { width: auto; }

  /* Ease off the chunky offsets so nothing hangs past the viewport edge */
  .tilt-l, .tilt-r { transform: none; }
  .polaroid { padding: 10px 10px 44px; }
  .map-frame, .map-frame iframe { min-height: 300px; }
}

@media (max-width: 400px) {
  /* Thinner outlines and softer shadows keep very small screens legible */
  :root { --border: 3px solid var(--ink); }
  .flavor { font-size: .95rem; padding: .5rem .9rem; }
  .jar li, .chip { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
