/* Ma Ma Thai Newark – tokens from _brief.md */

:root {
  --ink:        #1C1512;
  --ink-soft:   #3A2E28;
  --ink-line:   #4A3B33;
  --paper:      #F7F1E8;
  --paper-dim:  #EDE3D6;
  --red:        #D6372F;   /* button fills only: 4.7:1 against white */
  --red-text:   #BC2E28;   /* red as text on paper or paper-dim: 5.2:1 / 4.7:1 */
  --red-deep:   #A82722;
  --red-bright: #ED4141;   /* red on the ink surface: 4.7:1 */
  --herb:       #5E6D4B;   /* 5.6:1 against white */

  --display: 'Bricolage Grotesque', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --body:    'IBM Plex Sans', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 0.6rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none;
  transition: top 140ms ease;
}
.skip:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.62rem 1.15rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn-lg { min-height: 54px; padding: 0.8rem 1.7rem; font-size: 1.04rem; }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn-ghost { border-color: currentColor; color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

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

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.head-inner {
  display: flex; align-items: center; gap: 1.1rem;
  min-height: 68px; padding-block: 0.55rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.08rem;
  line-height: 1; letter-spacing: -0.02em; display: flex; flex-direction: column; gap: 2px;
}
.brand-sub {
  font-family: var(--body); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--red-text);
}

.head-nav { display: none; gap: 1.55rem; }
.head-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500; font-size: 0.94rem;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.head-nav a:hover { border-bottom-color: var(--red); }

.head-act { display: flex; align-items: center; gap: 0.9rem; }
.head-tel { display: none; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 0.92rem; text-decoration: none; }
.head-tel:hover { color: var(--red-text); }

@media (min-width: 880px) {
  .head-nav { display: flex; }
  .head-tel { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(2.6rem, 6vw, 5.4rem) clamp(3rem, 7vw, 6rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.82fr; } }

.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--red-bright); margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 5.1rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}
.lede {
  font-size: clamp(1.06rem, 0.98rem + 0.45vw, 1.24rem);
  color: color-mix(in srgb, var(--paper) 82%, var(--ink));
  max-width: 34ch; margin: 0 0 1.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-facts {
  display: grid; gap: 0.9rem 2.2rem; margin: 2.6rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
}
@media (min-width: 560px) { .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; } }
.hero-facts dt {
  font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 58%, var(--ink));
  margin-bottom: 0.22rem;
}
.hero-facts dd { margin: 0; font-weight: 500; font-size: 0.98rem; }

.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%; border-radius: 14px;
  box-shadow: 0 26px 60px rgb(0 0 0 / 0.42);
  aspect-ratio: 4 / 5; object-fit: cover;
}

/* ---------- section heads ---------- */

.sec-head { max-width: 46ch; margin-bottom: clamp(1.9rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.05rem); margin-bottom: 0.7rem; }
.sec-head p { margin: 0; color: var(--ink-soft); }
.sec-head-inv p { color: color-mix(in srgb, var(--paper) 76%, var(--ink)); }

/* ---------- dishes ---------- */

.dishes { padding-block: clamp(3.4rem, 8vw, 6.4rem); }

.plate-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.1rem, 2.6vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.plate { display: flex; flex-direction: column; }
.plate img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px 14px 4px 4px;
}
.plate-wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .plate-wide { grid-column: span 2; }
  .plate-wide img { aspect-ratio: 16 / 9; }
}
.plate-cap {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.9rem;
  padding: 0.85rem 0.15rem 0;
  border-top: 2px solid var(--ink); margin-top: 0.85rem;
}
.plate-name { font-family: var(--display); font-weight: 700; font-size: 1.09rem; }
.plate-note {
  grid-column: 1 / -1; color: var(--ink-soft);
  font-size: 0.905rem; line-height: 1.5; margin-top: 0.1rem;
}

.price {
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  color: var(--red-text); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- menu ---------- */

.menu {
  background: var(--paper-dim);
  padding-block: clamp(3.4rem, 8vw, 6.4rem);
  border-block: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.sec-head-menu { max-width: 52ch; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.63rem;
  line-height: 1; padding: 3px 5px; border-radius: 4px;
  vertical-align: 2px; margin-left: 0.28rem; font-weight: 500;
}
.tag-v { background: var(--herb); color: #fff; }
.tag-n { background: var(--ink); color: var(--paper); }
.heat { color: var(--red-text); font-size: 0.6rem; margin-left: 0.3rem; letter-spacing: 1px; vertical-align: 2px; }

/* Two explicit columns, not CSS multicol: a course must never be split from its
   price ladder. Stacked on mobile they still read in menu order. */
.menu-cols { display: grid; gap: 0 clamp(2.4rem, 5vw, 4.2rem); align-items: start; }
@media (min-width: 780px) { .menu-cols { grid-template-columns: 1fr 1fr; } }

.course { margin-bottom: 2.7rem; }
.menu-col > .course:last-child { margin-bottom: 0; }
.course h3 {
  font-size: 1.32rem; letter-spacing: -0.01em;
  padding-bottom: 0.5rem; margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}
.course-intro, .course-note {
  color: var(--ink-soft); font-size: 0.885rem; line-height: 1.5;
  margin: 0 0 0.9rem;
}
.course-note { margin: 0.9rem 0 0; font-style: italic; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.7rem;
  align-items: baseline; padding: 0.5rem 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 30%, transparent);
}
.rows-plain li { grid-template-columns: 1fr; }
.rows-tight li { padding: 0.34rem 0; }
.rows li:last-child { border-bottom: 0; }
.rows .d { font-weight: 600; font-size: 0.985rem; }
.rows .d em {
  display: block; font-style: normal; font-weight: 400;
  color: var(--ink-soft); font-size: 0.86rem; line-height: 1.45; margin-top: 0.13rem;
}

.ladder {
  list-style: none; margin: 1rem 0 0; padding: 0.9rem 1rem;
  background: var(--ink); color: var(--paper); border-radius: 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0.55rem 1rem;
}
.ladder li { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.88rem; }
.ladder .price { color: var(--red-bright); }

.menu-foot {
  margin: 0.6rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--ink-soft); max-width: 62ch;
}
.menu-foot a { color: var(--red-text); text-underline-offset: 3px; }

/* ---------- set menus ---------- */

.sets {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(3.4rem, 8vw, 6rem);
}
.set-grid {
  display: grid; gap: clamp(1.1rem, 3vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.set-card {
  border: 1px solid var(--ink-line); border-radius: 22px;
  padding: clamp(1.5rem, 3.4vw, 2.3rem);
  background: color-mix(in srgb, var(--paper) 5%, transparent);
}
.set-card-alt { background: color-mix(in srgb, var(--red) 13%, transparent); border-color: color-mix(in srgb, var(--red-bright) 45%, transparent); }
.set-name {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  margin: 0 0 0.2rem; letter-spacing: -0.02em;
}
.set-price {
  font-family: var(--mono); color: var(--red-bright); font-size: 1.16rem;
  margin: 0 0 1.2rem;
}
.set-price span { font-family: var(--body); color: color-mix(in srgb, var(--paper) 62%, var(--ink)); font-size: 0.85rem; }
.set-card ul { margin: 0 0 1.2rem; padding-left: 1.05rem; }
.set-card li { margin-bottom: 0.42rem; }
.set-note {
  margin: 0; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 56%, var(--ink));
}
.set-cta { margin-top: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- story ---------- */

.story { padding-block: clamp(3.4rem, 8vw, 6.4rem); }
.story-grid { display: grid; gap: clamp(1.8rem, 5vw, 3.8rem); align-items: center; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 0.78fr 1fr; } }
.story-shot { margin: 0; }
.story-shot img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 999px;
  border: 6px solid var(--paper-dim);
}
.story-copy h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.05rem); margin-bottom: 1.1rem; }
.story-copy p { max-width: 60ch; }
.story-sign {
  margin-top: 1.7rem; padding-left: 1.1rem;
  border-left: 3px solid var(--red);
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; line-height: 1.3;
}
.story-sign span {
  display: block; font-family: var(--body); font-weight: 400;
  font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.25rem;
}

/* ---------- find us ---------- */

.find {
  background: var(--paper-dim);
  padding-block: clamp(3.2rem, 7vw, 5.6rem);
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.find-grid { display: grid; gap: clamp(2.2rem, 5vw, 4rem); }
@media (min-width: 820px) { .find-grid { grid-template-columns: 1fr 1fr; } }
.find h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1.2rem; }

.find-hours table { width: 100%; border-collapse: collapse; }
.find-hours th, .find-hours td {
  text-align: left; padding: 0.62rem 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 30%, transparent);
  vertical-align: top;
}
.find-hours th { font-weight: 600; }
.find-hours td { font-family: var(--mono); font-size: 0.88rem; text-align: right; }
.find-hours td span { display: block; }
.find-hours tr:last-child th, .find-hours tr:last-child td { border-bottom: 0; }
.find-hours .closed th, .find-hours .closed td { color: var(--red-text); }

.find-where address { font-style: normal; font-size: 1.06rem; line-height: 1.7; margin-bottom: 1.3rem; }
.find-links { margin: 0 0 1.7rem; }
.find-contact { margin: 0; display: grid; gap: 0.45rem; }
.find-contact dt {
  font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft);
}
.find-contact dd { margin: 0; }
.find-contact a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--red-text); text-underline-offset: 3px; overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: var(--paper); padding-block: clamp(2.6rem, 5vw, 3.8rem) 1.8rem; }
.foot-grid {
  display: grid; gap: 1.9rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.foot-brand { display: flex; align-items: center; gap: 0.85rem; }
.foot-brand img { width: 52px; height: auto; }
.foot-brand p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.foot-brand span {
  display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 62%, var(--ink)); margin-top: 0.2rem;
}
.foot-nav, .foot-social { display: flex; flex-direction: column; }
.foot-nav a, .foot-social a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: 0.94rem;
  color: color-mix(in srgb, var(--paper) 84%, var(--ink));
  width: fit-content;
}
.foot-nav a:hover, .foot-social a:hover { color: var(--red-bright); }
.foot-legal {
  padding-top: 1.4rem; display: grid; gap: 0.4rem;
  font-size: 0.8rem; color: color-mix(in srgb, var(--paper) 58%, var(--ink));
}
.foot-legal p { margin: 0; }

/* ---------- 404 ---------- */

.oops {
  min-height: 76vh; display: grid; place-items: center; text-align: center;
  padding-block: clamp(3rem, 9vw, 6rem);
}
.oops h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem); margin-bottom: 1rem; }
.oops p { max-width: 44ch; margin: 0 auto 1.9rem; color: var(--ink-soft); }
.oops .oops-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.oops img { width: 96px; margin: 0 auto 1.6rem; }
