:root {
  --pine: #0e2a20; --pine-2: #163b2d; --berry: #b8283c; --gold: #e6b450;
  --cream: #f7f0e3; --ink: #1d1a17;
  --display: "Fraunces", Georgia, serif; --body: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--body); background: var(--pine); color: var(--cream); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* string lights */
.garland { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; z-index: 2; }
.lights { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; border-top: 2px solid #0a1e17; }
.lights span { width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 14px;
  background: var(--c); box-shadow: 0 4px 18px var(--c); animation: twinkle 1.8s ease-in-out infinite alternate; }
.lights span:nth-child(5n+1) { --c: var(--berry); }
.lights span:nth-child(5n+2) { --c: var(--gold); animation-delay: .4s; margin-top: 22px; }
.lights span:nth-child(5n+3) { --c: #3fb8af; animation-delay: .9s; }
.lights span:nth-child(5n+4) { --c: #f07a24; animation-delay: 1.3s; margin-top: 20px; }
.lights span:nth-child(5n)   { --c: #b98af0; animation-delay: .6s; }
@keyframes twinkle { to { opacity: .35; box-shadow: none; } }

/* curly streamers */
.streamer { position: absolute; top: 0; width: 24px; transform-origin: 50% 0; animation: sway 3.5s ease-in-out infinite alternate; z-index: 1; }
.streamer path { fill: none; stroke-width: 7; stroke-linecap: round; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; } }

/* confetti falling in the hero */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: drop linear infinite; }
@keyframes drop { to { transform: translate(30px, 105vh) rotate(720deg); } }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse at 50% 30%, var(--pine-2), var(--pine) 70%); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 15vw, 11rem); line-height: .9; margin: 1rem 0 1.5rem;
  font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero h1 { color: var(--berry); } .hero h1 .w { white-space: nowrap; } .hero h1 b { color: var(--cream); font-weight: inherit; }
.when { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: 1.15rem; }
.when b { color: var(--gold); font-weight: 600; }
.runby { margin-top: .9rem; font-size: .95rem; opacity: .8; }
.cue { display: inline-block; margin-top: 3rem; text-decoration: none; font-weight: 600; padding: .85rem 1.6rem;
  border-radius: 999px; background: var(--berry); transition: transform .2s; }
.cue:hover { transform: translateY(2px); }

/* stall grid */
.stalls { background: var(--cream); color: var(--ink); padding: 5rem 1.5rem 6rem; position: relative; }
.stalls::before { content: ""; position: absolute; top: -28px; left: 0; right: 0; height: 30px;
  background: radial-gradient(circle at 15px 30px, var(--cream) 15px, transparent 16px) 0 0 / 30px 30px repeat-x; }
.stalls h2, .stall h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.5rem); text-align: center; }
.stalls > p { text-align: center; color: #5c544a; margin-top: .5rem; }
.grid { max-width: 1000px; margin: 3.5rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; }
.card { text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.card:hover .bauble, .card:focus-visible .bauble { transform: rotate(-6deg) scale(1.05); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.card.featured .bauble { transform: scale(1.07); }
/* centre a lone bauble on the last row */
.card:last-child:nth-child(4n+1) { grid-column: 2 / span 2; }
.card.featured:hover .bauble, .card.featured:focus-visible .bauble { transform: rotate(-6deg) scale(1.12); }
.card.featured h3 { font-size: 1.45rem; }

/* bauble = logo holder */
.bauble { position: relative; width: clamp(120px, 36vw, 160px); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  overflow: visible; box-shadow: inset -12px -14px 0 rgb(0 0 0 / .06), 0 14px 30px rgb(14 42 32 / .18);
  border: 4px solid var(--b, var(--berry)); transform-origin: 50% -30px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.bauble::before { content: ""; position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 28px; height: 16px;
  background: var(--gold); border-radius: 4px 4px 2px 2px; }
.bauble img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } 
/* logoFit: shrink to show the whole logo, clipped to the bauble circle */
.bauble img.fit { position: static; width: calc(var(--fit) * 1%); height: calc(var(--fit) * 1%); border-radius: 0; object-fit: contain; clip-path: circle(calc(4750% / var(--fit))); }
.bauble .initials { font-family: var(--display); font-size: 3rem; font-weight: 600; color: color-mix(in srgb, var(--b, var(--berry)) 70%, #000); }


/* stall page */
.stall { position: relative; overflow-x: clip; min-height: 100svh; background: var(--cream); color: var(--ink); padding: 4.5rem 1.5rem 5rem; }
.stall .lights { border-color: var(--pine); }
.back { position: relative; z-index: 3; display: inline-block; font-weight: 600; text-decoration: none; padding: .5rem 0; }
.back:hover { color: var(--berry); }
.stall article { max-width: 720px; margin: 2rem auto 0; display: grid; gap: 2.5rem; }
.stall header { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.stall header .bauble { width: 200px; margin-top: 1rem; }
.stall .desc { font-size: 1.15rem; color: #3d3730; max-width: 55ch; }
.stall h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin-bottom: 1rem; color: var(--berry); }
.menu { list-style: none; padding: 0; font-size: 1.1rem; }
.menu li { display: flex; gap: .5rem; padding: .45rem 0; }
.menu li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #c9bda8; margin-bottom: .4rem; }
.menu b { order: 2; font-variant-numeric: tabular-nums; }
.team { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.team li { background: var(--pine); color: var(--cream); padding: .45rem 1rem; border-radius: 999px; }
.photo { margin: 0 auto 1.25rem; max-height: 85vh; width: auto; max-width: 100%; border-radius: 14px; border: 6px solid #fff; box-shadow: 0 14px 30px rgb(0 0 0 / .15); rotate: -1deg; }
.demo { border-radius: 14px; box-shadow: 0 14px 30px rgb(0 0 0 / .18); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: grid; align-content: start; gap: .2rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--pine); color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; transition: transform .2s, background .2s; }
.pager a:last-child { text-align: right; }
.pager a:hover { background: var(--berry); transform: translateY(-2px); }
.pager small { font-family: var(--body); font-size: .8rem; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
footer { text-align: center; padding: 2rem; font-size: .9rem; color: #c9d6cf; }

/* ---- motion ---- */
/* title letters drop and bounce in, then bob */
.hero h1 .l { display: inline-block; font-style: normal; animation: dropin .7s cubic-bezier(.3,1.6,.5,1) both, bob 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 70ms), calc(.8s + var(--i) * 120ms); }
@keyframes dropin { from { opacity: 0; transform: translateY(-1.2em) rotate(-12deg); } }
@keyframes bob { to { translate: 0 -.06em; rotate: 2deg; } }
.when, .runby, .cue { animation: rise .8s ease-out both; }
.when { animation-delay: .9s; } .runby { animation-delay: 1.05s; } .cue { animation-delay: 1.2s, 2.4s; animation-name: rise, nudge; animation-duration: .8s, 2s; animation-iteration-count: 1, infinite; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(5px); } 90% { transform: translateY(-2px); } }

/* baubles: pop in on scroll, then swing gently from the hook */
.card { opacity: 0; translate: 0 30px; scale: .85; transition: opacity .5s, translate .6s cubic-bezier(.3,1.6,.5,1), scale .6s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i) % 4 * 90ms); }
.card.in { opacity: 1; translate: 0; scale: 1; }
.card .bauble { animation: swing 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.45s); }
@keyframes swing { from { rotate: -3deg; } to { rotate: 3deg; } }
.card h3 { transition: color .2s; } .card:hover h3 { color: color-mix(in srgb, var(--b) 75%, #000); }

/* featured bauble: a glint sweeps across */
.card.featured .bauble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / .8) 50%, transparent 58%) 150% 0 / 300% 100% no-repeat; animation: glint 3.5s ease-in-out 1.5s infinite; }
@keyframes glint { 0%, 60% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }

/* tap: bauble launches at the screen */
.zoom { position: fixed; z-index: 9; margin: 0; pointer-events: none; transform-origin: 50% 50%; animation: zoom .45s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes zoom { to { transform: translate(var(--dx), var(--dy)) scale(14); rotate: 0deg; } }
.zoom-fade { position: fixed; inset: 0; z-index: 10; background: var(--cream); opacity: 0; animation: fadein .15s .32s forwards; pointer-events: none; }
@keyframes fadein { to { opacity: 1; } }

/* stall page: bauble lands from the zoom, sections rise, team pills pop */
.stall header .bauble { animation: hang 1.1s cubic-bezier(.3,1.6,.5,1) both, swing 3.2s ease-in-out 1.1s infinite alternate; }
@keyframes hang { from { scale: 4; opacity: 0; } 60% { opacity: 1; } }
.stall header h2, .stall .desc, .stall section, .stall .photo { animation: rise .7s ease-out both; }
.stall header h2 { animation-delay: .3s; } .stall .desc { animation-delay: .45s; } .stall section { animation-delay: .6s; } .stall section + section { animation-delay: .75s; } .stall .photo { animation-delay: .9s; }
.team li { animation: rise .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.9s + var(--n, 0) * 80ms); transition: transform .2s; }
.team li:hover { transform: translateY(-3px) rotate(-2deg); }
.menu li { transition: padding .2s; } .menu li:hover { padding-left: .4rem; }

@media (prefers-reduced-motion: reduce) {
  .lights span, .streamer, .hero h1 .l, .when, .runby, .cue, .card .bauble, .stall *, .card.featured .bauble::after { animation: none !important; }
  .card { opacity: 1; translate: 0; scale: 1; transition: none; } .confetti { display: none; }
}
@media (max-width: 700px) { .streamer:nth-of-type(3n+2) { display: none; } .streamer { max-height: 30svh; } .grid { gap: 2.5rem 1rem; grid-template-columns: repeat(2, 1fr); }
  .card:last-child:nth-child(4n+1) { grid-column: auto; } .card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .hero h1 { font-size: 24vw; line-height: .85; } .hero h1 .w { display: block; }
  .when { flex-direction: column; align-items: center; gap: .15rem; } .cue { margin-top: 2rem; }
  .card h3 { font-size: 1.15rem; } .stall .desc { font-size: 1.05rem; text-align: left; }
  .pager a { font-size: 1rem; padding: .9rem 1rem; } }

/* Eat Up charity section */
.cause { max-width: 900px; margin: 0 auto; padding: 5rem 1.5rem 3rem; text-align: center; }
.cause h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.05; }
.cause .lead { font-size: 1.15rem; max-width: 58ch; margin: 1.25rem auto 0; }
.cause a { color: var(--gold); }
.stats { list-style: none; padding: 0; margin: 3rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stats li { font-size: 1rem; opacity: .9; }
.stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.cause .small { font-size: .95rem; opacity: .8; max-width: 55ch; margin: 0 auto; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 1.75rem; } }
