:root {
  --paper: #fbf5e9;
  --table: #e9dcc3;
  --ink: #3a2a1f;
  --soft: #7a6654;
  --pumpkin: #b9541f;
  --cranberry: #8f2437;
  --sage: #5c6b3c;
  --rule: #d9c7a6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 16px 10px 48px;
  background: var(--table);
  color: var(--ink);
  font: 17px/1.45 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
.card {
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 18px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: -7px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgb(58 42 31 / 18%);
}
header { text-align: center; position: relative; padding: 6px 8px 4px; }
.eyebrow {
  margin: 0;
  color: var(--pumpkin);
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
h1 { margin: 10px 0 2px; font-size: clamp(30px, 8.4vw, 52px); font-style: italic; font-weight: 400; line-height: 1.08; }
.turkey {
  border: 0;
  background: none;
  font-size: 44px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
}
.turkey.gobble { animation: gobble 1.6s ease-in-out; }
.turkey.gobble::after {
  content: attr(data-says);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px/1.4 system-ui, sans-serif;
}
@keyframes gobble {
  0%, 100% { transform: none; }
  15% { transform: rotate(-14deg) translateY(-6px); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-10deg) translateY(-4px); }
  60% { transform: rotate(8deg); }
}
.when { margin: 4px 0 0; font-size: 19px; text-wrap: balance; }
.note { margin: 6px auto 0; max-width: 34em; color: var(--soft); }
.countdown { margin: 8px 0 0; color: var(--sage); font-style: italic; }
.when:empty, .note:empty, .countdown:empty, .wisdom:empty { display: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.details { display: grid; gap: 8px; margin: 18px 0 0; grid-template-columns: 1fr; }
.details[hidden] { display: none; }
.courses { margin-top: 18px; }
.course { break-inside: avoid; padding-top: 10px; }
.course h2 {
  margin: 14px 0 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule);
  color: var(--cranberry);
  font-size: 23px;
  font-weight: 400;
  font-style: italic;
}
.aside { margin: 6px 0 0; color: var(--sage); font: italic 15px/1.3 Georgia, serif; }
ul { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
}
.dish { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.claim, .primary {
  flex: none;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--pumpkin);
  color: #fff;
  font: 600 15px/1.2 system-ui, sans-serif;
}
.by {
  flex: 0 1 52%;
  min-width: 0;
  padding: 4px 0 4px 8px;
  border: 0;
  background: none;
  text-align: right;
  overflow-wrap: anywhere;
}
.by b { display: block; color: var(--sage); font: 700 16px/1.25 system-ui, sans-serif; }
.by i, .by span { display: block; color: var(--soft); font-size: 14px; line-height: 1.25; }
.editing .by i, .editing .by span { display: none; }
.gone .dish { text-decoration: line-through; color: var(--soft); }
.tool {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  font: 16px/1 system-ui, sans-serif;
}
.more, .quiet {
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--soft);
  font: 15px/1.3 system-ui, sans-serif;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.quiet[aria-pressed="true"] { color: var(--cranberry); font-weight: 600; }
footer { margin-top: 26px; text-align: center; }
.wisdom { margin: 0 auto 8px; max-width: 30em; color: var(--soft); font-style: italic; }
input, select {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
}
dialog {
  width: min(440px, calc(100vw - 24px));
  padding: 20px 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 50px rgb(58 42 31 / 35%);
}
dialog::backdrop { background: rgb(58 42 31 / 45%); }
dialog h3 { margin: 0 0 12px; font-size: 22px; font-style: italic; font-weight: 400; overflow-wrap: anywhere; }
.fields { display: grid; gap: 10px; }
.error { min-height: 1.3em; margin: 8px 0 0; color: var(--cranberry); font: 600 15px/1.3 system-ui, sans-serif; }
.actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 6px; }
.actions .quiet { margin: 0 auto 0 0; }
.primary { padding: 11px 20px; font-size: 16px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cranberry);
  color: #fff;
  font: 600 15px/1.3 system-ui, sans-serif;
}
.toast[hidden] { display: none; }
.fall {
  position: fixed;
  top: -48px;
  z-index: 10;
  font-size: 30px;
  pointer-events: none;
  animation: fall 2.4s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(112vh) rotate(540deg); opacity: 0.4; }
}
@media (min-width: 760px) {
  body { padding: 36px 20px 64px; }
  .card { padding: 40px 46px 30px; }
  .courses { columns: 2; column-gap: 46px; }
  .details { grid-template-columns: 1fr 1fr; }
  .details button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .turkey.gobble { animation: none; }
}
