/* Foodie QTs site look. Colors sampled from the QT Pies poster
   (events/qt-pies-2026-12/poster.jpg) and its JotForm. */
:root {
  --qt-cream: #feedcf;      /* poster background */
  --qt-marigold: #f8b236;   /* poster blobs */
  --qt-ink: #111111;
  --qt-blue: #0040e8;       /* bunny's apron */
  --qt-red: #e80000;        /* cat's apron */
  --qt-pink: #f89090;
  --qt-periwinkle: #88a8f8;
  --qt-yellow: #f8e828;
  --qt-pumpkin: #f07832;    /* JotForm card */
  --qt-peach: #fdcd80;      /* JotForm button */
  --qt-font: "Nunito", ui-rounded, system-ui, sans-serif;
  --qt-max: 1100px;
  --qt-gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.qt-site {
  font-family: var(--qt-font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--qt-ink);
  background: var(--qt-cream);
}

/* Not `.qt-site a`: that would recolor links inside old designs shown as paper. */
.qt-notice a, .qt-event a, .qt-cards a { color: var(--qt-blue); }

/* ── Nav ─────────────────────────────────────────────────────── */
.qt-nav {
  display: flex;
  align-items: baseline;
  gap: 24px;
  max-width: var(--qt-max);
  margin: 0 auto;
  padding: 18px var(--qt-gutter);
}
.qt-brand {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--qt-ink) !important;
  text-decoration: none;
  margin-right: auto;
}
.qt-nav-link {
  font-weight: 700;
  color: var(--qt-ink) !important;
  text-decoration-color: var(--qt-marigold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.qt-main {
  max-width: var(--qt-max);
  margin: 0 auto;
  padding: 8px var(--qt-gutter) 64px;
}

/* ── Notices ("this event happened") ─────────────────────────── */
.qt-notice {
  margin: 0 0 20px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--qt-periwinkle);
  font-weight: 700;
}

/* ── Native event page ───────────────────────────────────────── */
.qt-event {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.qt-poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.12);
}
.qt-title {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.qt-lede { font-size: 20px; margin: 0 0 20px; }
.qt-facts { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 22px; }
/* Each fact sits on a hand-painted swash like the blobs behind the poster's
   text: an irregular SVG shape used as a mask, filled with the fact's color,
   slightly tilted and overhanging the text. */
.qt-fact {
  position: relative;
  isolation: isolate;
  justify-self: start;   /* hug the text, like the poster's blobs */
  padding: 14px 26px;
  font-weight: 700;
}
.qt-fact::before {
  content: "";
  position: absolute;
  inset: -6px -12px;
  z-index: -1;
  background: var(--swash-color);
  -webkit-mask: var(--swash) center / 100% 100% no-repeat;
          mask: var(--swash) center / 100% 100% no-repeat;
  transform: rotate(var(--swash-tilt));
}
.qt-fact-when  { --swash-color: var(--qt-periwinkle); --swash-tilt: -1.2deg; --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M14,9 C34,0 58,12 86,6 C118,0 140,13 168,6 C190,1 200,16 197,30 C194,42 199,54 180,57 C150,60 132,47 104,53 C78,59 56,49 30,56 C10,60 0,46 4,34 C7,26 1,16 14,9 Z'/%3E%3C/svg%3E"); }
.qt-fact-where { --swash-color: var(--qt-pink);       --swash-tilt: 0.9deg;  --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M10,5 C40,0 62,15 98,10 C128,6 150,17 176,12 C196,8 199,24 192,34 C186,44 198,52 172,56 C140,60 112,49 80,55 C50,60 18,59 7,48 C0,38 5,30 2,20 C0,11 3,6 10,5 Z'/%3E%3C/svg%3E"); }
.qt-fact-price { --swash-color: var(--qt-marigold);   --swash-tilt: -0.6deg; --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M6,19 C16,4 44,13 70,6 C96,0 118,15 146,8 C172,2 198,6 196,24 C194,36 200,48 186,55 C164,60 146,49 120,55 C92,60 70,51 44,57 C18,60 2,52 4,38 C5,30 0,26 6,19 Z'/%3E%3C/svg%3E"); }
.qt-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--qt-pumpkin);
  color: #fff !important;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.qt-nowrap { white-space: nowrap; }
/* Long practical info runs the full width under the poster and details. */
.qt-access { grid-column: 1 / -1; max-width: 72ch; }
.qt-access .qt-h2 { margin-top: 8px; }
.qt-button:hover { background: var(--qt-red); }

@media (max-width: 760px) {
  .qt-event { grid-template-columns: 1fr; }
}

/* ── Footer: Instagram line on every page ────────────────────── */
.qt-footer {
  max-width: var(--qt-max);
  margin: 0 auto;
  padding: 0 var(--qt-gutter) 48px;
}
.qt-instagram {
  margin: 0;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--qt-pink);
  font-weight: 700;
  font-size: 19px;
  text-align: center;
}
.qt-instagram a { color: var(--qt-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ── Events list ─────────────────────────────────────────────── */
.qt-h2 { font-weight: 900; font-size: 26px; margin: 32px 0 14px; }
.qt-cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.qt-card a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 14px; border-radius: 18px;
  background: #fff8ec; color: var(--qt-ink);
  text-decoration: none;
  border: 3px solid var(--qt-ink);
}
.qt-card a:hover { background: var(--qt-peach); }
.qt-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.qt-card-title { font-weight: 900; font-size: 20px; }
.qt-card-meta { font-weight: 700; font-size: 14px; }
.qt-card-summary { font-size: 15px; }

/* ── Old event designs, shown as a sheet of paper ────────────── */
.paper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.08), 0 18px 40px rgba(20, 20, 20, 0.18);
  transform: rotate(-0.4deg);
}
@media (max-width: 760px) { .paper { transform: none; } }
