/* Venuely — the page as the invitation card and its stationery. */

:root {
  /* colour: paper, ink and the ground the paper sits on (brand) */
  --ground: #7b2d5b;          /* plum */
  --ground-deep: #5e2045;
  --ink: #2a0f20;
  --paper: #f8f5f6;
  --paper-tone: #efe6eb;      /* one step off the paper */
  --muted: #5d4a56;           /* soft ink, 4.5:1+ on paper */
  --accent: #c8963e;          /* gold: the action */
  --accent-ink: #2a0f20;
  --on-ground: #f8f5f6;

  /* type */
  --display: "Rokkitt", "Arial Narrow", sans-serif;
  --text: "Literata", Georgia, serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.15vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.4rem + 3.2vw, 4.25rem);
  --step-display: clamp(2.75rem, 1.6rem + 3.6vw, 4.75rem);

  /* frame */
  --margin: clamp(12px, 2.2vw, 32px);
  --gap: 12px;
  --section: clamp(64px, 8vw, 120px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---- buttons: one shape, square ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 var(--step-body)/1 var(--text); text-decoration: none;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d9a650; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--paper-tone); }

/* ---- the stripe (from the invitation's ribbon) ---- */
.stripe {
  height: 56px;
  /* a row of filled bars: plum, paper, plum… */
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='8'%3E%3Crect width='28' height='8' fill='%237b2d5b'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 100%;
}

/* ================= HERO ================= */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding: var(--gap); min-height: 100svh;
}
.card { background: var(--paper); }
.hero-card { display: flex; flex-direction: column; min-height: calc(100svh - 2 * var(--gap)); }
.hero-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px clamp(20px, 4vw, 64px);
}
.wordmark {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--step-head); line-height: 1; letter-spacing: 0.02em; color: var(--ground);
}
.hero h1 {
  margin-top: 40px; font-size: var(--step-display); color: var(--ink);
}
.hero .lead { margin-top: 36px; font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; }
.hero .btn { margin-top: 40px; }
.hero-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 0 24px 28px; font-size: var(--step-small);
}
.hero-links a { padding: 6px 0; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms; }
.hero-links a:hover { text-decoration-color: var(--ground); }

.hero-photo { position: sticky; top: var(--gap); margin: 0; height: calc(100svh - 2 * var(--gap)); overflow: hidden; background: var(--ground-deep); }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.06);
  animation: drift 24s ease-in-out infinite alternate;
}
.hero-photo img.is-on { opacity: 1; }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ================= SHOWCASE: price check ================= */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 88svh; background: var(--paper-tone); margin-top: var(--section);
  padding: 0 var(--margin);
}
.calc {
  aspect-ratio: 1 / 1; margin: 40px; background: var(--paper);
  display: flex; flex-direction: column; padding: clamp(20px, 3vw, 40px); gap: 18px;
  font-variant-numeric: tabular-nums;
}
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-lead); color: var(--ground); }
.calc-note { font-size: var(--step-small); color: var(--muted); }
.calc-guests { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc-guests label { font-weight: 600; }
.stepper { display: flex; align-items: stretch; }
.stepper button {
  width: 48px; border: 0; background: var(--ground); color: var(--paper);
  font: 600 1.4rem/1 var(--text); cursor: pointer; transition: background-color 140ms;
}
.stepper button:hover { background: var(--ground-deep); }
.stepper button:active { transform: scale(0.96); }
.stepper input {
  width: 5.5ch; border: 0; background: var(--paper-tone); text-align: center;
  font: 600 var(--step-lead)/1 var(--text); color: var(--ink); padding: 10px 4px; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-range { width: 100%; accent-color: var(--ground); height: 28px; }
.calc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.calc-list li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 14px 16px; background: var(--paper-tone);
  transition: background-color 200ms;
}
.calc-list li:hover { background: #e8d9e1; }
.v-name { font-weight: 600; }
.v-area { grid-column: 1; font-size: var(--step-small); color: var(--muted); }
.v-total { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 600; color: var(--ground); }
.v-total small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.calc-list li.is-out .v-total { color: var(--muted); font-weight: 400; font-size: var(--step-small); }

.showcase-text {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 64px clamp(20px, 3vw, 48px); min-height: 70svh;
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tabs button {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: 400 var(--step-body)/1.3 var(--text); color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
.tabs button:hover { color: var(--ink); }
.showcase h2 { font-size: var(--step-head); max-width: 11em; }
.showcase-text p { margin-top: 32px; max-width: 34ch; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cell {
  display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px; text-align: center;
  text-decoration: none; font-weight: 600; transition: transform 160ms var(--ease), background-color 160ms;
}
.cell:hover { transform: translateY(-2px); }
.cell-ink { background: var(--ink); color: var(--paper); }
.cell-tone { background: var(--paper); color: var(--ink); }

/* ================= MENU ================= */
.menu-section {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: var(--section) var(--margin) 0; align-items: start;
}
.menu-sheet {
  grid-column: 1 / span 6; background: var(--paper); padding: 72px clamp(20px, 3vw, 48px);
  clip-path: polygon(
    0 12px, 4% 0, 8% 12px, 12% 0, 16% 12px, 20% 0, 24% 12px, 28% 0, 32% 12px, 36% 0, 40% 12px, 44% 0, 48% 12px, 52% 0, 56% 12px, 60% 0, 64% 12px, 68% 0, 72% 12px, 76% 0, 80% 12px, 84% 0, 88% 12px, 92% 0, 96% 12px, 100% 0,
    100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%
  );
}
.menu-sheet h2 { text-align: center; font-size: var(--step-head); color: var(--ground); margin-bottom: 40px; }
.menu-group + .menu-group { margin-top: 44px; }
.menu-group h3 { font-size: var(--step-lead); line-height: 1; margin-bottom: 14px; color: var(--ink); }
.menu-group dl { margin: 0; }
.item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 8px; }
.item + .item { margin-top: 18px; }
.item dt { font-weight: 600; }
.item::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 4px dotted var(--ground); transform: translateY(-4px); }
.item dd { grid-column: 3; grid-row: 1; margin: 0; font-variant-numeric: tabular-nums; color: var(--ground); font-weight: 600; text-align: right; }
.item p { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); max-width: 40ch; margin-top: 2px; }
.menu-foot { margin-top: 44px; text-align: center; font-size: var(--step-small); color: var(--muted); }

.plates { grid-column: 7 / span 5; display: grid; gap: 40px; padding-top: 48px; }
.plate { margin: 0; }
.plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.plate:nth-child(2) { margin-left: 22%; }

/* ================= HOW ================= */
.how {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: var(--section) var(--margin); align-items: start;
}
.how-text { grid-column: 1 / span 5; color: var(--on-ground); position: sticky; top: 64px; }
.how-text h2 { font-size: var(--step-head); }
.how-text p { margin-top: 36px; max-width: 34ch; }
.slip {
  grid-column: 7 / span 6; background: var(--paper); padding: 40px clamp(20px, 3vw, 40px) 64px;
  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 h3 { font-family: var(--text); text-transform: none; font-weight: 600; font-size: var(--step-body); line-height: 1.3; letter-spacing: 0; }
.slip h3 + ol { margin-top: 10px; }
.slip ol + h3 { margin-top: 28px; }
.slip ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.slip li, .slip-total { display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; align-items: baseline; }
.slip li::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 4px dotted var(--ground); transform: translateY(-4px); }
.slip li span:last-child { grid-column: 3; color: var(--muted); white-space: nowrap; }
.slip-total { margin-top: 32px; background: var(--ink); color: var(--paper); min-height: 44px; padding: 10px 14px; font-weight: 600; grid-template-columns: 1fr auto; }

/* ================= BUSINESS ================= */
.business { background: var(--ground-deep); color: var(--on-ground); padding: var(--section) var(--margin); }
.blank-form h2 {
  font-size: var(--step-display); line-height: 1.02; max-width: 12em;
}
.blank-form input {
  font: inherit; text-transform: none; letter-spacing: inherit; width: 8.6em; height: 1em;
  vertical-align: baseline; border: 0; background: var(--paper); color: var(--ink); padding: 0 0.15em;
}
.blank-form input::placeholder { color: #8a7682; text-transform: uppercase; }
.blank-form button {
  font: inherit; text-transform: inherit; letter-spacing: inherit; line-height: 1; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); padding: 0 0.15em; height: 1em; vertical-align: baseline;
  transition: background-color 160ms, transform 160ms var(--ease);
}
.blank-form button:hover { background: #d9a650; transform: translateY(-3px); }
.blank-form p { margin-top: 32px; max-width: 52ch; }
.business-roles {
  margin-top: var(--section); display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap);
}
.role:first-child { grid-row: span 2; display: grid; grid-template-rows: 1fr auto; }
.role:first-child img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.role { margin: 0; background: var(--ground); }
.role img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.role figcaption { padding: 20px; }
.role strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-lead); line-height: 1; margin-bottom: 8px; }
.get-app { grid-column: 2 / span 2; background: var(--paper); color: var(--ink); padding: 28px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 32px; }
.get-app h3, .get-app p { grid-column: 1; }
.get-app h3 { font-size: var(--step-lead); color: var(--ground); }
.get-app-links { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 10px; }

/* ================= FAQ ================= */
.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: var(--section) var(--margin); background: var(--paper); color: var(--ink);
}
.faq h2 { grid-column: 1 / span 3; font-size: var(--step-head); color: var(--ground); }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 56px; line-height: 1.55; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; }
.faq-text strong { font-weight: 600; }

/* ================= CONTACT ================= */
.contact { padding: var(--section) var(--margin); background: var(--paper); }
.coupon {
  display: grid; grid-template-columns: 46fr 54fr; max-width: 1180px; margin: 0 auto;
  background: var(--ground); color: var(--on-ground); min-height: 420px;
  --n: 14px;
  /* taste-skill-ignore: masks cut the coupon's two semicircular notches; nothing is filled with a gradient */
  -webkit-mask: radial-gradient(circle var(--n) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore */
                radial-gradient(circle var(--n) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore */
          mask: radial-gradient(circle var(--n) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore */
                radial-gradient(circle var(--n) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore */
}
.coupon-left { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 5px dotted var(--paper); }
.coupon-left h2 { font-size: var(--step-head); max-width: 8em; }
.coupon-right { padding: 48px; display: grid; gap: 10px; align-content: center; }
.coupon input {
  height: 52px; border: 0; padding: 0 16px; background: #9a4b78; color: var(--paper);
  font: 400 1rem/1 var(--text);
}
.coupon input::placeholder { color: #f3e3ec; }
.coupon input:focus { background: #a8598a; }
.coupon button {
  height: 56px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
  font: 600 var(--step-body)/1 var(--text); transition: background-color 160ms, transform 160ms var(--ease);
}
.coupon button:hover { background: #000; transform: translateY(-2px); }

/* ================= FOOTER ================= */
.stripe-thin { height: 8px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='8'%3E%3Crect width='28' height='8' fill='%23c8963e'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 100%; }
.footer {
  background: var(--ink); color: var(--paper); min-height: 80svh;
  display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--margin) 20px;
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--step-small); }
.foot-cols p { color: #cdb9c5; line-height: 1.7; }
.foot-cols p.first { color: var(--paper); font-weight: 600; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
.foot-mark { grid-row: 3; width: 100%; height: auto; display: block; }
.foot-mark text { font-family: var(--display); font-weight: 800; font-size: 238px; fill: var(--paper); }
.legal { grid-row: 4; margin-top: 20px; font-size: var(--step-small); color: #cdb9c5; }
.legal a { color: var(--paper); }

/* ================= motion: entrances ================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; transform: none; transition: none; }
}

/* ================= tablet ================= */
@media (max-width: 1000px) {
  .menu-sheet { grid-column: 1 / span 7; }
  .plates { grid-column: 8 / span 5; }
  .slip { grid-column: 6 / span 7; }
  .business-roles { grid-template-columns: 1fr; }
  .role, .role:first-child { grid-row: auto; display: grid; grid-template-columns: 40% 1fr; grid-template-rows: none; align-items: center; }
  .role:first-child img, .role img { min-height: 0; height: 100%; aspect-ratio: 4 / 3; }
  .get-app { grid-column: 1; }
  .menu-sheet { grid-column: 1 / -1; }
  .plates { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding-top: 0; }
  .plate:nth-child(2) { margin-left: 0; }
  .how-text { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .slip { grid-column: 1 / -1; }
  .faq h2 { grid-column: 1 / -1; }
  .faq-text { grid-column: 1 / -1; }
}

/* ================= phone ================= */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { position: relative; top: 0; order: -1; height: 48svh; }
  .hero-card { min-height: 0; margin-top: -24px; position: relative; z-index: 1; }
  .stripe { height: 40px; }
  .hero h1 { font-size: 11vw; }
  .hero { padding: 16px; }

  .showcase { grid-template-columns: 1fr; min-height: 0; padding: 48px 16px; }
  .calc { margin: 0; aspect-ratio: auto; }
  .showcase-text { padding: 40px 0 0; min-height: 0; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }

  :root { --margin: 16px; }
  .menu-section, .how, .faq { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .menu-sheet, .plates, .how-text, .slip, .faq h2, .faq-text { grid-column: 1; }
  .menu-sheet { padding: 56px 20px; }
  .item { grid-template-columns: 1fr auto; }
  .item::after { display: none; }
  .item dd { grid-column: 2; white-space: nowrap; font-size: var(--step-small); }
  .plates { grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 24px; }
  .plates .plate:nth-child(2) { margin-left: 0; }
  .plates .plate:nth-child(3) { grid-column: 1 / -1; }
  .plates .plate:nth-child(3) img { aspect-ratio: 16 / 9; }
  .how-text { position: static; margin-bottom: 32px; }
  .faq-text { columns: 1; }

  .blank-form h2 { font-size: 11vw; }
  .blank-form input { display: block; width: 100%; height: 1.1em; margin: 0.12em 0; }
  .business-roles { grid-template-columns: 1fr; }

  .contact { padding: 72px 16px; }
  .role, .role:first-child { grid-template-columns: 1fr; }
  .get-app { grid-template-columns: 1fr; }
  .get-app-links { grid-column: 1; grid-row: auto; }
  .plates { grid-template-columns: 1fr 1fr; }
  .footer { min-height: 0; grid-template-rows: auto 20svh auto; }
  .coupon { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .coupon-left { border-right: 0; border-bottom: 5px dotted var(--paper); padding: 32px 24px; }
  .coupon-right { padding: 24px; }
  .coupon input, .coupon button { height: 54px; }

  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ================= legal pages ================= */
.legal-page { padding: var(--margin); }
.doc { max-width: 820px; margin: 0 auto; background: var(--paper); }
.doc .stripe { height: 40px; }
.doc-body { padding: clamp(28px, 5vw, 72px); }
.doc-back a { text-decoration: none; font-size: var(--step-small); }
.doc-back a:hover { text-decoration: underline; }
.doc h1 { margin-top: 32px; font-size: var(--step-head); color: var(--ground); }
.doc-draft { margin-top: 24px; padding: 14px 18px; background: var(--paper-tone); font-size: var(--step-small); }
.doc h2 { margin-top: 48px; font-size: var(--step-lead); line-height: 1; }
.doc p, .doc ul { margin-top: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
