/* Hallmark · genre: playful · macrostructure: Bento Grid · H1 centred-stack hero (draft B, Night Cart) knobs: art=full logo, glow=lamp · F1 menu grid knobs: groups=3, stick 3/6 cols, plate+pot 2/5 cols with a wide first tile, border=sticker-outline · F4 route knobs: numbering=1/2/3, layout=vertical, connector=dashed-line · nav: N1a (logo + 2 links + slab CTA, sticky) · footer: Ft5 Statement
 * theme: custom (tuned) · vibe: "push-cart kulfi, malai cream, maroon ink, gold" · paper: oklch(98.5% 0.006 85) · accent: oklch(79% 0.13 81)
 * dark: paper oklch(19.3% 0.07 26.9) · ink oklch(93% 0.05 87) · palette sampled from the supplied logo (brand override of the cream/maroon/brass ban)
 * display: Baloo Thambi 2 · body: Figtree · axes: light / rounded-sans / warm (amber 81)
 * enrichment: supplied brand mascot PNG (no generated imagery) · studied: no · context: BRIEF.md (audience Chennai street crowds on phones, Madurai roots, use find a cart, tone playful) · v1.1.0
 * contrast: pass (40-41) · slop: pass (42-45, nav N1a justified: two real destinations, genre file allows N1) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: none (30) · mobile: pass (34, 49, 50-57)
 * taste dials: VARIANCE 7 · MOTION 6 · DENSITY 3
 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(50rem 34rem at 85% 26rem, var(--color-glow), transparent 70%) no-repeat, var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
p, dl, dd { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
h2 { font-size: var(--text-h2); }
[lang="ta"] { font-family: var(--font-display); line-height: 1.5; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* One shared column for every section; bands go full-bleed around it. */
.nav__inner, .hero, .carts, .kulfi__inner, .menu, .contact, .foot__inner {
  width: min(100% - 2 * var(--page-gutter), var(--page-max));
  margin-inline: auto;
}

/* ---------- Buttons, links, chips, TODO slots ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 var(--space-lg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-card);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
}
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--ghost   { background: var(--color-card); color: var(--color-ink); border-color: var(--color-ink); }
.btn--nav     { min-height: 2.75rem; padding-inline: var(--space-md); margin-left: auto; }
.btn:active   { box-shadow: 1px 1px 0 var(--color-shadow); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.link {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
  white-space: nowrap;
}
.link:hover, .link:active { text-decoration-color: currentColor; }

.chip {
  display: inline-block;
  width: fit-content;
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--color-on-cream);
  background: var(--color-cream);
  border: var(--rule-dash) solid var(--color-line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* TODO slots: dashed "stick your label here" outline, never a broken box. */
.todo {
  display: inline-block;
  padding: var(--space-3xs) var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--color-ink-2);
  border: var(--rule-dash) dashed var(--color-todo-line);
  border-radius: var(--radius-card);
}

/* ---------- Nav (N1a: logo, two links, one CTA) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  border-bottom: var(--rule-sticker) solid var(--color-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-2xs);
}
.nav__logo { display: block; flex: none; border-radius: var(--radius-card); }
.nav__logo img { height: 64px; width: auto; }
.nav__links { display: none; }
.nav__links a {
  position: relative;
  padding: var(--space-xs) var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: var(--space-2xs);
  right: var(--space-2xs);
  bottom: var(--space-2xs);
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}

@media (min-width: 40rem) {
  .nav__links { display: flex; gap: var(--space-md); margin-left: auto; }
  .btn--nav { margin-left: 0; }
}

/* ---------- Hero (draft B: logo, headline and buttons in one centred stack) ---------- */

.hero {
  display: grid;
  justify-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-md) var(--space-2xl);
  text-align: center;
}
.hero__art { position: relative; padding-top: 2.75rem; }
.hero__art .mascot {
  width: min(100%, 26rem);
  height: auto;
  cursor: pointer;
}
.bubble {
  position: absolute;
  z-index: var(--z-raised);
  top: 0;
  left: 0;
  padding: var(--space-2xs) var(--space-md);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.4;
  white-space: nowrap;
  color: var(--color-on-cream);
  background: var(--color-cream);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  rotate: -4deg;
}
.bubble::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: -0.6rem;
  width: 1rem;
  height: 1rem;
  background: inherit;
  border-right: var(--rule-sticker) solid var(--color-line);
  border-bottom: var(--rule-sticker) solid var(--color-line);
  transform: rotate(45deg);
}

.hero__copy {
  display: grid;
  gap: var(--space-md);
  justify-items: center;
}
.hero__title {
  font-size: var(--text-display);
  line-height: 1.02;
  max-width: 20ch;
}
.hl { display: inline-block; color: var(--color-accent); white-space: nowrap; }
.hero__sub { max-width: 45ch; color: var(--color-ink-2); }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.hero__ctas .btn {
  flex: 0 0 auto;
  min-height: 3.5rem;
  padding-inline: var(--space-xl);
  font-size: var(--text-lg);
}

@media (min-width: 48rem) {
  .hero { padding-block: var(--space-lg) var(--space-3xl); }
  .hero__art .mascot { width: 32rem; }
  .hero__sub { font-size: var(--text-lg); }
}

/* ---------- Carts (route of ticket stubs) ---------- */

.carts {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.carts__intro { display: grid; gap: var(--space-md); align-content: start; justify-items: start; }
.tag {
  padding: var(--space-3xs) var(--space-md);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-on-cream);
  background: var(--color-cream);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-pill);
  rotate: -3deg;
}
.carts__lede { max-width: 45ch; color: var(--color-ink-2); }
.carts__empty {
  max-width: 45ch;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.35;
  background: var(--color-paper-2);
  border-radius: var(--radius-card);
}

.route {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The dashed road runs through the middle of every stub. */
.route::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-lg));
  bottom: calc(-1 * var(--space-lg));
  left: calc(var(--space-2xl) / 2 - 1.5px);
  border-left: var(--rule-sticker) dashed var(--color-line);
}
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: var(--space-2xl) minmax(0, 1fr);
  background: var(--color-card);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
}
/* Punched notches on the perforation line. */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: calc(var(--space-2xl) - 1.5px - 0.75rem);
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-paper);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: 50%;
}
.ticket::before { top: calc(-0.75rem - var(--rule-sticker)); clip-path: inset(50% 0 0 0); }
.ticket::after  { bottom: calc(-0.75rem - var(--rule-sticker)); clip-path: inset(0 0 50% 0); }
.ticket__stub {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: 1;
  color: var(--color-on-inverse);
  background: var(--color-inverse);
  background-clip: padding-box;
  border-right: var(--rule-sticker) dashed var(--color-line);
  border-radius: calc(var(--radius-card) - var(--rule-sticker)) 0 0 calc(var(--radius-card) - var(--rule-sticker));
}
.ticket__body {
  display: grid;
  gap: var(--space-xs);
  justify-items: start;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.ticket__area { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.ticket__area .todo { font-size: var(--text-base); }

@media (min-width: 56rem) {
  .carts { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); }
  .route { padding-top: var(--space-lg); }
}

/* ---------- What kulfi is (statement band) ---------- */

.kulfi {
  padding-block: var(--space-3xl);
  background: var(--color-paper-2);
  border-block: var(--rule-sticker) solid var(--color-line);
}
.kulfi__inner { display: grid; gap: var(--space-lg); }
.kulfi h2 { font-size: var(--text-display); max-width: 14ch; }
.kulfi__body { max-width: 45ch; font-size: var(--text-lg); color: var(--color-ink-2); }

/* ---------- Menu (three groups, one price each, like the printed board) ---------- */

.menu {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-3xl) var(--space-2xl);
}
.menu__sub { font-size: var(--text-lg); color: var(--color-ink-2); }
.menu-group { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.menu-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-dash) dashed var(--color-line);
}
.menu-group__head h3 { font-size: var(--text-h3); }
.price {
  padding: var(--space-3xs) var(--space-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
}
.price span { font-size: var(--text-sm); }

.dishes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dish { display: grid; gap: var(--space-xs); align-content: start; }
.dish img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-card);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
}
.dish__name { font-size: var(--text-sm); font-weight: 700; line-height: 1.2; }

/* Plate and pot have five each: two across on phones with the first one
   wide, so no row is left with a lone tile. */
.menu-group--feature .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-group--feature .dish:first-child { grid-column: 1 / -1; }
.menu-group--feature .dish:first-child img { aspect-ratio: 16 / 10; }

.menu__note { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-ink-2); }

@media (min-width: 40rem) {
  .dishes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
  .menu-group--feature .dishes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .menu-group--feature .dish:first-child { grid-column: auto; }
  .menu-group--feature .dish:first-child img { aspect-ratio: 1; }
  .dish__name { font-size: var(--text-base); }
}

/* ---------- Contact (card with the mascot peeking over it) ---------- */

.contact {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.contact__wrap { position: relative; max-width: 52rem; }
.contact__mascot {
  position: absolute;
  right: var(--space-md);
  bottom: calc(100% - 6.5rem);
  width: 8rem;
  height: auto;
  rotate: -8deg;
  cursor: pointer;
}
.contact__card {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-card-alt);
  border: var(--rule-sticker) solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker-lg);
}
.contact__row { display: grid; gap: var(--space-xs); }
.contact__row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.contact__row dd { display: grid; gap: var(--space-sm); justify-items: start; }
.contact__row address, .contact__value {
  font-style: normal;
  font-size: var(--text-lg);
  line-height: 1.4;
}
.contact__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

@media (min-width: 48rem) {
  .contact { padding-top: var(--space-3xl); }
  .contact__card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-xl); }
  .contact__row:first-child { grid-column: 1 / -1; }
  .contact__mascot { right: var(--space-xl); width: 9.5rem; bottom: calc(100% - 7.5rem); }
}

/* ---------- Footer (Ft5 statement) ---------- */

.foot {
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--color-paper-2);
  border-top: var(--rule-sticker) solid var(--color-line);
}
.foot__inner { display: grid; gap: var(--space-sm); }
.foot__line {
  max-width: 12ch;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 1.02;
  text-wrap: balance;
}
.foot__ta { font-weight: 700; font-size: var(--text-lg); color: var(--color-ink-2); }
.foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-dash) dashed var(--color-line);
}
.foot__mark {
  width: 11rem;
}
.foot__copy { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- Motion: hero entrance, one-shot section reveal, mascot wiggle, button press ---------- */

@keyframes rise   { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop    { from { opacity: 0; transform: translateY(20px) scale(0.92) rotate(-4deg); } }
@keyframes stamp  { from { opacity: 0; transform: rotate(-3deg) scale(1.35); } }
@keyframes wiggle {
  20% { transform: rotate(-7deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3deg); }
}

/* Revealed sections: hidden only on screen, only when motion is welcome, and
   only once script.js has seen its observer fire (it adds .js then). Reduced
   motion, print, no JS and a silent observer all keep every section visible. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-long) var(--ease-out), transform calc(var(--dur-long) * 1.5) var(--ease-out);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: pop var(--dur-long) var(--ease-out) both; }
  .hero__copy > * { animation: rise var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
  .hero__copy > :nth-child(2) { --i: 1; }
  .hero__copy > :nth-child(3) { --i: 2; }
  .hl { animation: stamp var(--dur-long) var(--ease-out) 560ms both; }

  .mascot.is-wiggling { animation: wiggle var(--dur-wiggle) var(--ease-in-out); }

  .btn { transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
  .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--color-shadow); }
  .nav__links a::after { transition: transform var(--dur-short) var(--ease-out); }

  @media (hover: hover) {
    .mascot:hover { animation: wiggle var(--dur-wiggle) var(--ease-in-out); }
    .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--color-shadow); }
    .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--color-shadow); }
  }
}
.nav__links a:is(:hover, :active)::after { transform: scaleX(1); }
