:root {
  --cream: #f4eee4;
  --ivory: #fbf7f0;
  --paper: #efe6d6;
  --linen: #e7dcc8;
  --ink: #1a1410;
  --charcoal: #2c241c;
  --muted: #6b5e52;
  --rule: rgba(26, 20, 16, 0.14);
  --gold: #b08d57;
  --gold-soft: #d4c09a;
  --burgundy: #6b2d3c;
  --burgundy-deep: #4c1f2b;
  --olive: #4a5340;
  --steam: rgba(176, 141, 87, 0.28);
  --shadow: 0 24px 60px rgba(26, 20, 16, 0.08);
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  --max: 1120px;
  --narrow: 720px;
  --radius: 2px;
  --focus: 0 0 0 2px var(--ivory), 0 0 0 4px var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, 0.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--burgundy);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin: 0 0 1rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  color: var(--ivory);
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding-inline: 0.4rem;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--burgundy);
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Navbar */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 238, 228, 0.88);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav-links {
  display: none;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--burgundy);
}

.nav-toggle {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-panel {
  display: block;
  border-top: 1px solid var(--rule);
  padding: 1rem 1.25rem 1.4rem;
  background: var(--ivory);
}

.nav-panel a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle,
  .nav-panel {
    display: none !important;
  }
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-brand {
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  font-weight: 500;
}

.hero-tag {
  margin: 1.1rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--charcoal);
}

.hero-support {
  margin: 1.1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

.hero .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.cloche {
  width: min(280px, 70vw);
  margin: 2.6rem auto 0;
  position: relative;
}

.cloche svg {
  overflow: visible;
}

.cloche-glow {
  position: absolute;
  inset: 42% 22% 8%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: shimmer 5.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

/* Menu */

.section {
  padding: 3.5rem 0 5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin: 0;
  font-weight: 500;
}

.menu-sheet,
.hero,
.step,
.dish-hero {
  animation: rise 0.75s ease both;
}

@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

.menu-sheet {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.2rem 2rem;
  box-shadow: var(--shadow);
}

.menu-list {
  display: grid;
  gap: 0;
}

.menu-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.menu-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0;
  font-weight: 500;
}

.menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(26, 20, 16, 0.28);
  transform: translateY(-0.35rem);
}

.menu-price {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.menu-desc {
  margin: 0;
  font-style: italic;
  color: var(--charcoal);
}

.menu-funny {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.menu-cta {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.menu-item:hover h3 {
  color: var(--burgundy);
}

@media (min-width: 800px) {
  .menu-sheet {
    padding: 2.8rem 3rem 3.2rem;
  }
  .menu-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
  }
  .menu-item {
    padding: 1.3rem 0;
  }
}

.menu-special {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-soft);
  text-align: center;
}

/* Dish page */

.dish-hero {
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
  background:
    radial-gradient(800px 420px at 50% 30%, color-mix(in srgb, var(--dish-accent, var(--gold)) 18%, transparent), transparent 70%),
    var(--ivory);
}

.dish-kicker {
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold);
}

.dish-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  margin: 0.6rem 0 0;
  font-weight: 500;
  line-height: 0.92;
}

.dish-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 1.2rem 0 0;
}

.dish-funny {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.dish-brand {
  margin-top: 2rem;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.dish-hero .btn {
  margin-top: 2rem;
}

.profile {
  padding: 4rem 0 5rem;
  color: var(--charcoal);
}

.profile article {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.2rem 2rem;
}

.profile h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
  font-weight: 500;
}

.profile h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.4rem;
  font-weight: 500;
}

.profile ul {
  padding-left: 1.15rem;
}

@media (min-width: 800px) {
  .profile article {
    padding: 2.5rem 3rem 3rem;
  }
}

/* Order */

.order-page {
  padding: 2.5rem 0 8rem;
}

.order-grid {
  display: grid;
  gap: 1.5rem;
}

.step {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 1.4rem 1.1rem 1.6rem;
}

.step h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0.2rem 0 0.4rem;
  font-weight: 500;
}

.step-num {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.choice-grid,
.side-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.choice,
.side {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  padding: 0.95rem 1rem;
  cursor: pointer;
  background: var(--cream);
  min-height: 48px;
}

.choice input,
.side input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice:focus-within,
.side:focus-within {
  box-shadow: var(--focus);
}

.choice:has(input:checked),
.side:has(input:checked),
.choice.is-selected,
.side.is-selected {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(26, 20, 16, 0.06);
}

.choice-name,
.side-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.choice-meta,
.side-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.slider {
  margin: 1.15rem 0 0.4rem;
}

.slider label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.slider input[type="range"] {
  width: 100%;
  margin: 0.65rem 0 0.2rem;
  accent-color: var(--burgundy);
  height: 32px;
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.special-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem;
  margin-top: 0.8rem;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
}

.ticket {
  border: 1px dashed var(--gold);
  background: var(--ivory);
  padding: 1.2rem;
}

.ticket h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.ticket dl {
  margin: 0;
}

.ticket dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
}

.ticket dd {
  margin: 0.15rem 0 0;
}

.waiter {
  font-style: italic;
  color: var(--muted);
  margin: 0.9rem 0 0;
  min-height: 1.4em;
}

.order-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(244, 238, 228, 0.94);
  border-top: 1px solid var(--rule);
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.order-bar .btn {
  flex: 1;
}

@media (min-width: 980px) {
  .order-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    align-items: start;
  }
  .ticket-col {
    position: sticky;
    top: 92px;
  }
  .order-bar {
    display: none;
  }
  .choice-grid,
  .side-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Result / receipt */

.result {
  padding: 2rem 0 5rem;
  text-align: center;
}

.cloche-stage {
  position: relative;
  min-height: 140px;
  display: grid;
  place-items: center;
}

.cloche-stage .cloche {
  width: min(180px, 46vw);
  margin: 0;
}

.cloche-stage .cloche-lid {
  transform-origin: 50% 90%;
  animation: lift 1.1s ease forwards;
}

@keyframes lift {
  to {
    transform: translateY(-42px) rotate(-8deg);
    opacity: 0.15;
  }
}

.served {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0.2rem 0 1.1rem;
  letter-spacing: 0.08em;
}

.receipt {
  width: min(100% - 2rem, 420px);
  margin: 0 auto;
  background: #f7f1e4;
  color: var(--ink);
  text-align: left;
  padding: 1.6rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  animation: print 0.9s ease both;
  animation-delay: 0.35s;
}

.receipt,
.receipt * {
  font-variant-ligatures: none;
}

@keyframes print {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0.2;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.receipt-brand {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
}

.receipt-sub {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.receipt-rule {
  border: 0;
  border-top: 1px dashed rgba(26, 20, 16, 0.35);
  margin: 0.9rem 0;
}

.receipt-body {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
}

.receipt-foot {
  text-align: center;
  font-style: italic;
  margin-top: 0.8rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.legal-note {
  margin: 1.4rem auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Modal */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 20, 16, 0.46);
  display: grid;
  align-items: end;
}

.modal-sheet {
  background: var(--ivory);
  padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow: auto;
  border-top: 1px solid var(--gold-soft);
}

.modal-sheet h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.8rem;
  font-weight: 500;
}

.serve-option {
  border: 1px solid var(--rule);
  padding: 1rem;
  margin: 0.8rem 0;
}

.serve-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  background: var(--cream);
  padding: 0.7rem;
  margin: 0.6rem 0;
}

@media (min-width: 720px) {
  .modal {
    place-items: center;
    align-items: center;
  }
  .modal-sheet {
    width: min(560px, 92vw);
    border: 1px solid var(--gold-soft);
    max-height: 86vh;
  }
}

/* Pages */

.page {
  padding: 3rem 0 5rem;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 0.95;
}

.steps {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.steps article h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
}

.pillar {
  display: flex;
  gap: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--burgundy);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Footer */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 2.4rem 0 2rem;
  background: #efe7d8;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer small {
  display: block;
  color: var(--muted);
  margin-top: 0.8rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Toast */

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
}

.toast {
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  min-width: 180px;
  box-shadow: var(--shadow);
}

/* Error */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

/* Loading */

.loading-copy {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .receipt {
    clip-path: none;
    opacity: 1;
  }
}

@media print {
  .nav, .footer, .result-actions, .modal, .order-bar, .skip-link {
    display: none !important;
  }
  body {
    background: white;
  }
  .receipt {
    box-shadow: none;
    animation: none;
    width: 100%;
  }
}
