:root {
  --bg: #dedad3;        /* putty ground */
  --surface: #d3cec6;
  --paper: #eeebe5;     /* the menu card */
  --ink: #0a0a0a;
  --charcoal: #1d1c1a;
  --muted: #4f4b45;
  --accent: #2f6b3a;    /* basil */
  --accent-ink: #ffffff;
  --sheet-1: #2f6b3a;
  --sheet-2: #1d1c1a;
  --sheet-3: #c9c2b6;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --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.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-hero: clamp(2.75rem, 1rem + 6.4vw, 7.5rem);

  --margin: clamp(16px, 2.5vw, 32px);
  --gap: clamp(120px, 14vw, 200px);
  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; margin: 0; color: var(--charcoal); text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.button:hover { background: #24562d; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #2b2a27; }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: #fff; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff; }

/* ---------- hero: the menu card over a dim room ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 64px var(--margin) 72px; overflow: hidden; background: #000; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); transform: scale(1.06); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.card { background: var(--paper); color: var(--ink); }
.hero-card {
  position: relative; width: min(100%, 1040px); min-height: min(64svh, 640px);
  padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.hero-title { font-size: var(--step-hero); line-height: 0.92; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { font-weight: 400; font-size: 0.5em; line-height: 1.1; margin-top: 0.15em; }
.hero-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.hero-facts { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; }
.hero-lead { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; justify-self: end; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-foot a:not(.button) { text-decoration: underline 2px transparent; text-underline-offset: 6px; font-weight: 500; padding: 8px 0; transition: text-decoration-color .2s var(--ease); }
.hero-foot a:not(.button):hover { text-decoration-color: currentColor; }
.hero-caption { position: absolute; left: var(--margin); right: var(--margin); text-align: center; bottom: 20px; color: #e9e4da; font-size: var(--step-small); }

/* ---------- intro: hours as a printed line of times ---------- */
.intro { padding: var(--gap) var(--margin) 0; }
.intro-top { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 24px; }
.intro-top h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.intro-top p { grid-column: 9 / 13; max-width: 34ch; }
.facts { margin: 96px 0 0; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.facts dt { font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.facts dd { margin: 10px 0 0; font-size: var(--step-small); color: var(--muted); }

/* ---------- pasta your way: the live thing ---------- */
.pasta { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.pasta-card { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.pasta-card h2 { font-size: var(--step-head); }
.pasta-note { max-width: 40ch; }
.builder { display: grid; gap: 24px; }
.builder fieldset { border: 0; padding: 0; margin: 0; }
.builder legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 12px 18px; min-height: 48px; background: var(--surface); transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.chips label:hover span { background: #c7c1b7; }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips input:active + span { transform: scale(0.97); }
.ticket { margin-top: 8px; background: var(--accent); color: var(--accent-ink); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; }
.ticket-line { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; grid-column: 1; }
.ticket-price { grid-column: 1; opacity: .9; }
.ticket .button { grid-column: 2; grid-row: 1 / 3; background: var(--paper); color: var(--ink); }
.ticket .button:hover { background: #fff; }
.ticket-line.flash { animation: flash .35s var(--ease); }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pasta-photo { position: relative; min-height: 420px; }
.pasta-photo img { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 40px); object-fit: cover; }
.pasta-photo figcaption { position: absolute; left: 0; bottom: 0; }

/* ---------- the menu: a tall printed sheet ---------- */
.menu { padding: var(--gap) var(--margin) 0; }
.menu-sheet { background: var(--paper); padding: clamp(24px, 4.4vw, 72px); }
.menu-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 72px; }
.menu-head h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.menu-head p { grid-column: 9 / 13; color: var(--muted); }
.menu-cols { columns: 3 300px; column-gap: clamp(32px, 4vw, 64px); }
.menu-group, .menu-plate { break-inside: avoid; margin-bottom: 104px; }
.menu-group h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); margin-bottom: 20px; }
.menu-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.menu-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.menu-group li span { display: flex; flex-direction: column; }
.menu-group small { font-size: var(--step-small); color: var(--muted); line-height: 1.35; margin-top: 2px; }
.menu-group b { font-weight: 500; font-variant-numeric: tabular-nums; }
.menu-aside { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.menu-plate img { width: 100%; }

/* ---------- catering: stacking colour sheets ---------- */
.catering { padding: var(--gap) var(--margin) 0; }
.catering > h2 { font-size: var(--step-head); margin-bottom: 48px; }
.sheet {
  padding: 0 clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 112px auto auto; gap: 0 24px;
}
.sheet-1 { background: var(--sheet-1); color: #fff; }
.sheet-2 { background: var(--sheet-2); color: #eeebe5; }
.sheet-3 { background: var(--sheet-3); color: var(--ink); }
.sheet h3 { grid-column: 1 / -1; align-self: center; color: inherit; font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); }
.sheet p { grid-column: 1 / 6; grid-row: 2; align-self: start; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.sheet .tray-list { grid-column: 7 / 13; grid-row: 2 / 4; align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tray-list li { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-lead); line-height: 1.25; }
.tray-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tray-list b::before { content: "$"; }
.sheet-3 .button { grid-column: 1 / 6; grid-row: 3; align-self: start; justify-self: start; margin-top: 32px; background: var(--ink); color: var(--paper); }

/* ---------- story: the letter with a tipped-in plate ---------- */
.story { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.letter {
  grid-column: 2 / 8; background: var(--paper); padding: clamp(28px, 4vw, 60px) clamp(24px, 4vw, 60px) 56px; display: grid; gap: 22px;
  position: relative; margin-bottom: 20px;
}
.letter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 0a20 20 0 0 0 40 0z' fill='%23eeebe5'/%3E%3C/svg%3E") 0 0 / 40px 20px repeat-x; }
.letter h2 { font-size: var(--step-head); margin-bottom: 8px; }
.letter p { max-width: 52ch; }
.sign { margin-top: 12px; font-size: 1.375rem; font-weight: 500; line-height: 1.2; }
.sign span { font-size: var(--step-small); color: var(--muted); font-weight: 400; }
.story-plate { grid-column: 8 / 13; }
.story-plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- visit: the clip-out coupon ---------- */
.visit { padding: var(--gap) var(--margin) 0; }
.coupon {
  position: relative; width: min(100%, 1120px); margin: 0 auto; background: var(--charcoal); color: var(--paper);
  display: grid; grid-template-columns: 46% 54%; min-height: 420px;
}
.coupon::before, .coupon::after { content: ""; position: absolute; left: 46%; width: 28px; height: 28px; margin-left: -14px; background: var(--bg); border-radius: 50%; }
.coupon::before { top: -14px; }
.coupon::after { bottom: -14px; }
.coupon-left { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coupon-left h2 { color: var(--paper); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.coupon-left p { max-width: 36ch; }
.coupon-right { padding: 48px; border-left: 5px dotted var(--bg); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.coupon-addr { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.coupon-hours { margin-bottom: 12px; }
.coupon-right .button { width: 100%; min-height: 56px; }
.coupon-right .button-dark { background: var(--accent); }
.coupon-right .button-dark:hover { background: #24562d; }

/* ---------- footer: the back of the postcard ---------- */
.postcard { padding: var(--gap) var(--margin) var(--margin); }
.postcard-panel {
  position: relative; width: min(100%, 1120px); margin: 0 auto; background: var(--paper);
  padding: clamp(48px, 5vw, 72px) clamp(24px, 4vw, 56px) 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 5vw, 80px);
  margin-top: 24px;
}
.postcard-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='24'%3E%3Cpath d='M0 24a45 24 0 0 1 90 0z' fill='%23eeebe5'/%3E%3C/svg%3E") 0 0 / 90px 24px repeat-x; }
.postcard-sign { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
.postcard-msg p:not(.postcard-sign) { max-width: 40ch; }
.postcard-addr { position: relative; display: flex; flex-direction: column; gap: 12px; font-size: 1.125rem; padding-right: 110px; min-height: 140px; }
.postcard-addr a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.postcard-addr a:hover { color: var(--accent); }
.stamp { position: absolute; top: 0; right: 0; width: 88px; padding: 6px; background: var(--surface); transform: rotate(3deg); transition: transform .3s var(--ease); }
.stamp:hover { transform: rotate(0); }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; }
.credits { grid-column: 1 / -1; font-size: var(--step-small); color: var(--ink); }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--muted); }

/* ---------- motion: entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .sheet { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .sheet.in { opacity: 1; transform: none; }
.js .hero-card > * { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) forwards; }
.js .hero-card > :nth-child(2) { animation-delay: .12s; }
.js .hero-card > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; transform: none; }
  .js .reveal, .js .sheet, .js .hero-card > * { opacity: 1; transform: none; transition: none; animation: none; }
  .button, .chips span, .stamp { transition: none; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 900px) {
  .pasta { grid-template-columns: 1fr; }
  .pasta-photo { min-height: 0; }
  .pasta-photo img, .pasta-photo figcaption { position: static; height: auto; }
  .pasta-photo img { aspect-ratio: 4 / 3; }
  .story { grid-template-columns: 1fr; }
  .letter, .story-plate { grid-column: 1; }
  .story-plate { max-width: 520px; }
  .intro-top h2 { grid-column: 1 / -1; }
  .intro-top p { grid-column: 1 / -1; }
  .menu-head h2, .menu-head p { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .intro-top p, .pasta-note, figcaption, .menu-head p { max-width: none; }
}
@media (max-width: 640px) {
  .intro, .catering > h2, figcaption, .hero-caption { padding-inline: 24px; }
  .intro { padding-inline: calc(var(--margin) + 24px); }
  .hero { padding: 16px var(--margin) 56px; align-items: center; }
  .hero-card { min-height: 72svh; gap: 28px; }
  .hero-title { font-size: 16vw; }
  .hero-title span:nth-child(2) { font-size: 0.48em; }
  .hero-body { grid-template-columns: 1fr; gap: 20px; }
  .hero-lead { justify-self: start; }
  .hero-foot { justify-content: flex-start; gap: 4px 20px; }
  .hero-foot .button { order: 9; width: 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 56px; }
  .facts dt { font-size: 1.625rem; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .button { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .menu-head { margin-bottom: 48px; }
  .menu-group, .menu-plate { margin-bottom: 64px; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: 64px auto auto; min-height: 0; gap: 20px; padding-bottom: 28px; }
  .sheet h3 { font-size: 1.375rem; }
  .sheet p, .sheet .tray-list, .sheet-3 .button { grid-column: 1; grid-row: auto; }
  .tray-list li { font-size: 1.0625rem; }
  .sheet-3 .button { margin: 0; width: 100%; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: 50%; margin: -14px 0 0; }
  .coupon::before { left: -14px; }
  .coupon::after { right: -14px; bottom: auto; }
  .coupon-left, .coupon-right { padding: 28px 24px; }
  .coupon-right { border-left: 0; border-top: 5px dotted var(--bg); }
  .postcard-panel { grid-template-columns: 1fr; }
  .postcard-addr { padding-right: 80px; }
  .stamp { width: 64px; }
}
