/* Moe's — shared system. Fluid: every size is rem/em and the root scales with the viewport. */

@font-face { font-family: "KC Sans"; src: url("/assets/fonts/KCCSSans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Futura PT"; font-weight: 400; src: url("/assets/fonts/FuturaPTBook.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Futura PT"; font-weight: 600; src: url("/assets/fonts/FuturaPTDemi.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Futura PT"; font-weight: 700; src: url("/assets/fonts/FuturaPTBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Futura PT"; font-weight: 800; src: url("/assets/fonts/FuturaPTHeavy.woff2") format("woff2"); font-display: swap; }

:root {
  --red: #d1232a;
  --red-deep: #a8161d;
  --yellow: #ffdd15;
  --ink: #231f20;
  --white: #ffffff;
  --mist: #f4f4f2;
  --line: 0.1875rem;            /* the comic outline weight used everywhere */
  --pop: 0 0.3125rem 0 var(--ink);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --check: 1.5rem;
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-bounce: cubic-bezier(.3, 1.6, .5, 1);
}

/* Fluid root: 16px at 390 and at 1440, scaling smoothly between and beyond. */
html { font-size: clamp(1rem, 0.87rem + 0.53vw, 1.125rem); -webkit-text-size-adjust: 100%; }
@media (min-width: 62em) { html { font-size: clamp(0.8125rem, 0.5rem + 0.556vw, 1.375rem); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "Futura PT", "Century Gothic", sans-serif; font-size: 1.125rem; line-height: 1.45; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: var(--line) solid var(--ink); outline-offset: 0.25rem; }
.on-red :focus-visible { outline-color: var(--yellow); }

.container { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
/* Bubble lettering: black outline + hard drop (outer), lit-from-above gradient (inner). Needs data-text = the same words. */
.bubble { position: relative; display: inline-block; font-family: "KC Sans", "Futura PT", sans-serif; font-weight: 400; line-height: 0.95; letter-spacing: 0.01em;
  color: var(--ink); -webkit-text-stroke: 0.16em var(--ink); paint-order: stroke fill; text-shadow: 0.05em 0.08em 0 var(--ink); }
.bubble::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(180deg, #fff48a 0%, var(--yellow) 42%, #f6b400 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bubble--red::after { background-image: linear-gradient(180deg, #ef4a50 0%, var(--red) 45%, var(--red-deep) 100%); }
.bubble--white::after { background-image: linear-gradient(180deg, #fff 0%, #fff 55%, #dcdcdc 100%); }

.h-xl { font-size: clamp(3.25rem, 7.2vw + 1rem, 7rem); }
.h-lg { font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); }
.h-md { font-size: 2rem; }
.futura-head { font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
.lede { font-size: 1.3125rem; line-height: 1.4; max-width: 34em; }
.small { font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3.25rem; padding: 0.7em 1.5em; border: var(--line) solid var(--ink); border-radius: 62.5rem;
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.1; text-decoration: none; cursor: pointer; box-shadow: var(--pop); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.btn:hover { transform: translateY(-0.125rem); box-shadow: 0 0.4375rem 0 var(--ink); }
.btn:active { transform: translateY(0.25rem); box-shadow: 0 0.0625rem 0 var(--ink); }
.btn--red { background: var(--red); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem 1rem; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.125rem; }
.nav__logo img { width: 7.5rem; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.nav__links a { white-space: nowrap; text-decoration: none; padding-block: 0.25rem; border-bottom: var(--line) solid transparent; }
.nav__links a:hover { border-bottom-color: currentColor; }
.nav__links .btn { border-bottom: var(--line) solid var(--ink); min-height: 2.75rem; font-size: 1rem; }
.nav__toggle { display: none; }
.nav.on-red { color: var(--white); }
@media (max-width: 61.99em) {
  .nav__toggle { display: inline-flex; min-height: 2.75rem; font-size: 1rem; box-shadow: 0 0.1875rem 0 var(--ink); }
  .nav__links { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem;
    background: var(--white); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 1.25rem; box-shadow: var(--pop); }
  .nav__links.is-open { display: flex; }
  .nav__links li { padding-block: 0.625rem; }
  .nav__links .btn { width: 100%; margin-top: 0.5rem; }
}

/* ---------- Checkerboard ---------- */
.checker { --a: var(--red); --b: var(--white); background: conic-gradient(var(--a) 25%, var(--b) 0 50%, var(--a) 0 75%, var(--b) 0) 0 0 / calc(var(--check) * 2) calc(var(--check) * 2); }
.checker-band { height: calc(var(--check) * 2); }
.checker-band--run { animation: check-run 2.4s linear infinite; }
@keyframes check-run { to { background-position: calc(var(--check) * 2) 0; } }

/* ---------- Photo placeholders: a grey checker box, on brand, until the real photo arrives ---------- */
.ph { position: relative; display: grid; place-items: center; text-align: center; color: #6b6667; font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  background: repeating-conic-gradient(#e3e3e0 0 25%, #f4f4f2 0 50%) 0 0 / 2.5rem 2.5rem; border: 0.125rem solid #c9c6c6; }
.ph > span { background: var(--white); padding: 0.3em 0.7em; border-radius: 62.5rem; border: 0.0625rem solid #cfcccc; max-width: 80%; }
.ph--round { border-radius: 50%; aspect-ratio: 1; }
.ph--pizza { background:
    repeating-conic-gradient(from 0deg, rgba(35,31,32,.14) 0 0.6deg, transparent 0 45deg),
    radial-gradient(circle, #f6f6f4 0 82%, #e2e0dd 82.5% 100%); }
.ph--soft { border-radius: 1.5rem; }

/* ---------- Address line ---------- */
.address { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 800; font-size: 1.5rem; line-height: 1.15; text-decoration: none; }
.address svg { width: 1.3em; height: 1.3em; flex: none; }
.address span { border-bottom: var(--line) solid currentColor; }
.address:hover span { border-bottom-color: transparent; }

/* ---------- Review-only option switcher (not part of the site) ---------- */
.switcher { position: fixed; z-index: 99; left: 50%; bottom: 0.75rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.25rem; padding: 0.3rem; background: var(--ink); color: var(--white); border-radius: 62.5rem; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.switcher span { padding-inline: 0.75rem 0.25rem; opacity: .7; }
.switcher a { text-decoration: none; padding: 0.35rem 0.85rem; border-radius: 62.5rem; }
.switcher a[aria-current] { background: var(--yellow); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Review aid (?still): no motion, settled layout */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

/* Tap targets: text links that sit under 44px tall get a taller invisible hit area, without moving the layout */
.address, .card__row, .nav__links .btn { position: relative; }
.address::after, .card__row::after, .nav__links .btn::after { content: ""; position: absolute; inset: -0.625rem 0; }
