/* Moe's Restaurant — red + white checkers, slab display, bubbly yellow prices. */
:root {
  --red: #c8322b;
  --red-deep: #9e1f1a;
  --cream: #f3ebdd;
  --white: #fffdf8;
  --yellow: #ffd21f;
  --ink: #1b1412;
  --check: 36px;
  --display: "Alfa Slab One", "Rockwell Extra Bold", Rockwell, serif;
  --bubble: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- checkers ---------- */
.checker {
  height: calc(var(--check) * 2);
  background: conic-gradient(var(--red) 25%, var(--white) 0 50%, var(--red) 0 75%, var(--white) 0) 0 0 / calc(var(--check) * 2) calc(var(--check) * 2);
}
.checker.thin { --check: 14px; }
.checker.one-row { height: var(--check); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; letter-spacing: 0.005em; }
.slant { display: inline-block; transform: skewX(-9deg); text-transform: uppercase; }
.h-xl { font-size: clamp(2.3rem, 10.5vw, 8.4rem); color: var(--red); }
.h-lg { font-size: clamp(2.2rem, 5.4vw, 4.2rem); color: var(--red); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.on-red .h-lg, .on-red h3 { color: var(--white); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; }
.bubble {
  font-family: var(--bubble);
  color: var(--yellow);
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  line-height: 1;
}
.pill {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  padding: 5px 18px;
  font: 700 0.82rem/1.3 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.on-red .pill { border-color: var(--white); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 400 1rem/1 var(--display);
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--white); }
.head-in { display: flex; align-items: center; gap: 20px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--red); margin-right: auto; }
.brand img { width: 64px; height: auto; }
.brand span { font: 400 1.5rem/1 var(--display); }
.brand small { display: block; font: 700 0.68rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font: 400 0.98rem/1 var(--display); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { color: var(--white); padding: 12px 18px; margin-left: 8px; font-size: 0.92rem; }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; }
.site-head .checker { --check: 12px; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: 400 0.95rem/1 var(--display); color: var(--white); background: var(--red);
    border: 3px solid var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 4px solid var(--ink); padding: 8px 20px 22px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.3rem; padding: 14px 4px; border-bottom: 2px dashed rgba(27, 20, 18, 0.18); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 18px 0 0; text-align: center; border-bottom: 3px solid var(--ink); border-radius: 999px; font-size: 1.05rem; padding: 16px; }
  .brand img { width: 52px; }
  .brand span { font-size: 1.25rem; }
  .brand small { font-size: 0.58rem; letter-spacing: 0.1em; white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); overflow: hidden; text-align: center; }
.hero h1 { display: grid; justify-items: center; }
.hero .plate {
  position: relative;
  width: min(440px, 78vw);
  aspect-ratio: 1;
  margin: clamp(-70px, -5vw, -24px) auto;
  display: grid; place-items: center;
  z-index: 1;
}
.hero .plate::before {
  content: ""; position: absolute; inset: 6% -16%;
  border-radius: 50%;
  transform: rotate(-24deg);
  background: conic-gradient(var(--red) 25%, transparent 0 50%, var(--red) 0 75%, transparent 0) 0 0 / 72px 72px;
}
.hero .plate img {
  position: relative; width: 78%; height: auto;
  filter: drop-shadow(0 22px 18px rgba(27, 20, 18, 0.38));
  animation: spin-in 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes spin-in { from { transform: rotate(-150deg) scale(0.55); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 .slant { position: relative; z-index: 2; }
.hero h1 .slant:last-child { z-index: 2; text-shadow: 0 0 0 transparent; }
.hero .pill { margin-bottom: 18px; background: var(--cream); }
.hero .lede { margin: 26px auto 0; }
.hero .btn-row { justify-content: center; }
.status { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; margin-top: 22px; }
.status i { width: 11px; height: 11px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.22); }
.status.closed i { background: var(--red); box-shadow: 0 0 0 4px rgba(200, 50, 43, 0.2); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.white { background: var(--white); }
.on-red { background: var(--red); color: var(--white); }
.on-red a { color: var(--yellow); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > .pill { justify-self: start; }
.section-head.center > .pill { justify-self: center; }
.section-head.center { text-align: center; justify-items: center; }

/* buffet board */
.buffet { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.price-board { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.price-board li { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding: 16px 0; border-bottom: 2px dashed rgba(255, 253, 248, 0.45); }
.price-board li:last-child { border-bottom: 0; }
.price-board b { font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.1 var(--display); }
.price-board small { grid-column: 1; font-style: italic; opacity: 0.92; font-size: 0.95rem; }
.price-board .bubble { grid-row: 1 / span 2; grid-column: 2; font-size: clamp(2.2rem, 4.6vw, 3.4rem); align-self: center; }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; border: 5px solid var(--ink); background: var(--ink); }
.arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.buffet .arch { box-shadow: 14px 14px 0 var(--yellow); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.tile { text-decoration: none; color: var(--ink); display: grid; gap: 14px; text-align: center; }
.tile .arch { transition: transform 0.2s; }
.tile:hover .arch { transform: translateY(-6px) rotate(-1.5deg); }
.tile b { font: 400 1.3rem/1.1 var(--display); color: var(--red); }
.tile span { font-style: italic; font-size: 0.95rem; }

/* specials */
.special-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.poster { background: #fff; border: 5px solid var(--ink); border-radius: 22px; padding: 14px; position: relative; box-shadow: 12px 12px 0 var(--red); }
.poster::before { content: ""; position: absolute; inset: 0; border-radius: 16px; border: 14px solid transparent;
  background: conic-gradient(var(--red) 25%, #fff 0 50%, var(--red) 0 75%, #fff 0) 0 0 / 28px 28px border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.poster img { border-radius: 8px; padding: 14px; }
.burst { position: absolute; right: -18px; top: -26px; width: 132px; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  background: var(--red); color: var(--white); font: 400 1.05rem/1 var(--display); transform: rotate(12deg); z-index: 2;
  clip-path: polygon(50% 0, 61% 12%, 75% 4%, 79% 19%, 95% 20%, 90% 35%, 100% 50%, 90% 62%, 96% 79%, 80% 80%, 75% 96%, 61% 88%, 50% 100%, 39% 88%, 25% 96%, 20% 80%, 4% 79%, 10% 62%, 0 50%, 10% 35%, 5% 20%, 21% 19%, 25% 4%, 39% 12%); }
.burst .bubble { font-size: 1.7rem; display: block; margin-top: 4px; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
.day { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; padding: 18px 16px 20px; display: grid; gap: 8px; align-content: start; }
.day.today { background: var(--yellow); transform: rotate(-1.5deg); box-shadow: 6px 6px 0 var(--ink); }
.day em { font: 700 0.74rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--red); }
.day b { font: 400 1.12rem/1.05 var(--display); }
.day p { margin: 0; font-size: 0.93rem; line-height: 1.4; }
.every { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.every .day { grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
.every .day em { grid-column: 1 / -1; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.flip > :first-child { order: 2; }
.frame { border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: -12px 12px 0 var(--red); }
.on-red .frame { box-shadow: -12px 12px 0 var(--yellow); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* visit */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.visit h3 { font-size: 1.35rem; margin-bottom: 14px; color: var(--yellow); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dashed rgba(255, 253, 248, 0.35); }
.hours li.now { font-weight: 800; color: var(--yellow); }
.visit address { font-style: normal; }
.visit .big-phone { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--white); text-decoration: none; display: inline-block; margin: 12px 0; }

/* footer */
.site-foot { background: var(--ink); color: var(--cream); padding: 36px 0 44px; font-size: 0.92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- menu page ---------- */
.page-top { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); text-align: center; }
.page-top .h-xl { font-size: clamp(3rem, 10vw, 7.5rem); }
.page-top .lede { margin: 20px auto 0; }
.chips { position: sticky; top: 92px; z-index: 30; background: var(--cream); border-block: 3px solid var(--ink); }
.chips-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chips-in::-webkit-scrollbar { display: none; }
.chips a { flex: none; font: 400 0.9rem/1 var(--display); color: var(--ink); text-decoration: none; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.chips a:hover, .chips a.active { background: var(--red); color: var(--white); }
.menu-sec { padding: clamp(44px, 6vw, 80px) 0; }
.menu-sec:nth-of-type(even) { background: var(--red); color: var(--white); }
.menu-sec:nth-of-type(even) .h-lg { color: var(--white); }
.menu-sec:nth-of-type(even) .item .dots { border-color: rgba(255, 253, 248, 0.5); }
.menu-sec:nth-of-type(even) .item .price { color: var(--yellow); }
.menu-sec:nth-of-type(even) .note { background: rgba(27, 20, 18, 0.22); }
.menu-sec:nth-of-type(even) .sub-h { color: var(--yellow); }
.menu-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.menu-head p { margin: 0; font-style: italic; max-width: 46ch; }
.menu-head .h-lg::before, .menu-head .h-lg::after { content: "-"; }
.items { columns: 2; column-gap: clamp(28px, 5vw, 70px); }
.item { break-inside: avoid; padding: 9px 0; }
.item .row { display: flex; align-items: baseline; gap: 8px; }
.item .name { font: 400 1.12rem/1.2 var(--display); }
.item .dots { flex: 1; border-bottom: 3px dotted rgba(27, 20, 18, 0.35); transform: translateY(-5px); min-width: 20px; }
.item .price { font: 400 1.25rem/1 var(--bubble); color: var(--red); white-space: nowrap; letter-spacing: 0.02em; }
.item p { margin: 3px 0 0; font-style: italic; font-size: 0.95rem; line-height: 1.4; opacity: 0.92; max-width: 54ch; }
.item .tag { font: 700 0.68rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 3px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.sub-h { font: 400 1.35rem/1 var(--display); color: var(--red); margin: 34px 0 10px; column-span: all; }
.note { margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(200, 50, 43, 0.1); font-size: 0.95rem; }
.note b { font-family: var(--display); font-weight: 400; }
.size-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; max-width: 620px; }
.size-table th, .size-table td { padding: 9px 8px; text-align: right; border-bottom: 2px dashed rgba(255, 253, 248, 0.4); }
.size-table th:first-child, .size-table td:first-child { text-align: left; font: 400 1.05rem/1.2 var(--display); }
.size-table thead th { font: 400 1.05rem/1 var(--display); color: var(--yellow); }
.size-table td { font: 400 1.2rem/1 var(--bubble); letter-spacing: 0.02em; }
.size-table .new { font: 700 0.62rem/1 var(--body); background: var(--yellow); color: var(--ink); padding: 2px 5px; border-radius: 3px; margin-right: 5px; vertical-align: middle; letter-spacing: 0.08em; }
.menu-sec:nth-of-type(odd) .size-table th, .menu-sec:nth-of-type(odd) .size-table td { border-color: rgba(27, 20, 18, 0.25); }
.menu-sec:nth-of-type(odd) .size-table thead th { color: var(--red); }
.fine { text-align: center; font-style: italic; font-size: 0.9rem; padding: 26px 0; }

/* ---------- groups page ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border: 4px solid var(--ink); border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.form-card { background: var(--white); border: 5px solid var(--ink); border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: 12px 12px 0 var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { background: #fff; outline: 3px solid var(--yellow); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 0.93rem; }
.checks input { accent-color: var(--red); width: 17px; height: 17px; }
.checks label:has(:checked) { background: var(--yellow); }
.terms { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 0.97rem; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.agree input { accent-color: var(--red); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e3f4e6; border: 2px solid #2f9e44; }
.form-msg.err { display: block; background: #fde8e6; border: 2px solid var(--red); }
button.btn { cursor: pointer; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .days { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .buffet, .special-grid, .split, .visit, .every { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .buffet .arch { max-width: 380px; margin-inline: auto; }
  .items { columns: 1; }
  .days { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .chips { top: 78px; }
  .burst { right: -6px; width: 108px; font-size: 0.9rem; }
  .burst .bubble { font-size: 1.4rem; }
  .poster { box-shadow: 8px 8px 0 var(--red); }
  .frame { box-shadow: -8px 8px 0 var(--red); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .plate img { animation: none; }
  .btn, .tile .arch { transition: none; }
}
