@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/google-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/google-sans-khmer.woff2") format("woff2");
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  --background: #f9f6ef;
  --paper: #fffcf6;
  --ink: #2e211a;
  --muted: #64534a;
  --line: #e6dbcd;
  --accent: #a83c19;
  --accent-fill: #963815;
  --accent-ink: #fff8ef;
  --tint: #f7eadb;
  --focus: #9b3e21;
  --hero: #2b1810;
  --hero-ink: #fff4e4;
  --hero-accent: #ffc18a;
  --shell: 1120px;
  --menu-font: "Google Sans", "Noto Sans Khmer", "Khmer UI", "Segoe UI", system-ui, sans-serif;
  font-family: var(--menu-font);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #1d1714;
  --paper: #2b211c;
  --ink: #fff3e7;
  --muted: #d2bfb1;
  --line: #513d32;
  --accent: #ffb98a;
  --accent-fill: #ffb98a;
  --accent-ink: #35190d;
  --tint: #392820;
  --focus: #ffc18a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.sr-only, .icon-library { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, .header-controls, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 8px; min-height: 78px; }
.header-controls { gap: 8px; }
.brand { gap: 9px; text-decoration: none; font: 700 clamp(1.32rem, 3vw, 1.72rem)/1 var(--menu-font); letter-spacing: -.05em; white-space: nowrap; }
.brand img { border-radius: 50%; background: white; object-fit: contain; padding: 3px; border: 1px solid var(--line); }
.brand b, .footer b { color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; flex: none; padding: 0; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); }
.icon-button:hover { background: var(--tint); }
.language-button { grid-auto-flow: column; gap: 5px; padding-inline: 11px; border-radius: 24px; font: 700 .76rem/1.25 var(--menu-font); }
.language-button .icon { width: 17px; height: 17px; }
.search-panel { padding-bottom: 12px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--background); }
.search-box > .icon { color: var(--accent); }
.search-box input { flex: 1; width: 100%; min-width: 0; padding: 7px 3px; border: 0; border-radius: 3px; color: var(--ink); background: transparent; font-size: 1rem; }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { appearance: none; }
.search-box button { border: 0; background: transparent; }

.hero { position: relative; display: grid; align-items: stretch; min-height: 364px; margin-top: 28px; border-radius: 24px; overflow: hidden; isolation: isolate; color: var(--hero-ink); background: var(--hero); touch-action: pan-y pinch-zoom; user-select: none; }
.hero-slide { position: relative; isolation: isolate; display: grid; align-items: stretch; background: var(--hero); }
.hero-slide-out { position: absolute; inset: 0; pointer-events: none; }
.hero:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hero-image { position: absolute; inset: 0 0 0 39%; z-index: -2; background: #352117; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero-slide::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #2b1810 31%, #2b1810eb 41%, #2b18105e 58%, transparent 77%); }
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 17px; position: relative; width: 56%; padding: 36px 0 54px clamp(27px, 5vw, 58px); }
.hero-copy { width: 100%; }
.featured-label { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--hero-accent); font-size: .75rem; font-weight: 700; line-height: 1.65; text-transform: uppercase; letter-spacing: .14em; }
.featured-label::before { display: block; flex: none; content: ""; width: 18px; height: 1px; background: currentColor; }
.hero h2 { margin: 0; max-width: 11ch; font: 700 clamp(2.5rem, 5.2vw, 4.25rem)/1.02 var(--menu-font); letter-spacing: -.045em; text-wrap: balance; }
:lang(km) .hero h2 { max-width: 440px; font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.32; letter-spacing: 0; }
.featured-description { max-width: 29ch; margin: 12px 0 0; color: #f3ddc8; font-size: .98rem; line-height: 1.58; }
:lang(km) .featured-description { max-width: 295px; }
.featured-price { display: inline-block; margin: 14px 0 0; border: 1px solid #e3a67572; border-radius: 18px; padding: 4px 11px; color: var(--hero-accent); background: #2b18106e; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.slide-controls { position: absolute; z-index: 2; inset: auto 10px 10px; display: grid; place-items: center; pointer-events: none; }
.slide-dots { display: flex; gap: 6px; align-items: center; padding: 7px 9px; border-radius: 14px; background: #24140bb0; }
.slide-dot { width: 6px; height: 6px; border-radius: 5px; background: #fff4e4ad; }
.slide-dot.is-current { width: 16px; background: var(--hero-accent); }

.menu { margin-top: 33px; padding-bottom: 44px; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-heading h1 { margin: 0; font: 700 clamp(2.25rem, 4.4vw, 3.5rem)/1.1 var(--menu-font); letter-spacing: -.05em; }
:lang(km) .menu-heading h1 { letter-spacing: 0; line-height: 1.45; }
.layout-controls { display: flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
.layout-controls button { border: 0; border-radius: 8px; }
.layout-controls button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-fill); }
.sample-note { display: flex; align-items: flex-start; gap: 7px; margin: 6px 0 13px; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.sample-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.category-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 5px; margin: 0 -4px 13px; }
.category-button { flex: 0 0 auto; padding: 7px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--muted); font-size: .91rem; font-weight: 650; white-space: nowrap; }
.category-button:hover { background: var(--tint); }
.category-button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-fill); border-color: var(--accent-fill); }
.dish-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 0; margin: 0; list-style: none; }
.dish-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.dish-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.dish-info { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: 14px; }
.dish-info h2 { margin: 0; overflow-wrap: anywhere; font: 700 1.22rem/1.23 var(--menu-font); }
:lang(km) .dish-info h2 { line-height: 1.5; }
.dish-list[data-layout="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-layout="list"] .dish-card { --dish-thumbnail: 110px; display: grid; grid-template-columns: var(--dish-thumbnail) minmax(0, 1fr); }
[data-layout="list"] .dish-media { position: relative; min-height: var(--dish-thumbnail); background: var(--tint); }
[data-layout="list"] .dish-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.empty-state { margin: 0; padding: 24px; text-align: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.footer { border-top: 1px solid var(--line); padding-block: 20px 28px; color: var(--muted); font: 700 1.1rem/1.2 var(--menu-font); }
@media (max-width: 900px) {
  .dish-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; }
  .header-controls { gap: 5px; }
  .brand { gap: 5px; }
  .brand img { width: 39px; height: 39px; padding: 2px; }
  .language-button { gap: 3px; padding-inline: 7px; }
  .hero { min-height: 283px; margin-top: 15px; border-radius: 17px; }
  .hero-image { inset-inline-start: 19%; }
  .hero-slide::before { background: linear-gradient(90deg, #2b1810 7%, #2b1810ec 26%, #2b1810b8 52%, #2b18102e 100%); }
  .hero-content { gap: 13px; width: 83%; padding: 21px 0 46px 16px; }
  .hero h2 { font-size: clamp(2.15rem, 7vw, 2.9rem); }
  :lang(km) .hero h2 { font-size: clamp(1.75rem, 6.4vw, 2.6rem); }
  .featured-description { max-width: 23ch; margin-top: 7px; font-size: .875rem; }
  :lang(km) .featured-description { max-width: 205px; }
  .featured-price { margin-top: 9px; }
  .menu { margin-top: 21px; padding-bottom: 28px; }
  .sample-note { margin-top: 5px; margin-bottom: 9px; }
  .category-strip { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; scrollbar-width: thin; }
  .category-button { padding-inline: 13px; }
  .dish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dish-card { border-radius: 12px; }
  .dish-info { padding: 9px; }
  .dish-info h2 { font-size: 1.05rem; }
  .dish-list[data-layout="list"] { grid-template-columns: minmax(0, 1fr); }
  [data-layout="list"] .dish-card { --dish-thumbnail: 94px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 24px); }
  .brand { font-size: 1.12rem; }
  .brand img { width: 33px; height: 33px; }
  .hero-content { width: 95%; }
}
@media (max-width: 279px) {
  .dish-list { grid-template-columns: minmax(0, 1fr); }
  .brand img { display: none; }
}


.category-bar { position: sticky; top: 0; z-index: 5; padding-block: 5px; margin-bottom: 8px; }
.category-bar .category-strip { margin-bottom: 0; }
.dish-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: auto 0 0; padding-top: 8px; }
.dish-size { min-width: 0; }
.dish-size dt { color: var(--muted); font-size: .78rem; }
.dish-size dd { margin: 0; color: var(--accent); font-size: clamp(.73rem, 2.65vw, .94rem); font-weight: 700; white-space: nowrap; }
.dish-size-small { grid-column: 1; text-align: left; }
.dish-size-medium { grid-column: 2; text-align: right; }
.dish-size-large { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer a { font-size: .85rem; font-weight: 400; }

.search-open .hero,
.search-open .menu-heading,
.search-open .category-bar { display: none; }
.search-open .menu { display: flex; flex-direction: column; margin-top: 12px; }
.search-open .sample-note { order: 1; margin-top: 12px; }

[data-layout="list"] .dish-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-layout="list"] .dish-size-medium { text-align: center; }
[data-layout="list"] .dish-size-large { grid-column: 3; display: block; border: 0; padding: 0; text-align: right; }
@media (max-width: 380px) {
  [data-layout="list"] .dish-card { --dish-thumbnail: 68px; }
  [data-layout="list"] .dish-sizes { gap: 3px; }
}

.poster-slide .hero-image { inset: 0; z-index: 0; background: var(--hero); }
.poster-slide .hero-image img { object-fit: contain; object-position: center; }
.poster-slide::before { content: none; }
.poster-slide img { position: absolute; inset: 0; }
