/* Filthy Buns — landing page
   Tokens mirror the Figma variables (Brand / Color, Brand / Layout). */
:root {
  --big-mustard: #FFC000;
  --grill-mark: #1D1919;
  --mayo: #FFF4DC;
  --toasty-bun: #FAB125;
  --ketchup-splat: #E6282A;
  --lettuce-party: #41AF51;
  --flame-patty: #8D3F2D;
  --cheese-please: #FDEC09;
  --ink-soft: #5A4A3F;
  --paper: #FFFBF0;
  --swirl-mustard: #FFD54A;

  --font-display: "DynaPuff", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;

  /* Desktop */
  --page-margin: 96px;
  --section-y: 120px;
  --stack: 56px;
  --grid-gap: 32px;
  --radius-card: 28px;
  --outline: 4px;

  --t-display-xl: clamp(104px, 8.8vw, 130px); /* keeps "Messy on" on one line beside the photo */
  --t-display-l: 128px;
  --t-h1: 96px;
  --t-h2: 72px;
  --t-h3: 44px;
  --t-h5: 22px;
  --t-marquee: 30px;
  --t-button: 20px;
  --t-body-l: 22px;
  --t-body-m: 19px;
  --t-label: 14px;
  --t-scribble: 32px;

  --shadow-s: 4px 4px 0 var(--grill-mark);
  --shadow-m: 8px 8px 0 var(--grill-mark);
  --shadow-l: 12px 12px 0 var(--grill-mark);
  --browser-band: 0px;
}

/* Tablet */
@media (max-width: 1199px) {
  :root {
    --page-margin: 40px; --section-y: 96px; --stack: 44px; --grid-gap: 24px; --radius-card: 24px;
    --t-display-xl: 104px; --t-display-l: 96px; --t-h1: 72px; --t-h2: 56px; --t-h3: 38px; --t-h5: 20px;
    --t-marquee: 26px; --t-button: 18px; --t-body-l: 20px; --t-body-m: 18px; --t-label: 13px; --t-scribble: 28px;
  }
}
/* Mobile */
@media (max-width: 767px) {
  :root {
    --page-margin: 20px; --section-y: 72px; --stack: 32px; --grid-gap: 16px; --radius-card: 20px; --outline: 3px;
    --t-display-xl: 60px; --t-display-l: 52px; --t-h1: 48px; --t-h2: 38px; --t-h3: 30px; --t-h5: 18px;
    --t-marquee: 22px; --t-button: 17px; --t-body-l: 18px; --t-body-m: 16px; --t-label: 12px; --t-scribble: 24px;
    --shadow-l: 8px 8px 0 var(--grill-mark);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mayo);
  color: var(--grill-mark);
  font-family: var(--font-body);
  font-size: var(--t-body-m);
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--ketchup-splat); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(1248px + var(--page-margin) * 2);
  margin-inline: auto;
  padding-left: max(var(--page-margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-margin), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--grill-mark); color: var(--mayo); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .logo__word, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.display { font-size: var(--t-display-xl); line-height: 0.88; letter-spacing: -0.02em; }
.display--footer { font-size: var(--t-display-l); line-height: 1; text-align: center; }
.h1 { font-size: var(--t-h1); line-height: 1; }
.h2 { font-size: var(--t-h2); line-height: 1; }
.h3 { font-size: var(--t-h3); line-height: 1.05; }
.lead { font-size: var(--t-body-l); line-height: 1.5; max-width: 34em; }
.lead--soft { color: var(--ink-soft); }
.eyebrow, .tag { font-family: var(--font-body); font-weight: 600; font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--red, .red { color: var(--ketchup-splat); }
.eyebrow--mustard { color: var(--big-mustard); }
.scribble { font-family: var(--font-hand); font-size: var(--t-scribble); line-height: 1.1; transform: rotate(-3deg); }
.scribble--red { color: var(--ketchup-splat); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-button); line-height: 1;
  padding: 18px 32px; border-radius: 999px; border: 3px solid var(--grill-mark);
  text-decoration: none; box-shadow: var(--shadow-s);
  transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out;
  white-space: nowrap;
}
.btn--primary { background: var(--grill-mark); color: var(--big-mustard); }
.btn--light { background: var(--mayo); color: var(--grill-mark); }
.btn--primary:hover { background: var(--ketchup-splat); color: var(--mayo); box-shadow: var(--shadow-m); transform: translate(-2px, -2px); }
.btn--light:hover { background: var(--big-mustard); box-shadow: var(--shadow-m); transform: translate(-2px, -2px); }
.btn:active { box-shadow: 0 0 0 var(--grill-mark); transform: translate(4px, 4px); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 8px 8px 0; }
.ctas--center { justify-content: center; }

/* ---------- Decorative swirl ---------- */
.swirl {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 940' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23FFD54A' stroke-width='74' stroke-linecap='round'%3E%3Cpath d='M-100 140 C200 0 420 280 720 160 S1200 -20 1560 140'/%3E%3Cpath d='M-100 380 C260 230 460 570 800 430 S1260 230 1560 410'/%3E%3Cpath d='M-100 630 C240 490 520 830 860 670 S1300 510 1560 690'/%3E%3Cpath d='M-100 880 C260 740 560 1060 900 900 S1320 780 1560 940'/%3E%3C/g%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

/* ---------- 01 Hero ---------- */
.hero { position: relative; background: var(--big-mustard); overflow: hidden; padding-bottom: 190px; }
.hero > *:not(.swirl) { position: relative; z-index: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.logo__word { font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.logo img { width: 56px; height: auto; }
.nav__links { display: flex; gap: 40px; font-weight: 600; font-size: 18px; }
.nav__links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .2s; padding-bottom: 2px; }
.nav__links a:hover { background-size: 100% 3px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grill-mark); padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--mayo); }

.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 24px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.tag { align-self: flex-start; background: var(--grill-mark); color: var(--big-mustard); padding: 10px 18px; border-radius: 999px; }
.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.soon {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--mayo); background: var(--ketchup-splat); border: 3px solid var(--grill-mark); border-radius: 999px;
  padding: 8px 16px; box-shadow: var(--shadow-s); text-decoration: none; transform: rotate(-3deg);
  transition: transform .15s ease;
}
.soon:hover { transform: rotate(0deg) translate(-1px, -1px); }
.hero__art { position: relative; min-width: 0; padding: 96px 24px 24px 24px; }
.hero__note { position: absolute; top: 0; left: 0; z-index: 2; transform: rotate(-6deg); }
.photo { margin: 0; overflow: hidden; border: var(--outline) solid var(--grill-mark); border-radius: var(--radius-card); box-shadow: var(--shadow-l); background: #2A2424; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 5 / 6; transform: rotate(3deg); max-width: 500px; margin-left: auto; }
.bunzo { pointer-events: none; height: auto; }
.bunzo--lean { position: absolute; width: 210px; left: -20px; bottom: -30px; transform: rotate(-10deg); z-index: 2; }

/* Marquee */
.marquee {
  position: absolute !important; left: -40px; right: -40px; bottom: 30px; z-index: 2;
  background: var(--grill-mark); transform: rotate(2deg); overflow: hidden; padding: 20px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; flex-shrink: 0; }
.marquee__set li {
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-marquee); line-height: 1;
  white-space: nowrap; display: flex; align-items: center; color: var(--big-mustard);
}
.marquee__set li:nth-child(even) { color: var(--mayo); }
.marquee__set li::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ketchup-splat); margin: 0 36px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Menu overlay (tablet / mobile) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--big-mustard); overflow: hidden;
  display: flex; flex-direction: column; gap: 40px;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: 40px;
  animation: menuIn .3s ease-out;
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.menu__top { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.menu-close { border: 0; background: none; padding: 0; color: var(--grill-mark); cursor: pointer; }
.menu__links { display: flex; flex-direction: column; gap: 14px; }
.menu__links a { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h1); line-height: 1.05; text-decoration: none; }
.menu__note { color: var(--ketchup-splat); }
.menu__bunzo { position: absolute; right: 10px; bottom: -40px; width: min(60vw, 300px); }

/* ---------- 02 Our story ---------- */
.story { padding-block: var(--section-y); }
.story__grid { display: grid; grid-template-columns: 540px 1fr; gap: 88px; align-items: center; }
.photo--story { aspect-ratio: 1 / 1; transform: rotate(-2deg); }
.photo--story img { object-position: 50% 50%; }
.story__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.points li { display: flex; gap: 20px; padding: 20px 0; border-top: 2px solid rgba(29, 25, 25, .15); }
.points h3 { font-size: var(--t-h5); line-height: 1.1; margin-bottom: 4px; }
.points p { color: var(--ink-soft); }
.dot {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--grill-mark);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--t-h5);
}
.dot--ketchup { background: var(--ketchup-splat); }
.dot--lettuce { background: var(--lettuce-party); }
.dot--mustard { background: var(--big-mustard); }

/* ---------- 03 Find us ---------- */
.find { position: relative; background: var(--big-mustard); overflow: hidden; padding-block: var(--section-y); }
/* Fade the swirl out before the bottom edge so it doesn't end in a hard line right above the drip */
.find .swirl { -webkit-mask-image: linear-gradient(#000 62%, transparent 92%); mask-image: linear-gradient(#000 62%, transparent 92%); }
.find__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--stack); }
.find__inner > .eyebrow { margin-bottom: calc(var(--stack) * -1 + 16px); }
.bunzo--find { position: absolute; z-index: 1; width: 260px; right: 60px; top: 90px; transform: rotate(10deg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; padding: 44px 40px 12px 0; }
.card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 40px; border-radius: var(--radius-card); box-shadow: var(--shadow-m); }
.card--mayo { background: var(--mayo); border: var(--outline) solid var(--grill-mark); }
.card--ink { background: var(--grill-mark); color: var(--mayo); }
.card--spot { position: relative; max-width: 880px; padding-right: 200px; }
.card__note { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
/* Ketchup "Coming soon" stamp slapped on the corner of the address card (needs this stylesheet; if you see plain "Coming soon" text, an old styles.css is being served) */
.stamp {
  position: absolute; top: -44px; right: -36px; width: 200px; height: 200px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: .95; text-transform: uppercase; text-align: center;
  color: var(--mayo); background: var(--ketchup-splat); border: var(--outline) solid var(--grill-mark); border-radius: 50%;
  box-shadow: var(--shadow-m); transform: rotate(12deg);
}
.stamp::before { content: ""; position: absolute; inset: 12px; border: 3px dashed rgba(255, 244, 220, .75); border-radius: 50%; }
.card__body { color: rgba(255, 244, 220, .75); }
.card .btn { margin-top: 8px; }
.hours { display: grid; gap: 4px; font-weight: 600; }
.hours div { display: flex; gap: 16px; }
.hours dt { min-width: 5.5em; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: var(--font-display); font-weight: 600; font-size: var(--t-button); background: var(--mayo); color: var(--grill-mark); padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.pill:hover { background: var(--big-mustard); }
.find__note { transform: rotate(-2deg); }

/* Sign-up form */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.signup { max-width: 880px; gap: 14px; }
.signup__form { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 12px; padding-top: 8px; }
.signup__form input {
  min-width: 0; font: inherit; font-size: var(--t-body-m); color: var(--grill-mark);
  background: var(--mayo); border: 3px solid var(--mayo); border-radius: 999px; padding: 16px 22px;
}
.signup__form input::placeholder { color: #8A7A6B; opacity: 1; }
.signup__form input:focus-visible { outline: 3px solid var(--big-mustard); outline-offset: 2px; }
.signup__form input:user-invalid { border-color: var(--ketchup-splat); }
.signup__form .btn { margin-top: 0; }
.btn--mustard { background: var(--big-mustard); color: var(--grill-mark); border-color: var(--big-mustard); box-shadow: 4px 4px 0 var(--ketchup-splat); }
.btn--mustard:hover { background: var(--ketchup-splat); border-color: var(--ketchup-splat); color: var(--mayo); box-shadow: 6px 6px 0 var(--big-mustard); transform: translate(-2px, -2px); }
.btn[disabled] { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__msg { min-height: 1.4em; font-weight: 600; color: var(--big-mustard); }
.signup__msg:empty { display: none; }
.signup__fine { font-size: 14px; color: rgba(255, 244, 220, .6); }

/* ---------- 04 Footer ---------- */
.footer { position: relative; background: var(--mayo); padding-top: calc(100vw * 260 / 1440 + 56px); padding-bottom: 48px; }
/* Full-width drip, one drawing per screen size, tucked 2px under the section above so no seam shows */
.drip { position: absolute; top: -2px; left: 0; right: 0; pointer-events: none; }
.drip img { display: block; width: 100%; height: auto; }
.footer__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.eyes { width: 168px; height: auto; }
.pupil { transition: transform .12s ease-out; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contacts a { display: inline-block; background: var(--grill-mark); color: var(--mayo); font-weight: 600; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.soon-chip { display: inline-block; font-weight: 600; padding: 9px 20px; border-radius: 999px; border: 3px dashed var(--grill-mark); color: var(--grill-mark); }
.legal {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 40px; border-top: 2px solid rgba(29, 25, 25, .15);
  font-weight: 600; font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase;
}
.legal span:last-child { color: var(--ink-soft); }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-bottom: 190px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .photo--hero { margin-inline: auto; max-width: 440px; }
  .bunzo--lean { width: 170px; left: 4%; }
  .story__grid { grid-template-columns: 1fr; gap: 48px; }
  .photo--story { aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }
  .cards { grid-template-columns: 1fr; }
  .card--spot { padding-right: 176px; }
  .signup__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .signup__form .btn { grid-column: 1 / -1; justify-self: start; }
  .bunzo--find { width: 190px; right: 10px; top: 60px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav__order { display: none; }
  .logo__word { font-size: 24px; }
  .logo img { width: 42px; }
  .menu-btn { width: 48px; height: 48px; }
  .hero { padding-bottom: 156px; }
  .hero__copy { gap: 20px; }
  .btn { padding: 16px 26px; }
  .hero__art { padding: 72px 14px 8px; }
  .hero__note { left: auto; right: 0; }
  .photo--hero { max-width: 100%; }
  .bunzo--lean { width: 120px; left: -6px; bottom: -36px; }
  .marquee { bottom: 24px; padding: 16px 0; }
  .marquee__set li::after { margin: 0 24px; width: 12px; height: 12px; }
  .photo--story { aspect-ratio: 1 / 1; }
  .points li { gap: 16px; padding: 18px 0; }
  .dot { flex-basis: 40px; width: 40px; height: 40px; }
  .card { padding: 28px 24px; }
  .signup__form { grid-template-columns: minmax(0, 1fr); }
  .signup__form .btn { justify-self: stretch; justify-content: center; }
  .cards { padding-right: 12px; }
  .card--spot { padding-right: 24px; padding-top: 96px; }
  .card--spot .h3 { font-size: min(26px, calc((100vw - 110px) / 11)); }
  .address .line { white-space: nowrap; }
  .stamp { width: 128px; height: 128px; font-size: 23px; top: -40px; right: -8px; }
  .stamp::before { inset: 8px; border-width: 2px; }
  .bunzo--find { display: none; }
  .footer { padding-top: calc(100vw * 420 / 780 + 16px); }
  .eyes { width: 140px; }
  .legal { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .menu { animation: none; }
  .btn, .pupil { transition: none; }
}
