/* ==========================================================================
   Taste The Asian — food truck menu
   Mobile-first. One narrow column, brush-banner sections, price badges.
   ========================================================================== */

:root {
  /* Brand palette, lifted from the printed menu artwork */
  --red: #e23a17;
  --red-ink: #c62b12;
  --teal: #0e7c8b;
  --teal-ink: #0b6f7d;
  --purple: #5b2494;
  --purple-ink: #4e1f80;
  --ink: #171310;
  --ink-soft: #574d47;
  --paper: #ffffff;

  --column: 480px;
  --gutter: clamp(1.05rem, 4.6vw, 1.5rem);

  --display: 'Bangers', 'Impact', system-ui, sans-serif;
  --body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; }

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

/* --------------------------------------------------------------------------
   Column
   -------------------------------------------------------------------------- */

.menu {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 1.1rem)
    env(safe-area-inset-right, 0px)
    calc(env(safe-area-inset-bottom, 0px) + 2.4rem)
    env(safe-area-inset-left, 0px);
}

/* --------------------------------------------------------------------------
   Brand header
   -------------------------------------------------------------------------- */

.brand {
  padding: 0 var(--gutter);
  text-align: center;
}

.brand__h1 { margin: 0; }

.brand__logo {
  display: block;
  width: clamp(168px, 50vw, 224px);
  height: auto;
  margin: 0 auto;
}

.brand__tagline {
  margin: -0.15rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 11.5vw, 2.9rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
}

.brand__word { display: inline-block; }
.brand__word--red { color: var(--red); }
.brand__word--teal { color: var(--teal); }
.brand__word--purple { color: var(--purple); }

.brand__ribbon {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.2rem 0.95rem 0.3rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  margin-top: clamp(1.9rem, 8vw, 2.6rem);
  padding: 0 var(--gutter);
}

.section--red { --accent: var(--red); --accent-ink: var(--red-ink); }
.section--teal { --accent: var(--teal); --accent-ink: var(--teal-ink); }
.section--purple { --accent: var(--purple); --accent-ink: var(--purple-ink); }

.section__title {
  margin: 0;
  padding: 0.34rem 0.9rem 0.42rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 10.5vw, 2.7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  transform: rotate(-1.3deg);
  clip-path: polygon(
    0.8% 16%, 3.4% 2%, 12% 6%, 26% 1%, 47% 5%, 68% 0.5%, 86% 4%, 96% 1.5%, 99.4% 14%,
    99% 84%, 96.6% 98%, 84% 94%, 68% 99%, 47% 95%, 26% 100%, 9% 96%, 3% 99%, 0.4% 82%
  );
  filter: drop-shadow(0 5px 0 rgba(23, 19, 16, 0.12));
}

.section__sub {
  display: block;
  margin: 0.85rem auto 0;
  padding: 0.18rem 0.85rem 0.26rem;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(0.9deg);
}

.section--teal .section__sub { background: var(--red); }

.section__foot {
  margin: 0.9rem 0 0;
  color: var(--accent-ink);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Menu rows
   -------------------------------------------------------------------------- */

.items {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.5rem 0;
}

.item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item__name {
  font-size: clamp(1.02rem, 4.5vw, 1.14rem);
  font-weight: 600;
  line-height: 1.24;
  overflow-wrap: break-word;
}

.item__sub {
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

.item__leader {
  flex: 1 1 0.75rem;
  min-width: 0.9rem;
  border-bottom: 2px dotted rgba(23, 19, 16, 0.3);
}

.item__price {
  flex: 0 0 auto;
  padding: 0.14rem 0.62rem 0.2rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: #fff;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(23, 19, 16, 0.14);
}

/* --------------------------------------------------------------------------
   Note box
   -------------------------------------------------------------------------- */

.note {
  margin: 1.05rem 0 0;
  padding: 0.7rem 0.95rem 0.75rem;
  border: 3px solid var(--accent);
  border-radius: 14px;
  font-size: 0.94rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Food photography on checkered paper
   -------------------------------------------------------------------------- */

.photo {
  margin: 1.15rem 0 0;
  padding: 0.5rem;
  border-radius: 16px;
  background-color: #fff;
  background-image: repeating-conic-gradient(var(--ink) 0% 25%, #fff 0% 50%);
  background-size: 18px 18px;
  transform: rotate(-1.1deg);
  box-shadow: 0 10px 22px rgba(23, 19, 16, 0.18);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Larger screens: keep the menu card, never stretch the rows
   -------------------------------------------------------------------------- */

@media (min-width: 520px) {
  .menu {
    --column: 520px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.8rem;
    padding-bottom: 2.6rem;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(23, 19, 16, 0.12);
  }
}

@media print {
  .menu { box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
}
