/* Block Potluck — visual system
   Palette: paper white + sage wash, ink green-black, picnic red (actions),
   basil (diet tags, all-good), butter (highlighter + "needs attention").
   Type: Bricolage Grotesque (display) + Atkinson Hyperlegible (body/UI; designed for low-vision readers). */

:root {
  --paper: #ffffff;
  --wash: #f3f5f0;
  --ink: #17231d;
  --ink-2: #33423a;
  --muted: #5e6a63;
  --line: #dde2da;
  --line-strong: #8a948e;
  --red: #c2331b;
  --red-deep: #9e2814;
  --red-soft: #fbe3de;
  --basil: #2e6b45;
  --basil-soft: #e3f0e6;
  --butter: #ffe066;
  --butter-soft: #fff4c2;
  --butter-ink: #6b4a00;
  --accent: var(--red);
  --accent-soft: var(--red-soft);
  --green: var(--basil);
  --green-soft: var(--basil-soft);
  --amber: var(--butter-ink);
  --amber-soft: var(--butter-soft);
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 var(--body);
  background-color: var(--wash);
  /* faint dot grid, like graph paper on a clipboard */
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 35, 29, .11) 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: var(--red); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }
.loading { text-align: center; color: var(--muted); padding: 4rem 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; margin-bottom: 8px;
  background: rgba(243, 245, 240, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: rgba(23,35,29,.06); }
@media (max-width: 600px) { .nav a:not(.btn) { display: none; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.stack > * + * { margin-top: 16px; }
@media (max-width: 880px) {
  .grid { display: flex; flex-direction: column; gap: 16px; }
  .grid > main, .grid > aside { display: contents; }
  .grid .stack > * + * { margin-top: 0; }
  .grid > main > *, .grid > aside > * { width: 100%; }
  #event { order: 1; } .live { order: 2; } #you { order: 3; } #stats { order: 4; }
  #board { order: 5; } #coverage { order: 6; } #guests { order: 7; } #host { order: 8; }
}

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card h2 { margin: 0 0 12px; font-size: 1.3rem; }
.card h3 { margin: 18px 0 8px; font-size: 1.05rem; }

/* gingham strip: the picnic tablecloth */
.gingham { position: relative; overflow: hidden; }
.gingham::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 12px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(194, 51, 27, .55) 50%, transparent 50%),
    linear-gradient(rgba(194, 51, 27, .55) 50%, transparent 50%);
  background-size: 12px 12px;
}
.gingham.card { padding-top: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--paper); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: transform .06s ease, background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -8px rgba(194, 51, 27, .8);
}
.btn.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ink:hover { background: #000; }
.btn.block { width: 100%; margin-top: 16px; min-height: 52px; font-size: 1.05rem; }
.btn.small { min-height: 44px; padding: 9px 16px; font-size: .95rem; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: rgba(23,35,29,.05); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--red); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn:focus-visible, .course:focus-visible, .open:focus-visible, .suggest button:focus-visible, .linkbtn:focus-visible,
.dish .x:focus-visible, .stepper button:focus-visible, a:focus-visible, summary:focus-visible, .done-card:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 0 28px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -0.045em; margin: 0 0 20px; font-weight: 800; font-variation-settings: "wdth" 92; }
.hero h1 .hl {
  background: linear-gradient(transparent 12%, var(--butter) 12%, var(--butter) 88%, transparent 88%);
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rot { display: inline-grid; vertical-align: bottom; color: var(--red); }
.rot > span { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.rot > span[aria-hidden="true"] { opacity: 0; transform: translateY(.45em); }
.rot > span.out { opacity: 0; transform: translateY(-.45em); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 16px; } }

/* the live sign-up sheet in the hero */
.sheet-demo { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 22px 20px; box-shadow: 0 30px 60px -30px rgba(23,35,29,.35); transform: rotate(.6deg); }
.sheet-demo .clip { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 92px; height: 28px; border-radius: 8px; background: #c9cfc7; border: 1px solid #aeb6ad; box-shadow: 0 2px 0 #9aa399; }
.sheet-demo h3 { margin: 0; font-size: 1.25rem; }
.sheet-demo .sub { color: var(--muted); font-size: .9rem; margin: 2px 0 12px; }
.sheet-demo .course-title { font: 700 .95rem var(--display); margin: 12px 0 4px; display: flex; justify-content: space-between; }
.sheet-demo .ln { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; min-height: 38px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.sheet-demo .ln .who { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.sheet-demo .ln.empty { color: #9aa49d; }
.sheet-demo .ln.new { animation: write-in .5s ease both; }
.sheet-demo .ln b { font-weight: 700; }
@keyframes write-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.sheet-demo .demo-alert { margin-top: 14px; border-radius: var(--r-sm); padding: 10px 12px; font-weight: 700; font-size: .95rem; transition: background-color .4s, color .4s; }
.sheet-demo .demo-alert.warn { background: var(--butter-soft); color: var(--butter-ink); }
.sheet-demo .demo-alert.good { background: var(--basil-soft); color: var(--basil); }
.sheet-demo .demo-typing { margin-top: 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 12px; font-size: .95rem; min-height: 44px; }
.sheet-demo .demo-typing .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sheet-demo .demo-dup { margin-top: 6px; font-size: .9rem; color: var(--butter-ink); background: var(--butter-soft); border-radius: var(--r-sm); padding: 7px 10px; }

/* how it works: a real sequence */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 18px 20px 6px 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1rem var(--display); margin-bottom: 10px; }
.steps b { display: block; font: 800 1.2rem/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.steps span { color: var(--ink-2); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* what makes it different */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 44px 0 0; }
.bento > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.bento h3 { margin: 0 0 6px; font-size: 1.3rem; }
.bento p { margin: 0; color: var(--ink-2); }
.bento .b-dup { grid-column: span 3; }
.bento .b-diet { grid-column: span 3; }
.bento .b-slots { grid-column: span 2; }
.bento .b-flyer { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.bento .mini { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bento .pill { border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; background: var(--wash); border: 1px solid var(--line); }
.bento .pill.clash { background: var(--butter-soft); border-color: #e9cf6a; color: var(--butter-ink); }
.bento .pill.ok { background: var(--basil-soft); border-color: #b8d7c1; color: var(--basil); }
.bento .meter { height: 10px; border-radius: 99px; background: var(--wash); overflow: hidden; margin-top: 16px; }
.bento .meter i { display: block; height: 100%; width: 75%; background: var(--red); border-radius: 99px; }
.bento .mini-qr { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.bento .mini-qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 880px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > div { grid-column: auto !important; } }

.create-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; margin-top: 56px; scroll-margin-top: 80px; }
.create-wrap > div h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; margin: 8px 0 12px; }
.create-wrap > div p { color: var(--ink-2); max-width: 30em; }
@media (max-width: 880px) { .create-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; } }
.mypotlucks a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.mypotlucks a:first-of-type { border-top: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; font-size: .95rem; margin: 14px 0 6px; }
label .opt, legend .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 224, 102, .7); }
textarea { min-height: 78px; resize: vertical; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-row > div > label { margin-top: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: .95rem; margin: 14px 0 8px; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #fff; font-size: .95rem; font-weight: 700; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--basil); border-color: var(--basil); color: #fff; }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.course {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; padding: 10px 6px; min-height: 56px; cursor: pointer;
  text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.2;
}
.course small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.course.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.course.selected small { color: #d7ddd8; }
.course:disabled { background: var(--wash); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

.steppers { display: grid; gap: 8px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; }
.stepper .name { font-weight: 700; }
.stepper .ctl { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; line-height: 1; }
.stepper button:hover { border-color: var(--ink); }
.stepper output { min-width: 1.6em; text-align: center; font: 800 1.15rem var(--display); font-variant-numeric: tabular-nums; }

/* ---------- potluck page ---------- */
.event h1 { margin: 0 0 8px; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 800; }
.event .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-weight: 700; margin-bottom: 8px; }
.event .desc { margin: 12px 0 14px; white-space: pre-wrap; max-width: 60ch; }
.event .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.needed { margin: 12px 0 0; font-weight: 700; }
.needed b { background: linear-gradient(transparent 55%, var(--butter) 55%); }

.gap-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--butter-soft); border: 1.5px solid #e9cf6a; color: var(--butter-ink); border-radius: var(--r-md); padding: 12px 14px; margin-top: 14px; font-weight: 700; }
.gap-banner .btn { background: var(--ink); border-color: var(--ink); color: #fff; }

.live { border: 2px solid var(--ink); }
.live .share { display: flex; gap: 8px; margin-top: 12px; }
.live .share input { flex: 1; font-size: .95rem; }

.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 2px 4px; }
.stat { display: flex; align-items: baseline; gap: 6px; }
.stat b { font: 800 1.6rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-weight: 700; }

.course-block + .course-block { margin-top: 22px; }
.course-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.course-head h3 { margin: 0; font-size: 1.2rem; }
.course-head .count { color: var(--ink-2); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--wash); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .4s ease; }
.bar.done i { background: var(--basil); }

.dishlist { list-style: none; margin: 0; padding: 0; }
.dish { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dish.mine { background: linear-gradient(90deg, var(--butter-soft), transparent 70%); border-radius: var(--r-sm); padding-left: 10px; }
.dish .body { flex: 1; min-width: 0; }
.dish .name { font: 700 1.08rem/1.3 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dish .by { color: var(--muted); font-size: .9rem; }
.dish .x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; width: 44px; height: 44px; margin: -6px -6px -6px 0; border-radius: var(--r-sm); flex: none; }
.dish .x:hover { background: var(--red-soft); color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--basil-soft); color: var(--basil); }
.tag.warn { background: var(--butter-soft); color: var(--butter-ink); }
.open {
  display: block; width: 100%; text-align: left; padding: 12px 10px; min-height: 46px; border: 0; border-bottom: 1.5px dashed var(--line-strong);
  background: transparent; color: var(--ink-2); font-weight: 700; cursor: pointer; border-radius: 0;
}
.open:hover { color: var(--red); background: rgba(194, 51, 27, .04); }

.suggest { display: grid; gap: 8px; margin: 6px 0 4px; }
.suggest button { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 11px 14px; cursor: pointer; transition: border-color .15s, transform .06s; }
.suggest button:hover { border-color: var(--ink); }
.suggest button:active { transform: scale(.99); }
.suggest b { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.suggest span { font-size: .88rem; color: var(--muted); }

.cov { list-style: none; margin: 0; padding: 0; }
.cov li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cov li:first-child { border-top: 0; padding-top: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.good { background: var(--basil); }
.dot.thin { background: #e2a23b; }
.dot.gap { background: var(--red); }

.guests { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.guests li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; }
.guest-x { margin: 0 !important; width: 40px !important; height: 40px !important; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); }
.guest-x:hover { background: var(--red-soft); color: var(--red); }

.alert { border-radius: var(--r-md); padding: 11px 13px; font-size: .95rem; margin-top: 10px; }
.alert.warn { background: var(--butter-soft); color: var(--butter-ink); }
.alert.err { background: var(--red-soft); color: #8f2312; }
.alert.ok { background: var(--basil-soft); color: var(--basil); }
.alert .row { margin-top: 8px; }

.done-card { border-radius: var(--r-md); padding: 16px; background: var(--basil-soft); border: 1.5px solid #b8d7c1; outline: none; }
.done-card h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--basil); }
.done-card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.done-card li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; }
.done-card li b { font-family: var(--display); font-size: 1.05rem; }
.done-card .row { margin-top: 12px; }
.done-card.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.96); } to { transform: none; } }

details summary { cursor: pointer; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.footer { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 48px; }
.flyer .desc, .event .desc { overflow-wrap: anywhere; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }

/* confetti burst when a dish is signed up (answers the user's action) */
.spark { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 30; animation: spark .8s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ---------- flyer + labels ---------- */
.flyer-page { max-width: 780px; margin: 0 auto; padding: 24px 16px; }
.flyer-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.flyer { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 52px 44px 36px; text-align: center; }
.flyer .kicker { font-weight: 700; color: var(--red); font-size: 1.05rem; margin-top: 4px; }
.flyer h1 { font-size: 3rem; line-height: 1.02; margin: 10px 0 14px; letter-spacing: -0.04em; font-weight: 800; }
.flyer .when { font: 800 1.4rem var(--display); }
.flyer .where { font-size: 1.2rem; color: var(--ink-2); font-weight: 700; margin-top: 2px; }
.flyer .desc { margin: 16px auto 0; max-width: 520px; font-size: 1.08rem; white-space: pre-wrap; }
.flyer .qr { margin: 26px auto 8px; width: 240px; }
.flyer .qr svg { width: 100%; height: auto; display: block; }
.flyer .scan { font: 800 1.25rem var(--display); }
.flyer .url { color: var(--ink-2); font-size: .95rem; margin-top: 6px; overflow-wrap: anywhere; }
.flyer .how { display: flex; justify-content: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; font-weight: 700; }
.paper { margin-top: 26px; text-align: left; border-top: 2px dashed var(--line-strong); padding-top: 16px; }
.paper h2 { font-size: 1.2rem; margin: 0 0 4px; }
.paper .lines div { border-bottom: 1px solid #b9c1ba; height: 34px; }
.labels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label-card { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px; text-align: center; break-inside: avoid; background: #fff; }
.label-card .dn { font: 800 1.45rem/1.15 var(--display); letter-spacing: -0.02em; }
.label-card .tags { justify-content: center; margin-top: 8px; }
.label-card .who { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.label-card .warn { margin-top: 8px; font-weight: 700; color: var(--butter-ink); }

@media print {
  body { background: #fff; }
  .flyer-actions, #toast, .topbar { display: none !important; }
  .flyer-page { padding: 0; max-width: none; }
  .flyer { border: 0; padding: 30px 20px; }
  .flyer h1 { font-size: 3.2rem; }
  .flyer .qr { width: 280px; }
  .gingham::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .label-card { border-color: #999; }
}
#create { scroll-margin-top: 90px; }
.field-row { align-items: end; }
.rot { justify-items: start; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.rot > span { white-space: nowrap; }

/* ---------- menu: one card per course ---------- */
.section-h { font-size: 1.6rem; letter-spacing: -0.03em; margin: 8px 4px 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.course-card { --tint: var(--wash); --tint-ink: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 12px; }
.c-main     { --tint: #fbe3de; --tint-ink: #9e2814; }
.c-side     { --tint: #e3f0e6; --tint-ink: #2e6b45; }
.c-dessert  { --tint: #fff1bf; --tint-ink: #6b4a00; }
.c-drink    { --tint: #e1ecfa; --tint-ink: #1f4f8a; }
.c-supplies { --tint: #eceae4; --tint-ink: #4c4a44; }
.cc-head { display: flex; align-items: center; gap: 10px; }
.cc-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); font-size: 1.25rem; flex: none; }
.cc-head h3 { margin: 0; font-size: 1.2rem; flex: 1; }
.cc-count { font: 800 1.3rem/1 var(--display); color: var(--tint-ink); font-variant-numeric: tabular-nums; }
.cc-count span { font-size: .9rem; color: var(--muted); font-weight: 700; }
.course-card .bar { height: 6px; margin: 12px 0 4px; background: var(--wash); }
.course-card .bar i { background: var(--tint-ink); }
.course-card .bar.done i { background: var(--basil); }
.course-card .dishlist > li + li .dish { border-top: 1px solid var(--line); }
.course-card .dish { border-bottom: 0; padding: 12px 0; }
.course-card .dish.mine { background: var(--butter-soft); border-radius: var(--r-sm); padding: 10px; margin: 4px -4px; border-top: 0 !important; }
.contains { margin-top: 5px; font-size: .88rem; color: var(--butter-ink); font-weight: 700; }
.cc-empty { color: var(--muted); margin: 10px 0 4px; }
.course-card .open { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); margin: 8px 0 6px; text-align: center; padding: 11px; }
.course-card .open:hover { border-color: var(--tint-ink); color: var(--tint-ink); background: var(--tint); }
.cc-done { margin: 8px 0 4px; color: var(--basil); font-weight: 700; font-size: .95rem; }
.course-card.is-full { background: linear-gradient(180deg, #fff 70%, rgba(227, 240, 230, .5)); }
@media (max-width: 880px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } .section-h { margin-top: 4px; } }

/* hero example: the sheet + a separate "neighbor typing" card */
.demo-stack { position: relative; padding-bottom: 8px; }
.typing-card { position: relative; width: 82%; margin: -22px 0 0 -18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; box-shadow: 0 18px 40px -24px rgba(23,35,29,.45); transform: rotate(-1.2deg); z-index: 1; }
.tc-label { font-weight: 700; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.typing-card .demo-typing { margin-top: 0; }
.sheet-demo .ln { min-height: 42px; padding: 9px 2px; }
@media (max-width: 880px) { .typing-card { width: 92%; margin: -14px auto 0; } }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 14px 0 0; min-height: 44px; cursor: pointer; }
label.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.btn.danger { color: var(--red); border-color: #e7a59b; }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
