/* Trench Giving — Thanksgiving table stationery, printed in cranberry on paper */
:root {
  --cranberry: #5a1020;
  --cranberry-2: #6e1a2c;
  --paper: #faf8f7;
  --paper-2: #efe8e5;
  --pumpkin: #f2992e;
  --pumpkin-ink: #2b0810;
  --ink: #5a1020;
  --muted: #7d3442;

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.75rem, 1.4rem + 5vw, 6rem);
  --step-mark: clamp(4.5rem, 2rem + 9vw, 10.5rem);

  --m: 12px;           /* outer margin, used everywhere */
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cranberry);
  color: var(--paper);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 3px; }
::selection { background: var(--pumpkin); color: var(--pumpkin-ink); }

h1, h2, h3 { margin: 0; }
.display, h2, .wordmark {
  font-weight: 800;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.86;
}
h2 { font-size: var(--step-head); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 0; cursor: pointer;
  font-size: var(--step-body); font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn--pumpkin { background: var(--pumpkin); color: var(--pumpkin-ink); }
.btn--pumpkin:hover { background: #f7ab4c; }
.btn--ink { background: var(--cranberry); color: var(--paper); }
.btn--ink:hover { background: var(--cranberry-2); }

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--m);
  padding: var(--m);
  align-items: start;
}
.hero__card {
  background: var(--paper);
  color: var(--ink);
  min-height: calc(100svh - 2 * var(--m));
  display: flex; flex-direction: column;
  text-align: center;
}
.stripe { display: block; width: 100%; height: 56px; color: var(--cranberry); flex: none; }
.hero__nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px;
  padding: 20px 24px 0;
  font-size: 1rem; font-weight: 500;
}
.hero__nav a { padding: 6px 0; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.hero__nav a:hover { text-decoration-color: currentColor; }
.hero__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px clamp(20px, 4vw, 64px) 32px;
}
.mark { width: min(112px, 12svh); height: auto; margin-bottom: 12px; transform-origin: 50% 62%; }
.mark:hover { animation: strut .6s var(--ease); }
@keyframes strut { 30% { transform: rotate(-6deg) scale(1.04); } 60% { transform: rotate(5deg); } }
.wordmark { font-size: min(var(--step-mark), 14svh); line-height: 0.8; }
.hero__line {
  margin: 20px 0 0;
  font-size: var(--step-lead); font-weight: 700; line-height: 1.15;
  max-width: 22ch;
}
.hero__sub { margin: 16px 0 0; max-width: 40ch; color: var(--ink); }
.clock {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--cranberry); color: var(--paper);
  padding: 10px 24px 10px 20px;
}
.clock__label { font-size: var(--step-small); font-weight: 500; line-height: 1.25; max-width: 13ch; }
.clock__time {
  font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62;
  font-size: clamp(3.25rem, 2.6rem + 2.2vw, 4.5rem); line-height: 0.9; min-width: 2.4em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ca { margin: 14px 0 0; font-size: var(--step-small); color: var(--muted); word-break: break-all; }

.hero__room {
  position: sticky; top: var(--m);
  margin: 0;
  height: calc(100svh - 2 * var(--m));
  overflow: hidden;
  background: var(--cranberry-2);
}
.hero__room img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}

/* ================= TABLE (showcase) ================= */
.table {
  margin-top: var(--gap);
  background: var(--pumpkin);
  color: var(--pumpkin-ink);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 88svh;
}
.table__plate {
  position: relative;
  align-self: center;
  margin: 40px;
  aspect-ratio: 1;
}
.table__plate img { width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; inset: 7%; width: 86%; height: 86%; transform: rotate(-90deg); pointer-events: none; }
.ring circle { fill: none; stroke-width: 1.6; }
.ring__track { stroke: rgba(110,26,44,.18); }
.ring__fill { stroke: var(--cranberry); stroke-dasharray: 100 100; stroke-dashoffset: 0; stroke-linecap: butt; transition: stroke-dashoffset 1s linear; }
.plate__caption {
  position: absolute; left: 0; bottom: 0; margin: 0;
  background: var(--cranberry); color: var(--paper);
  padding: 10px 16px; font-size: var(--step-small); font-weight: 500;
}
.plate__caption span { font-variant-numeric: tabular-nums; font-weight: 700; }

.table__info {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 48px 40px 40px 0;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.tabs button {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-size: 1.125rem; font-weight: 500; color: var(--pumpkin-ink);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 3px;
  transition: text-decoration-color .2s;
}
.tabs button:hover { text-decoration-color: rgba(43,8,16,.35); }
.tabs button[aria-selected="true"] { font-weight: 800; text-decoration-color: var(--pumpkin-ink); }
.table__text h2 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.table__note { margin: 20px 0 0; max-width: 40ch; }
.seats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.seats li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: rgba(251,247,244,.42);
  padding: 12px 16px;
}
.seats a { font-weight: 700; font-size: 1.125rem; line-height: 1.25; text-decoration: none; }
.seats a:hover { text-decoration: underline; text-underline-offset: 3px; }
.seats span { font-size: var(--step-small); white-space: nowrap; }
.seats.is-flipping li { animation: seat .5s var(--ease) both; }
.seats.is-flipping li:nth-child(2) { animation-delay: .06s; }
.seats.is-flipping li:nth-child(3) { animation-delay: .12s; }
.seats.is-flipping li:nth-child(4) { animation-delay: .18s; }
.seats.is-flipping li:nth-child(5) { animation-delay: .24s; }
@keyframes seat { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  display: flex; align-items: center; padding: 0 20px; min-height: 72px;
  font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease), background-color .2s;
}
.cell:active { transform: translateY(2px); }
.cell--ink { background: var(--cranberry); color: var(--paper); }
.cell--ink:hover { background: var(--cranberry-2); }
.cell--soft { background: #f6b261; color: var(--pumpkin-ink); }
.cell--soft:hover { background: #f9c07a; }

/* ================= MENU (list) ================= */
.menu { margin-top: var(--gap); padding: 0 var(--m); display: flex; justify-content: center; }
.sheet {
  --sc: 14px;
  width: min(100%, 720px);
  background: var(--paper); color: var(--ink);
  padding: 72px 64px 64px;
  text-align: center;
  /* scalloped top and bottom edges */
  -webkit-mask:
    radial-gradient(var(--sc) at 50% var(--sc), #000 98%, #0000) 50% 0 / calc(2 * var(--sc)) calc(2 * var(--sc)) repeat-x, /* taste-skill-ignore: shape mask, not a colour fill */
    radial-gradient(var(--sc) at 50% calc(100% - var(--sc)), #000 98%, #0000) 50% 100% / calc(2 * var(--sc)) calc(2 * var(--sc)) repeat-x, /* taste-skill-ignore: shape mask, not a colour fill */
    linear-gradient(#000 0 0) 0 var(--sc) / 100% calc(100% - 2 * var(--sc)) no-repeat; /* taste-skill-ignore: shape mask, not a colour fill */
          mask:
    radial-gradient(var(--sc) at 50% var(--sc), #000 98%, #0000) 50% 0 / calc(2 * var(--sc)) calc(2 * var(--sc)) repeat-x, /* taste-skill-ignore: shape mask, not a colour fill */
    radial-gradient(var(--sc) at 50% calc(100% - var(--sc)), #000 98%, #0000) 50% 100% / calc(2 * var(--sc)) calc(2 * var(--sc)) repeat-x, /* taste-skill-ignore: shape mask, not a colour fill */
    linear-gradient(#000 0 0) 0 var(--sc) / 100% calc(100% - 2 * var(--sc)) no-repeat; /* taste-skill-ignore: shape mask, not a colour fill */
}
.sheet h2 { font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.75rem); }
.sheet__note { margin: 16px auto 0; max-width: 44ch; color: var(--muted); }
.find { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 36px auto 0; max-width: 420px; font-weight: 600; }
.find input {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; font-weight: 400; font-size: var(--step-body); color: var(--ink);
  background: var(--paper-2); border: 0; border-radius: 0;
}
.find input::placeholder { color: var(--muted); opacity: 1; }
.sheet__scroll {
  margin: 32px auto 0; max-width: 520px;
  text-align: left;
}
.group + .group { margin-top: 48px; }
.group h3 { text-align: center; font-size: 1.375rem; font-weight: 800; line-height: 1.2; margin-bottom: 18px; padding: 6px 0; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 8px 4px; }
.dish + .dish { margin-top: 8px; }
.dish a { font-weight: 600; line-height: 1.3; text-decoration: none; }
.dish a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dish .when { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.dish .where { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); }
.dish.is-now { background: var(--pumpkin); color: var(--pumpkin-ink); }
.dish.is-now .where { color: var(--pumpkin-ink); }
.sheet__empty { margin: 24px 0 0; }
.sheet__foot { margin: 48px 0 0; color: var(--muted); }
.more { margin: 32px auto 0; }
.sheet__scroll.is-collapsed .dish:nth-of-type(n+5), .dish[hidden], .group[hidden], .more[hidden] { display: none; }

/* ================= HOW (receipt) ================= */
.how {
  margin-top: var(--gap);
  background: var(--paper-2); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: clamp(64px, 8vw, 120px) clamp(16px, 4vw, 56px);
}
.how__text { grid-column: 1 / 6; }
.how__text h2 { font-size: clamp(3rem, 1.8rem + 4.4vw, 6rem); }
.how__text > p { margin: 24px 0 0; max-width: 34ch; }
.how__photo { margin: 40px 0 0; }
.how__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.how__photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

.slip {
  grid-column: 7 / 12;
  align-self: start;
  background: #ffffff;
  padding: 36px 32px 56px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px),
    96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.slip__head { margin: 0; text-align: center; font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.slip h3 { font-size: 1rem; font-weight: 800; margin-top: 28px; }
.row { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; }
.row span:first-child { flex: 0 1 auto; }
.row span:last-child { flex: none; font-weight: 600; text-align: right; }
.row i {
  flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; transform: translateY(3px);
  background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) 0 50% / 8px 4px repeat-x; /* taste-skill-ignore: shape mask, not a colour fill */
}
.row--total {
  margin: 32px -32px 0; padding: 0 32px; min-height: 48px; align-items: center; justify-content: space-between;
  background: var(--cranberry); color: var(--paper); font-weight: 700;
}

/* ================= FAQ (index cards) ================= */
.faq { padding: var(--gap) var(--m) 0; }
.faq h2 { text-align: center; font-size: clamp(3rem, 1.8rem + 4.4vw, 6rem); max-width: 14ch; margin: 0 auto; }
.cards { max-width: 900px; margin: 56px auto 0; }
.card {
  --tab-w: 200px;
  --c-bg: var(--paper); --c-ink: var(--ink);
  position: relative;
  margin-top: -14px;
}
.card:nth-child(3n+2) { --c-bg: var(--pumpkin); --c-ink: var(--pumpkin-ink); }
.card:nth-child(3n+3) { --c-bg: var(--paper-2); --c-ink: var(--ink); }
.card:first-child { margin-top: 0; }
.card__head {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: none; padding: 0;
  color: var(--c-ink);
}
.card__tab {
  display: inline-flex; align-items: center;
  margin-left: calc(var(--i) * min(120px, (100% - var(--tab-w)) / 5));
  width: var(--tab-w); height: 40px; padding: 0 18px;
  background: var(--c-bg); font-size: 1rem; font-weight: 600;
  clip-path: polygon(0 100%, 10px 0, calc(100% - 10px) 0, 100% 100%);
}
.card__q {
  display: block; background: var(--c-bg);
  padding: 18px 24px 30px; font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  transition: padding .25s var(--ease);
}
.card__head:hover .card__q { padding-top: 14px; padding-bottom: 34px; }
.card__a { background: var(--c-bg); color: var(--c-ink); padding: 0 24px 36px; margin-top: -14px; }
.card__a p { margin: 0; max-width: 54ch; font-size: 1.0625rem; }
.card.is-open .card__a { animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ================= FOOTER (back of the postcard) ================= */
.foot { padding: var(--gap) var(--m) var(--m); }
.postcard {
  --sc: 50px;
  max-width: 1120px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px;
  padding: 96px clamp(24px, 5vw, 64px) 32px;
  -webkit-mask:
    radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--sc)) 100% repeat-x; /* taste-skill-ignore: shape mask, not a colour fill */
          mask:
    radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--sc)) 100% repeat-x; /* taste-skill-ignore: shape mask, not a colour fill */
}
.postcard__sign { margin: 0; font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .86; }
.postcard__msg p:last-child { margin: 20px 0 0; max-width: 36ch; }
.postcard__addr { position: relative; padding-top: 8px; }
.stamp { position: absolute; top: 0; right: 0; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; outline: 6px solid var(--paper-2); outline-offset: -6px; transform: rotate(3deg); transition: transform .3s var(--ease); }
.stamp:hover { transform: rotate(-2deg) scale(1.04); }
.postcard__addr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1.125rem; font-weight: 600; }
.postcard__addr a { text-decoration: none; }
.postcard__addr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.imprint { grid-column: 1 / -1; max-width: 72ch; justify-self: center; margin: 24px 0 0; text-align: center; font-size: var(--step-small); color: var(--muted); }

/* ================= entrances (only when JS is on) ================= */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ================= phone ================= */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero__room { position: relative; top: 0; order: -1; height: 34svh; }

  .hero__body > .wordmark { font-size: clamp(4rem, 19vw, 7rem); }
  .hero__card { min-height: 0; margin-top: -24px; position: relative; z-index: 1; margin-inline: 12px; }
  .stripe { height: 40px; }
  .hero__body { padding: 32px 20px 40px; }

  .table { grid-template-columns: 1fr; min-height: 0; }
  .table__plate { margin: 16px; }
  .table__info { padding: 8px 16px 16px; gap: 36px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }

  .sheet { padding: 56px 22px 48px; --sc: 10px; }
  .menu { padding: 0 10px; }

  .how { grid-template-columns: 1fr; }
  .how__text, .slip { grid-column: 1 / -1; }
  .slip { margin-top: 48px; padding: 28px 20px 48px; }
  .row--total { margin-inline: -20px; padding-inline: 20px; }

  .card { --tab-w: 128px; }
  .card__tab { margin-left: calc(var(--i) * min(40px, (100% - var(--tab-w)) / 5)); padding: 0 14px; font-size: .9375rem; }
  .card__q { font-size: 1.125rem; padding: 16px 20px 28px; }
  .card__a { padding: 0 20px 28px; }

  .postcard { grid-template-columns: 1fr; --sc: 30px; padding-top: 72px; }
  .stamp { width: 68px; top: -8px; }
  .postcard__addr { padding-top: 0; }
  .postcard__addr ul { padding-right: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* live gifts from the bot */
.given { margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.given[hidden] { display: none; }
.seats .sent { font-weight: 700; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 3px; }
