@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

:root,
[data-theme="light"] {
  --ww-bg: #fde2ab;
  --ww-surface: #fdeecb;
  --ww-text: #232021;
  --ww-muted: #5a5250;
  --ww-red: #b93339;
  --ww-red-bright: #c83f46;
  --ww-green: #405c38;
  --ww-green-dark: #324a2c;
  --ww-focus: #125e63;
  color-scheme: light;
}

[data-theme="dark"] {
  --ww-bg: #211c18;
  --ww-surface: #2d2520;
  --ww-text: #fff0d4;
  --ww-muted: #d9c6aa;
  --ww-red: #ff8b82;
  --ww-red-bright: #ffaaa2;
  --ww-green: #9ec48d;
  --ww-green-dark: #b4d7a4;
  --ww-focus: #ffd37a;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  background: var(--ww-bg);
}

img {
  background: var(--ww-surface);
}

.slot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-cards .slot-image {
  object-fit: contain;
  background: #fff;
}

.v2-cards .plate-photo {
  object-position: center bottom;
}

.v2-cards .bowl-photo {
  transform: scale(1.08);
  transform-origin: center;
}

.v2-cards .hainanese-card-photo {
  transform: translateY(10px) scale(1.07);
  transform-origin: center;
}

.social-follow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--ww-red-bright);
  border-radius: 999px;
  color: var(--ww-red);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-follow:hover,
.social-follow:focus-visible {
  background: var(--ww-red);
  color: var(--ww-surface);
}

.site-logo {
  display: block;
  width: auto;
  height: 76px;
}

@media (max-width: 820px) {
  .site-logo {
    height: 62px;
  }
}

.pass-image {
  object-position: center;
}

.kitchen-photo {
  object-position: center 48%;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ww-text);
  color: var(--ww-surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

nav {
  position: relative;
  z-index: 20;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--ww-red) 42%, transparent);
  border-radius: 999px;
  color: var(--ww-red);
  background: var(--ww-surface);
  cursor: pointer;
}

.icon-button:hover {
  background: color-mix(in srgb, var(--ww-red) 9%, var(--ww-surface));
}

.menu-button {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 2rem;
  background: color-mix(in srgb, var(--ww-bg) 96%, transparent);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mobile-menu[data-open="true"] {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.mobile-menu nav {
  display: grid;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading, serif);
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.1;
  color: var(--ww-text);
}

.mobile-menu a[aria-current="page"] {
  color: var(--ww-red);
}

.mobile-menu .mobile-order {
  margin-top: 1.5rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  background: var(--ww-green);
  color: var(--ww-surface);
  font-family: var(--font-body, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.img-fallback {
  display: grid;
  width: 100%;
  min-height: 14rem;
  place-items: center;
  padding: 2rem;
  background: var(--ww-surface);
  color: var(--ww-muted);
  text-align: center;
}

.map-panel {
  position: relative;
}

.map-fallback {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--ww-surface);
  box-shadow: 0 8px 24px rgb(35 32 33 / 18%);
  color: var(--ww-red);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 4.5rem;
  }

  nav > div:not(.nav-tools) {
    display: none !important;
  }

  .menu-button {
    display: inline-grid;
  }

  .site-grid {
    grid-template-columns: 1fr !important;
  }

  .site-pad {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  footer > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  iframe {
    height: 340px !important;
  }

  h1 {
    overflow-wrap: anywhere;
  }
}

@media (hover: none) {
  article [style*="opacity:0"] {
    position: static !important;
    opacity: 1 !important;
    background: var(--ww-text) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026 editorial refresh: Chinatown night-market energy, not restaurant-theme cards */
:root,
[data-theme="light"] {
  --ww-paper: #fff7e5;
  --ww-rule: color-mix(in srgb, var(--ww-text) 20%, transparent);
  --ww-shadow: 0 18px 45px rgb(104 61 30 / 10%);
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.18vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  --text-xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.75rem);
  --text-hero: clamp(3rem, 1.4rem + 5.8vw, 7.25rem);
}

[data-theme="dark"] {
  --ww-paper: #352b24;
  --ww-rule: color-mix(in srgb, var(--ww-text) 24%, transparent);
  --ww-shadow: 0 18px 45px rgb(0 0 0 / 22%);
}

@view-transition {
  navigation: auto;
}

body {
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

nav[data-screen-label="Nav"] {
  border-bottom: 1px solid var(--ww-rule);
}

nav[data-screen-label="Nav"] > div:not(.nav-tools) > a:last-child {
  border: 1px solid var(--ww-green);
  background: transparent !important;
  color: var(--ww-green) !important;
  border-radius: 2px !important;
  padding: 10px 16px !important;
}

.icon-button {
  border-width: 1px;
  background: transparent;
}

.tonight-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 14px;
  padding: 7px 20px;
  background: var(--ww-red);
  color: var(--ww-surface);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.tonight-ribbon span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tonight-ribbon a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-hero {
  min-height: 76vh;
  grid-template-columns: 0.92fr 1.08fr !important;
  gap: clamp(44px, 7vw, 96px) !important;
  padding-block: clamp(56px, 8vw, 112px) !important;
}

.home-hero h1 {
  max-width: 10ch;
  font-size: var(--text-hero) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em;
}

.home-hero h1 span {
  color: var(--ww-red);
}

.home-hero__copy > p {
  max-width: 38ch !important;
}

.home-hero__media > div:first-child {
  aspect-ratio: 4 / 5 !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: var(--ww-shadow);
}

.home-hero__media .hero-plate {
  object-fit: cover;
  object-position: center 62%;
}

/* Real interaction states — the inline style-hover attrs are inert in plain HTML */
nav[data-screen-label="Nav"] > div:not(.nav-tools) > a:not(:last-child):hover,
nav[data-screen-label="Nav"] > div:not(.nav-tools) > a:not(:last-child):focus-visible {
  color: var(--ww-red) !important;
}

nav[data-screen-label="Nav"] > div:not(.nav-tools) > a:last-child:hover {
  background: var(--ww-green) !important;
  color: var(--ww-surface) !important;
}

.primary-cta:hover,
a[style*="background:var(--ww-green)"]:hover {
  background: var(--ww-green-dark) !important;
  color: var(--ww-surface) !important;
}

.primary-cta:active {
  transform: translateY(1px);
}

.text-cta:hover {
  text-decoration-thickness: 2px;
}

a,
.primary-cta,
.text-cta {
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-thickness 0.15s ease;
}

.home-hero__media > div:last-child {
  left: auto !important;
  right: -18px;
  bottom: 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ww-red) !important;
  color: var(--ww-surface) !important;
  letter-spacing: 0.05em;
}

.primary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 2px !important;
  box-shadow: none;
}

.support-local-note {
  margin: 2px 0 0;
  color: var(--ww-green);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.delivery-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--ww-muted);
  font-size: 13px;
  text-align: center;
}

.delivery-fallback a {
  color: var(--ww-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  padding-inline: 4px !important;
  background: transparent !important;
  color: var(--ww-red) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

[data-screen-label="Atmosphere"] {
  border-block: 1px solid var(--ww-rule) !important;
}

[data-screen-label="Atmosphere"] .v2-3col {
  grid-template-columns: 0.82fr 1.18fr !important;
  gap: 16px !important;
}

[data-screen-label="Atmosphere"] .v2-3col > div {
  border: 0 !important;
  border-radius: 2px !important;
}

[data-screen-label="Atmosphere"] .v2-3col > div:nth-child(2) {
  aspect-ratio: 16 / 9 !important;
}

[data-screen-label="Atmosphere"] .v2-3col > div:nth-child(3) {
  display: none;
}

[data-screen-label="Signatures"] > div:first-child h2,
[data-screen-label="Chef story"] h2,
[data-screen-label="Order"] h2 {
  font-size: var(--text-xl) !important;
}

.v2-cards {
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 18px !important;
}

.v2-cards > article {
  grid-column: span 5;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: var(--ww-shadow);
}

.v2-cards > article:nth-child(3n + 1) {
  grid-column: span 7;
}

.v2-cards > article [style*="opacity:0"] {
  display: none !important;
}

.v2-cards > article > div:first-child {
  border-bottom: 1px solid var(--ww-rule);
}

.v2-cards .slot-image {
  transform: none !important;
}

[data-screen-label="Chef story"] img,
[data-screen-label="Origin"] img,
[data-screen-label="Producers"] img {
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: var(--ww-shadow);
}

[data-screen-label="Press"] {
  border-block: 1px solid var(--ww-rule) !important;
}

[data-screen-label="Order"] [style*="border-radius:28px"],
[data-screen-label="Catering booking"] [style*="border-radius:28px"],
[data-screen-label="Visit details"] [style*="border-radius:28px"] {
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: var(--ww-shadow);
}

[data-screen-label="Craft"] .st-3col {
  grid-template-columns: repeat(12, 1fr) !important;
  align-items: start;
}

[data-screen-label="Craft"] .st-3col > div {
  grid-column: span 5;
}

[data-screen-label="Craft"] .st-3col > div:first-child {
  grid-column: span 7;
}

[data-screen-label="Craft"] .st-3col > div:last-child {
  grid-column: 3 / span 8;
}

[data-screen-label="Craft"] img {
  aspect-ratio: 16 / 10 !important;
  border: 0 !important;
  border-radius: 2px !important;
}

[data-screen-label="The pass"] > div > div {
  border-block: 0 !important;
}

[data-screen-label="Catering hero"],
[data-screen-label="Visit hero"] {
  padding-top: clamp(64px, 8vw, 112px) !important;
  padding-bottom: clamp(32px, 5vw, 64px) !important;
}

[data-screen-label="Catering hero"] h1,
[data-screen-label="Visit hero"] h1,
[data-screen-label="Menu header"] h1 {
  font-size: clamp(3rem, 5.8vw, 5.8rem) !important;
  line-height: 0.98 !important;
}

.visit-actions {
  align-items: center;
}

/* Menu as a book: contents, chapters, paper, folios */
.menu-index {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  max-width: 100% !important;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  padding: 13px max(24px, calc((100vw - 1020px) / 2)) !important;
  border-block: 1px solid var(--ww-rule);
  background: color-mix(in srgb, var(--ww-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
  white-space: nowrap;
}

.menu-index::-webkit-scrollbar {
  display: none;
}

.menu-index span {
  color: var(--ww-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-index a {
  color: var(--ww-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.menu-index a:hover,
.menu-index a:focus-visible {
  color: var(--ww-red);
}

[data-screen-label="Featured — House Bowl"] .mv2-feature {
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--ww-paper) !important;
  box-shadow: var(--ww-shadow);
}

[data-screen-label="Featured — House Bowl"] img {
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #fff;
}

[data-screen-label="Featured — House Bowl"] [style*="border:1.5px dashed"] {
  border: 0 !important;
  border-top: 1px solid var(--ww-rule) !important;
  border-radius: 0 !important;
  padding-inline: 0 !important;
}

.menu-book {
  counter-reset: folio;
  gap: 28px !important;
}

.menu-book > section {
  position: relative;
  counter-increment: folio;
  scroll-margin-top: 72px;
  margin-right: 5%;
  padding: clamp(32px, 5vw, 60px);
  background: var(--ww-paper);
  box-shadow: var(--ww-shadow);
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.menu-book > section:nth-of-type(even) {
  margin-right: 0;
  margin-left: 5%;
}

.menu-book > section::after {
  content: "WOK WOK  ·  " counter(folio, decimal-leading-zero);
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: var(--ww-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.menu-book > section > div:first-child {
  border-bottom: 1px solid var(--ww-rule) !important;
}

.menu-book > section h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem) !important;
  line-height: 1 !important;
}

.menu-book .mv2-2col {
  column-rule: 1px solid var(--ww-rule);
}

.menu-book > div:last-child {
  padding-block: 48px;
}

.reveal-section {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal-section {
    opacity: 0.15;
    animation: editorial-reveal linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 85%;
  }
}

@keyframes editorial-reveal {
  to {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .tonight-ribbon {
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .tonight-ribbon a {
    display: none;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr !important;
    padding-top: 48px !important;
    padding-bottom: 32px !important;
  }

  .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 14vw, 4.8rem) !important;
    overflow-wrap: normal;
  }

  .home-hero__copy > p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .home-hero .primary-cta {
    display: none;
  }

  .home-hero__media {
    margin-top: 12px;
  }

  .home-hero__media > div:first-child {
    aspect-ratio: 4 / 5 !important;
  }

  .home-hero__media .hero-plate {
    object-position: center 70%;
  }

  [data-screen-label="Atmosphere"] .v2-3col,
  .v2-cards,
  [data-screen-label="Craft"] .st-3col {
    grid-template-columns: 1fr !important;
  }

  [data-screen-label="Atmosphere"] .v2-3col > div,
  .v2-cards > article,
  .v2-cards > article:nth-child(3n + 1),
  [data-screen-label="Craft"] .st-3col > div,
  [data-screen-label="Craft"] .st-3col > div:first-child,
  [data-screen-label="Craft"] .st-3col > div:last-child {
    grid-column: auto !important;
  }

  [data-screen-label="Atmosphere"] .v2-3col > div:first-child {
    display: none;
  }

  [data-screen-label="Atmosphere"] .v2-3col > div:nth-child(2) {
    aspect-ratio: 4 / 3 !important;
  }

  .v2-cards > article {
    box-shadow: 0 10px 28px rgb(104 61 30 / 9%);
  }

  [data-screen-label="Catering hero"],
  [data-screen-label="Visit hero"] {
    text-align: left !important;
  }

  [data-screen-label="Catering hero"] p,
  [data-screen-label="Visit hero"] p {
    margin-inline: 0 !important;
  }

  [data-screen-label="Catering hero"] h1,
  [data-screen-label="Visit hero"] h1,
  [data-screen-label="Menu header"] h1 {
    font-size: clamp(2.8rem, 13vw, 4rem) !important;
    overflow-wrap: normal;
  }

  .visit-actions {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  .visit-actions .text-cta {
    padding-block: 8px !important;
  }

  .menu-index {
    top: 0;
    gap: 18px;
    padding-inline: 20px !important;
  }

  [data-screen-label="Featured — House Bowl"] .mv2-feature {
    padding: 20px !important;
  }

  .menu-book {
    padding-inline: 14px !important;
  }

  .menu-book > section,
  .menu-book > section:nth-of-type(even) {
    margin-inline: 0;
    padding: 28px 20px 52px;
    box-shadow: 0 8px 24px rgb(104 61 30 / 8%);
  }

  .menu-book .mv2-2col {
    column-rule: 0;
  }

  .menu-book > section h2 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1 !important;
    animation: none !important;
  }
}

.zh {
  font-family: 'Ma Shan Zheng', var(--font-body, 'Figtree'), sans-serif;
  font-size: 1.16em;
  line-height: 1;
  font-weight: 400;
}

