:root {
  --bg: #ddd6c6;
  --surface: #d2cab8;
  --paper: #ecebe6;
  --ink: #2a2a26;
  --muted: #59574e;
  --accent: #4f6238;
  --accent-strong: #3c4b2a;
  --accent-ink: #ffffff;
  --field: #3f5a2a;
  --field-ink: #ffffff;

  --font: "Archivo", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --hero-size: clamp(3.5rem, 7vw, 7.5rem);

  --m: clamp(16px, 2vw, 28px);
  --gap: clamp(96px, 11vw, 176px);
  --radius: 14px;
  --button-radius: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
}
html[lang="en"] { --hero-size: clamp(3rem, 5.2vw, 6rem); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, p, dl, dd, figure, ul, address { margin: 0; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 var(--step-body)/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent-strong); } }
.button-block { display: flex; width: 100%; }

/* Top corners */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--m);
}
.wordmark img { width: auto; height: 34px; }
.top-links { display: flex; gap: 24px; font-size: var(--step-body); }
.top-links a { text-decoration-color: currentColor; }

/* Hero: the sentence whose missing word is the breakfast */
.hero {
  min-height: 92svh;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  padding: 96px var(--m) 48px;
}
.hero-line {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-size: var(--hero-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero-strip {
  flex: 1;
  min-width: 30%;
  height: 0.9em;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.hero-strip picture, .hero-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-foot {
  grid-row: 3;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: 72px;
  text-align: center;
}
.hero-support { max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; }
.status { min-height: 1.5em; color: var(--muted); font-size: var(--step-body); }

/* Coupon: three photographs, then the green field */
.coupon { margin-top: 0; }
.coupon-photos { display: grid; grid-template-columns: repeat(3, 1fr); }
.coupon-photos img, .coupon-photos video { display: block; width: 100%; height: 40svh; min-height: 260px; object-fit: cover; }
.coupon-field {
  position: relative;
  min-height: 44svh;
  padding: 56px var(--m) 64px;
  background: var(--field);
  color: var(--field-ink);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.coupon-text { grid-column: 1 / 9; display: grid; gap: 24px; align-content: start; }
.coupon-title { font-size: var(--step-head); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; }
.coupon-statement { font-size: var(--step-lead); line-height: 1.45; max-width: 30em; }
.coupon-link {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .coupon-link:hover { text-decoration-color: var(--bg); } }
.coupon-note { max-width: 60ch; font-size: var(--step-body); line-height: 1.6; margin-top: 8px; }
.coupon-door { grid-column: 10 / 13; align-self: end; justify-self: end; width: min(100%, 220px); }
.coupon-door img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }

/* Menu: heading across, table pushed right */
.menu { margin-top: var(--gap); padding: 0 var(--m); }
.menu-title {
  font-size: var(--step-head);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-indent: 3vw;
  max-width: 14em;
}
.menu-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 96px; }
.menu-photo { grid-column: 1 / 6; align-self: start; position: sticky; top: 48px; }
.menu-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.menu-label { grid-column: 6 / 7; justify-self: end; font-size: var(--step-small); color: var(--muted); padding-top: 4px; }
.menu-table { grid-column: 7 / 13; }
.menu-table table { width: 100%; border-collapse: collapse; }
.menu-table th, .menu-table td { padding: 13px 0; vertical-align: top; text-align: left; font-weight: 400; }
.menu-table tr.group-start th, .menu-table tr.group-start td { padding-top: 44px; }
.kind { width: 22%; color: var(--muted); font-size: var(--step-small); padding-top: 16px !important; }
.menu-table tr.group-start .kind { padding-top: 47px !important; }
.dish-name { display: block; }
.dish-note { display: block; color: var(--muted); font-size: var(--step-small); line-height: 1.45; margin-top: 2px; max-width: 42ch; }
.price { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px !important; }
.menu-note { margin-top: 28px; color: var(--muted); font-size: var(--step-small); }

/* About: wide photo, map tile, facts */
.about { margin-top: var(--gap); padding: 0 var(--m); }
.about-head { max-width: 46rem; }
.about-title { font-size: var(--step-head); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.about-lead { max-width: 60ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.55; }
.about-tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; align-items: start; }
.about-photo { grid-column: 1 / 9; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
.about-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  padding: 20px;
  background: var(--paper);
  font-size: var(--step-body);
  line-height: 1.5;
}
.about-side { grid-column: 9 / 13; display: grid; gap: 24px; }
.about-map { background: var(--field); padding: 12px; aspect-ratio: 4 / 3; }
.about-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { font-size: var(--step-body); line-height: 1.4; margin-top: 2px; }

/* Visit: the card on the riverside photograph */
.visit { position: relative; margin-top: var(--gap); min-height: 100svh; }
.visit-photo { position: absolute; inset: 0; overflow: hidden; }
.visit-photo picture, .visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.visit-card {
  position: sticky;
  top: 60px;
  margin: 0 60px 0 auto;
  translate: 0 60px;
  width: 400px;
  padding: 32px;
  border-radius: 8px;
  background: var(--paper);
  display: grid;
  gap: 18px;
}
.visit-title { font-size: var(--step-lead); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.visit-address { line-height: 1.6; }
.visit-hours { width: 100%; border-collapse: collapse; }
.visit-hours th, .visit-hours td { padding: 6px 0; font-weight: 400; text-align: left; vertical-align: top; }
.visit-hours th { color: var(--muted); padding-right: 12px; }
.visit-hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit-reserve { justify-self: start; text-decoration-color: currentColor; margin-top: 4px; }
.visit-card .button { min-height: 52px; margin-top: 6px; }

/* Footer: the back of the postcard */
.close { background: var(--field); padding: 120px var(--m) 72px; }
.postcard {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 420px;
  padding: 56px clamp(24px, 4vw, 64px) 40px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.scallops { position: absolute; left: 0; bottom: 100%; width: 100%; height: 50px; fill: var(--paper); }
.postcard-message { display: grid; gap: 18px; align-content: start; max-width: 36ch; }
.postcard-title { font-size: var(--step-lead); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.postcard-address { position: relative; padding-top: 140px; }
.stamp { position: absolute; top: 0; right: 0; width: 88px; padding: 6px; background: var(--bg); }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.postcard-links { display: grid; gap: 12px; font-size: var(--step-body); }
.postcard-links a { text-decoration-color: currentColor; }
.imprint { grid-column: 1 / -1; align-self: end; text-align: center; color: var(--muted); font-size: var(--step-small); }

/* The coupon itself, shown to staff */
.ticket {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 20, 16, 0.35); /* taste-skill-ignore: the coupon is a modal dialog that floats */
}
.ticket::backdrop { background: rgba(30, 30, 26, 0.6); }
.ticket-inner { display: grid; gap: 16px; padding: 28px 24px 24px; text-align: center; }
.ticket-logo { width: 200px; margin: 0 auto 4px; }
.ticket-title { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.ticket-rule { font-size: var(--step-body); line-height: 1.55; }
.ticket-live { background: var(--field); color: var(--field-ink); border-radius: 10px; padding: 18px 16px; }
.ticket-date { font-size: var(--step-lead); }
.ticket-time { font-size: 2.75rem; /* the live clock is read across the counter */ line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.ticket.is-used .ticket-live { background: var(--surface); color: var(--ink); }
.ticket-show { font-weight: 500; }
.ticket-valid { color: var(--muted); font-size: var(--step-small); }
.ticket-staff {
  justify-self: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--step-small)/1.2 var(--font);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.ticket-staff:active { transform: scale(0.97); }
.ticket-staff[data-armed] { background: var(--ink); color: var(--paper); }
.ticket-staff[disabled] { display: none; }

/* Phone: its own composition */
@media (max-width: 760px) {
  :root { --hero-size: 17vw; }
  html[lang="en"] { --hero-size: 14.5vw; }
  .wordmark img { height: 28px; }
  .top-links { gap: 18px; }
  .top-links a:first-child { display: none; }
  .hero { min-height: 100svh; padding-top: 88px; grid-template-rows: auto auto; align-content: center; }
  .hero-line { grid-row: 1; flex-wrap: wrap; white-space: normal; gap: 0; }
  .hero-word { flex: 0 0 100%; }
  .hero-strip { flex: 0 0 100%; aspect-ratio: 2 / 1; height: auto; margin: 0.14em 0 0.12em; }
  .hero-foot { grid-row: 2; align-self: start; margin-top: 32px; justify-items: stretch; text-align: left; gap: 16px; }
  .hero-foot .button { width: 100%; }
  .hero-support { font-size: 1.125rem; }

  .coupon { margin-top: 24px; }
  .coupon-photos { grid-template-columns: 1fr 1fr; }
  .coupon-photos picture:first-child { grid-column: 1 / -1; }
  .coupon-photos picture:first-child img { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .coupon-photos > :not(:first-child), .coupon-photos picture:not(:first-child) img { height: auto; aspect-ratio: 1; min-height: 0; }
  .coupon-field { display: block; padding: 40px var(--m) 140px; }
  .coupon-text { gap: 18px; }
  .coupon-door { position: absolute; right: var(--m); bottom: 24px; width: 96px; }

  .menu-title { text-indent: 0; }
  .menu-body { display: block; margin-top: 40px; }
  .menu-label { display: none; }
  .menu-table th, .menu-table td { padding: 12px 0; }
  .kind { display: none; }
  .menu-table tr.group-start td { padding-top: 36px; }
  .menu-photo { position: static; width: 60%; margin: 40px 0 0 auto; }

  .about-tiles { display: block; margin-top: 40px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .about-overlay { position: static; width: auto; padding: 16px 0 0; background: none; }
  .about-side { margin-top: 32px; }
  .about-map { aspect-ratio: 3 / 2; }

  .visit { min-height: 0; display: grid; }
  .visit-photo { position: relative; height: 70svh; }
  .visit-card { position: relative; top: auto; translate: none; margin: -80px var(--m) 0; width: auto; padding: 28px 20px 20px; }
  .visit-card .button { min-height: 56px; }

  .close { padding: 96px var(--m) 40px; margin-top: 0; }
  .postcard { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 28px; }
  .postcard-address { padding-top: 0; }
  .stamp { position: absolute; top: -8px; right: 0; width: 64px; }
  .postcard-message { padding-right: 76px; }
  .postcard-links { font-size: 1.0625rem; }
}

/* Motion: the shutter on the breakfast, entrances, a slow drift on the river */
@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .js .hero-word, .js .hero-foot > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms + 150ms);
  }
  .js .hero.is-in .hero-word, .js .hero.is-in .hero-foot > * { opacity: 1; transform: none; }

  .js [data-reveal] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .visit-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.08; }
    @keyframes drift { from { transform: translateY(-3%); } to { transform: translateY(3%); } }
  }
  .ticket[open] { animation: ticket-in 320ms var(--ease-out); }
  @keyframes ticket-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
}
