@font-face {
  font-family: "Bricolage";
  src: url("/assets/bricolage.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #f3f6f2;
  --sheet: #ffffff;
  --ink: #13201e;
  --muted: #56655f;
  --line: #cfd9d3;
  --green: #0b4a37;
  --green-2: #11634a;
  --mint: #bfe8d3;
  --ticket: #ffcf3f;
  --ticket-deep: #e9b300;
  --pink: #ff4f8b;
  --focus: #1f6fff;
  --measure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }

/* Header sits on the green */
.top { background: var(--green); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo svg { width: 32px; height: 23px; transform: rotate(-8deg); }
.top nav a { color: var(--mint); font-size: 0.95rem; }

.disclosure { background: var(--ink); color: #d8e4de; font-size: 0.82rem; }
.disclosure .wrap { padding-block: 0.45rem; }
.disclosure a { color: var(--ticket); }

/* Hero: the loud part */
.hero {
  background:
    radial-gradient(circle at 90% 8%, transparent 0 5rem, var(--ticket) 5rem 5.6rem, transparent 5.6rem),
    radial-gradient(circle at 4% 96%, var(--pink) 0 2.2rem, transparent 2.2rem),
    var(--green);
  color: #fff;
  padding: 2rem 0 7rem;
  overflow: hidden;
}
.hero .crumbs, .hero .crumbs a { color: var(--mint); }
.crumbs { font-size: 0.85rem; margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero .when {
  display: inline-block; margin-top: 0.9rem;
  background: var(--ticket); color: var(--ink);
  font-weight: 800; font-size: clamp(1.1rem, 3.5vw, 1.45rem); letter-spacing: -0.02em;
  padding: 0.15rem 0.6rem; transform: rotate(-1.5deg); border-radius: 4px;
}
.hero .lead { color: #d9ece3; font-size: 1.1rem; margin: 1.1rem 0 0; max-width: 34rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.stats li { border: 1.5px solid rgba(191, 232, 211, 0.55); color: #fff; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.9rem; font-weight: 600; }
.stats li.live::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #5df2a5; margin-right: 0.45rem; box-shadow: 0 0 0 3px rgba(93, 242, 165, 0.25); }

/* Ticket overlaps the hero */
.ticket-zone { margin-top: -4.5rem; position: relative; }
.ticket {
  --stub: 11rem;
  --notch: 15px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--ticket);
  border-radius: 16px;
  transform: rotate(-1.4deg);
  transition: transform 220ms ease;
  filter: drop-shadow(0 18px 22px rgba(11, 74, 55, 0.35));
}
.ticket:hover, .ticket.is-copied { transform: rotate(0); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: calc(var(--stub) - var(--notch)); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--paper);
}
.ticket::before { top: calc(var(--notch) * -1); background: var(--green); }
.ticket::after { bottom: calc(var(--notch) * -1); }
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }

.ticket-main { padding: 1.5rem 1.6rem 1.6rem; min-width: 0; }
.sticker {
  position: absolute; top: -0.9rem; left: 1.2rem;
  background: var(--pink); color: #fff; font-weight: 800; font-size: 0.85rem;
  padding: 0.3rem 0.7rem; border-radius: 999px; transform: rotate(-6deg);
  box-shadow: 0 3px 0 rgba(19, 32, 30, 0.25);
}
.ticket-off { margin: 0.4rem 0 0; font-size: clamp(3.4rem, 13vw, 5.2rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; }
.ticket-off small { font-size: 0.36em; font-weight: 800; letter-spacing: -0.02em; margin-left: 0.12em; }
.ticket-for { margin: 0.5rem 0 1.1rem; font-weight: 600; }
.code {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem; border: 2.5px dashed var(--ink); border-radius: 10px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.07em;
  background: rgba(255, 255, 255, 0.6); color: var(--ink); cursor: pointer;
  font-family: inherit; max-width: 100%; overflow-wrap: anywhere;
}
.code:hover { background: #fff; }
.code-hint { display: block; font-size: 0.8rem; margin-top: 0.5rem; color: #4d4419; }
.meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.meta b { font-weight: 750; }

.ticket-stub {
  border-left: 2.5px dashed rgba(19, 32, 30, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.2rem;
}
.stamp {
  width: 6.2rem; height: 6.2rem; border-radius: 50%;
  border: 3px double var(--green); color: var(--green);
  display: grid; place-items: center; text-align: center;
  font-size: 0.72rem; font-weight: 800; line-height: 1.15; transform: rotate(12deg);
  opacity: 0.9;
}
.stamp strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.2rem; padding: 0.7rem 0.9rem; width: 100%;
  background: var(--ink); color: #fff; border-radius: 12px;
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 4px 0 #000;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 #000; text-decoration: none; }
.cta:active { transform: translateY(4px); box-shadow: none; }

.ticket.is-copied .code { background: #fff; border-style: solid; }
.after-copy { display: none; margin-top: 1.1rem; font-weight: 650; }
.is-copied-zone .after-copy { display: block; animation: pop 300ms ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-copied-zone .after-copy { animation: none; } }

@media (max-width: 36rem) {
  .ticket { grid-template-columns: 1fr; transform: rotate(-1deg); }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { border-left: 0; border-top: 2.5px dashed rgba(19, 32, 30, 0.5); flex-direction: row; padding: 1rem 1.4rem 1.4rem; }
  .stamp { width: 4.8rem; height: 4.8rem; flex: none; font-size: 0.62rem; }
  .stamp strong { font-size: 0.85rem; }
}

/* Content sections */
main { padding-block: 0 4rem; }
.section { margin-top: 3.25rem; }
h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}
h2::after { content: ""; display: block; width: 3rem; height: 6px; border-radius: 3px; background: var(--pink); margin-top: 0.55rem; }
p { margin: 0 0 1rem; }
.note { font-size: 0.85rem; color: var(--muted); }

/* Deals: smaller tickets */
.deals { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.deal { background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; box-shadow: 5px 5px 0 var(--mint); }
.deal:nth-child(2n) { box-shadow: 5px 5px 0 var(--ticket); }
.deal .v { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.deal .v small { font-size: 0.5em; margin-left: 0.15em; }
.deal .t { font-weight: 650; }
.deal .d { font-size: 0.85rem; color: var(--muted); }
.deal a { margin-top: auto; padding-top: 0.6rem; font-weight: 750; }
.tag { align-self: flex-start; font-size: 0.75rem; font-weight: 750; background: var(--mint); color: var(--green); border-radius: 999px; padding: 0.1rem 0.55rem; }

.expired .deal { border-color: var(--line); box-shadow: none; color: var(--muted); }
.expired .deal .v { text-decoration: line-through; text-decoration-thickness: 3px; }
.expired .tag { background: #e7ebe9; color: var(--muted); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.steps li { counter-increment: s; position: relative; padding: 0.15rem 0 0 3.4rem; min-height: 2.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ticket); color: var(--ink); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; border: 2px solid var(--ink);
}

/* Facts */
.facts { margin: 0; background: var(--sheet); border-radius: 14px; border: 2px solid var(--ink); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 750; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0.1rem; } }

.tips { margin: 0; padding-left: 1.2rem; }
.tips li { margin-bottom: 0.5rem; }
.tips li::marker { color: var(--pink); content: "✦  "; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* Shop list as stacked tickets */
.shoplist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.shoplist a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: center;
  padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink);
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 14px;
  transition: transform 160ms ease;
}
.shoplist li:nth-child(odd) a { transform: rotate(-0.6deg); }
.shoplist li:nth-child(even) a { transform: rotate(0.5deg); }
.shoplist a:hover { transform: rotate(0) translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .shoplist a { transition: none; } }
.shoplist .nm { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.025em; }
.shoplist .ds { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.shoplist .off {
  grid-row: 1 / span 2; grid-column: 2;
  background: var(--ticket); border: 2px solid var(--ink); border-radius: 10px;
  padding: 0.35rem 0.7rem; font-weight: 800; white-space: nowrap; transform: rotate(3deg);
}

/* Home hero variant */
.hero.home { padding-bottom: 3.5rem; }
.hero.home h1 { font-size: clamp(3rem, 11vw, 5.6rem); }
.home-list { margin-top: -1.75rem; position: relative; }

.prose { padding-top: 2.5rem; }
.prose h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 1rem; }
.prose .lead { color: var(--muted); font-size: 1.15rem; }

/* Footer */
.foot { margin-top: 2rem; background: var(--ink); color: #b9c8c1; font-size: 0.9rem; }
.foot .wrap { padding-block: 2rem 2.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.9rem; }
.foot a { color: #fff; }
.foot .bye { font-size: 1.6rem; font-weight: 800; color: var(--ticket); letter-spacing: -0.03em; margin-bottom: 0.75rem; }

/* Shop logos, always on a white tile so any logo reads */
.logo-tile {
  display: inline-flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 0.6rem 0.9rem; margin-bottom: 1rem; transform: rotate(1.5deg);
  box-shadow: 4px 4px 0 var(--ticket);
}
.herologo { display: block; height: 2.4rem; width: auto; max-width: 14rem; object-fit: contain; }
.shoplist .lg { grid-column: 1; display: block; }
.shoplist .shoplogo { display: block; height: 1.6rem; width: auto; max-width: 9rem; object-fit: contain; object-position: left center; margin-bottom: 0.35rem; }
.shoplist .off { grid-row: 1 / span 3; }
