:root {
  --teal: #4ba89a;
  --teal-deep: #2f7a70;
  --teal-mid: #3d968a;
  --teal-light: #7ecfc0;
  --teal-night: #1e4d4a;
  --wood: #c9a264;
  --wood-mid: #a67c3a;
  --wood-deep: #6e4320;
  --cream: #f7e7b8;
  --check: #f3e3a0;
  --bun: #f0c14a;
  --mustard: #e8c84a;
  --ketchup: #c83a3a;
  --ketchup-deep: #9b2b2b;
  --ink: #2a1810;
  --foam: #f4efe0;
  --lamp: rgba(255, 196, 80, 0.38);
  --nav-h: 84px;
  --page: 1160px;
  --stroke: 5px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Baloo 2", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--teal);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--bun);
  color: var(--ink);
}

.wrap {
  width: min(var(--page), calc(100% - 40px));
  margin: 0 auto;
}

.art {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

/* Painted diner interior — color washes only, no grids, no tiles */
.wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 8% 12%, rgba(126, 207, 192, 0.55), transparent 58%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(47, 122, 112, 0.45), transparent 52%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(110, 67, 32, 0.35), transparent 70%),
    linear-gradient(180deg, #4eaea0 0%, #3d968a 42%, #c9a264 78%, #6e4320 100%);
}

.lamp {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lamp), transparent 68%);
  filter: blur(2px);
}

/* NAV — hanging order board */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: linear-gradient(180deg, #5cb8aa 0%, #3f9a8e 100%);
  border-bottom: 6px solid var(--ink);
  box-shadow: 0 10px 0 rgba(42, 24, 16, 0.12);
}

.mast-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 3px solid var(--ink);
  background: var(--cream);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Luckiest Guy", cursive;
  font-size: 1.35rem;
  color: var(--bun);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.04em;
}

.brand-copy span {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--cream);
  margin-top: 2px;
}

.menu {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.menu a {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--foam);
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(42, 24, 16, 0.18);
  color: var(--cream);
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 3px solid var(--ink);
  background: var(--bun);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.drawer {
  display: none;
  background: var(--check);
  border-bottom: 6px solid var(--ink);
  padding: 12px 0 20px;
}

.drawer.is-open {
  display: block;
}

.drawer a {
  display: block;
  font-weight: 800;
  padding: 10px 0;
  border-bottom: 2px dashed rgba(42, 24, 16, 0.18);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Comic diner buttons */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip img,
.chip .bi {
  width: 18px;
  height: 18px;
  font-size: 1rem;
  flex-shrink: 0;
  object-fit: contain;
}

.chip.buy {
  background: var(--bun);
}

.chip.chart {
  background: var(--teal-light);
}

.chip.x {
  background: var(--ink);
  color: var(--cream);
}

.chip:hover,
.chip:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.chip-lg {
  min-height: 54px;
  padding: 0 18px;
  font-size: 1.02rem;
}

.chip-lg img,
.chip-lg .bi {
  width: 22px;
  height: 22px;
  font-size: 1.15rem;
}

/* HERO — sitting at the counter, looking into the dining room */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

.hero {
  position: relative;
  padding: 42px 0 0;
  overflow-x: hidden;
}

.hero .lamp.one {
  top: -40px;
  left: 12%;
  width: 280px;
  height: 280px;
}

.hero .lamp.two {
  top: -30px;
  right: 18%;
  width: 240px;
  height: 240px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.window-frame {
  margin: 0;
  padding: 12px;
  background: linear-gradient(180deg, #d8b36a, #8a5a28);
  border: var(--stroke) solid var(--ink);
  box-shadow:
    inset 0 0 0 4px #5a3416,
    0 18px 0 rgba(42, 24, 16, 0.18);
}

.window-frame img {
  width: 100%;
  background: #3d968a;
}

.guest-check {
  position: relative;
  background: var(--check);
  border: var(--stroke) solid var(--ink);
  padding: 28px 26px 26px 42px;
  box-shadow: 0 16px 0 rgba(42, 24, 16, 0.16);
}

.guest-check::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  background: var(--ketchup);
  border-right: 3px solid var(--ink);
}

.check-kicker {
  font-family: "Permanent Marker", cursive;
  color: var(--ketchup);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.wordmark {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.88;
  color: #f4d56a;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.03em;
  text-shadow: 4px 5px 0 rgba(42, 24, 16, 0.28);
}

.ticker {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--bun);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.bio {
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.counter-lip {
  margin-top: 36px;
  height: 54px;
  background:
    linear-gradient(180deg, #e2c07a 0%, #c9a264 38%, #8a5a28 100%);
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.12);
}

/* ABOUT — painted wall sign, then a plated special on the bar */
.about {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255, 196, 80, 0.18), transparent 60%),
    linear-gradient(180deg, #3a8f84 0%, #2f7a70 55%, #256860 100%);
  border-top: 0;
}

.wall-banner {
  margin: 0 0 36px;
  padding: 10px;
  background: var(--teal-night);
  border: var(--stroke) solid var(--ink);
  box-shadow: 0 0 0 8px #3d968a, 0 14px 0 rgba(42, 24, 16, 0.2);
}

.wall-banner img {
  width: 100%;
  background: #4ba89a;
}

.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: center;
}

.bar-copy {
  background: linear-gradient(180deg, #e8c98a, #c9a264);
  border: var(--stroke) solid var(--ink);
  padding: 28px 26px;
  box-shadow: 0 12px 0 rgba(42, 24, 16, 0.16);
}

.eyebrow {
  font-family: "Permanent Marker", cursive;
  color: var(--ketchup-deep);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.h-section {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  color: #f4d56a;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  line-height: 0.95;
  margin-bottom: 14px;
}

.bar-copy p {
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 600;
}

.bar-copy p + p {
  margin-top: 12px;
}

.plate-frame {
  margin: 0;
  padding: 14px;
  background: linear-gradient(180deg, #d44545, #9b2b2b);
  border: var(--stroke) solid var(--ink);
  box-shadow:
    inset 0 0 0 5px #f0c14a,
    0 16px 0 rgba(42, 24, 16, 0.2);
}

.plate-frame img {
  width: 100%;
  background: #3d968a;
}

/* HOW TO BUY — kitchen pass with hanging tickets */
.howto {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 45% 35% at 70% 8%, rgba(255, 180, 60, 0.32), transparent 58%),
    linear-gradient(180deg, #1e4d4a 0%, #2a5c50 48%, #7a4e24 48.2%, #5a3416 100%);
}

.howto .lamp {
  top: -20px;
  right: 22%;
  width: 320px;
  height: 260px;
}

.howto-head {
  text-align: left;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.howto-head .eyebrow {
  color: var(--bun);
}

.howto-head .h-section {
  color: #f4d56a;
}

.howto-head p {
  max-width: 46ch;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.08rem;
}

.kitchen {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.rail {
  position: relative;
  padding-top: 22px;
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 10px;
  background: linear-gradient(180deg, #d8efe8, #4ba89a 40%, #2f7a70);
  border: 3px solid var(--ink);
  z-index: 2;
}

.ticket {
  position: relative;
  background: var(--foam);
  border: 3px solid var(--ink);
  padding: 18px 18px 16px;
  margin: 0 12px 14px;
}

.ticket::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 22px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bun);
  z-index: 3;
}

.ticket h3 {
  font-family: "Luckiest Guy", cursive;
  font-size: 1.45rem;
  color: var(--ketchup);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  margin-bottom: 4px;
}

.ticket p {
  font-weight: 700;
  line-height: 1.4;
  font-size: 0.98rem;
}

.ticket img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 6px;
}

.receipt {
  margin: 8px 12px 0;
  background: var(--check);
  border: 3px dashed var(--ink);
  padding: 16px;
}

.receipt span {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.receipt code {
  display: block;
  font-family: "Baloo 2", ui-monospace, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 12px;
}

.pass-window {
  margin: 0;
  padding: 16px 16px 22px;
  background: #1a2e2c;
  border: var(--stroke) solid var(--ink);
  box-shadow:
    inset 0 0 0 6px #c83a3a,
    0 18px 0 rgba(42, 24, 16, 0.22);
}

.pass-window img {
  width: 100%;
  background: #2a5c50;
}

.sill {
  height: 16px;
  margin-top: 10px;
  background: linear-gradient(180deg, #e2c07a, #8a5a28);
  border: 3px solid var(--ink);
}

/* COMMUNITY — corner booth, mascot at the table */
.community {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(255, 196, 80, 0.28), transparent 62%),
    radial-gradient(ellipse 30% 24% at 12% 30%, rgba(27, 58, 92, 0.35), transparent 70%),
    linear-gradient(180deg, #3d968a 0%, #4ba89a 40%, #c9a264 78%, #6e4320 100%);
}

.booth {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.table-frame {
  margin: 0;
  padding: 12px;
  background: linear-gradient(180deg, #7ecfc0, #2f7a70);
  border: var(--stroke) solid var(--ink);
  box-shadow:
    inset 0 0 0 6px var(--cream),
    0 16px 0 rgba(42, 24, 16, 0.18);
}

.table-frame img {
  width: 100%;
  background: #4ba89a;
}

.booth-copy .h-section {
  color: #f4d56a;
}

.booth-copy p {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 46ch;
}

.stool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FOOTER */
.foot {
  background: #5a3416;
  border-top: 6px solid var(--ink);
  padding: 22px 0;
  color: var(--cream);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.foot-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.foot-ca {
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-all;
  opacity: 0.9;
  max-width: 52ch;
}

/* Copy state */
.is-copied {
  background: #7ecfc0;
}

/* Responsive */
@media (max-width: 900px) {
  .menu,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero-stage,
  .about-spread,
  .kitchen,
  .booth {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .wordmark {
    -webkit-text-stroke: 4px var(--ink);
  }

  .pass-window {
    order: -1;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 72px;
  }

  .wrap {
    width: min(var(--page), calc(100% - 24px));
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .guest-check {
    padding: 22px 16px 18px 36px;
  }

  .chip-lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chip:hover,
  .chip:focus-visible {
    transform: none;
  }
}
