/* SHARED PAGE FOUNDATION — home, regular menu, dialogs, reader and responsive controls. */

:root {
  --ink: #211217;
  --muted: #756569;
  --paper: #fffbf7;
  --white: #fff;
  --rose: #f9e7e9;
  --pink: #f08aa1;
  --red: #b82545;
  --line: #e9deda;
  --gold: #dcc1a0;
  --header: 68px;
  --radius: 20px;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
svg.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 8px;
}
.shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 60px);
  background: rgba(255, 251, 247, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: linear-gradient(145deg, #b82545, #60202d);
  display: grid;
  place-items: center;
  color: white;
}
.brand-mark .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.1;
}
.brand-name {
  display: grid;
  line-height: 1.2;
}
.brand-name strong {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.brand-name small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav > a,
.nav > button {
  font-size: 13px;
  font-weight: 650;
}
.nav > button {
  border: 0;
  background: none;
  min-height: 44px;
}
.header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 19px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
}
.header-menu .icon {
  width: 17px;
  height: 17px;
}
.hero {
  background: #211217;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 12, 15, 0.94), rgba(20, 12, 15, 0.7)),
    url('assets/brand/thai-lotus-storefront.jpeg') center/cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 82% 20%, rgba(177, 54, 76, 0.4), transparent 50%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 68px 54px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 650;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}
.hero .eyebrow {
  color: var(--gold);
}
h1 {
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -3px;
  font-weight: 550;
  margin: 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #f1bbca;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 430px;
  font-size: 16px;
  line-height: 1.7;
  color: #dfcdd0;
  margin: 22px 0 26px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 50px;
  padding: 12px 23px;
  font-weight: 650;
  font-size: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.hero .btn-primary {
  background: #f2d9d2;
  color: #2a171d;
}
.btn-ghost {
  background: transparent;
  border-color: #8a727a;
  color: #fff;
}
.btn-soft {
  background: #f5e8e8;
  color: var(--red);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: #d6bac3;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.hero-note .icon {
  width: 15px;
  height: 15px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 290px;
}
.orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(236, 183, 194, 0.22);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 30px;
  right: 30px;
  bottom: 30px;
  border: 1px solid rgba(236, 183, 194, 0.14);
  border-radius: 50%;
}
.orbit::after {
  inset: -28px;
  transform: scaleX(1.14);
}
.hero-lotus {
  width: 205px;
  height: 205px;
  fill: none;
  stroke: #dfb5ac;
  stroke-width: 0.75;
  position: relative;
  filter: drop-shadow(0 8px 25px #b8254533);
}
.art-caption {
  position: absolute;
  bottom: 0;
  font-size: 10px;
  letter-spacing: 3px;
  color: #dfc2c9;
  text-transform: uppercase;
}
.hero-featured {
  padding-block: 22px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid #ffffff22;
}
.hero-pick {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 0;
  background: none;
  border: 0;
  color: white;
  text-align: left;
}
.pick-number {
  font-family: Georgia, serif;
  font-size: 30px;
  color: #9a737d;
}
.pick-copy {
  display: grid;
  gap: 4px;
}
.pick-copy small {
  font-size: 10px;
  color: #d0aab7;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pick-copy strong {
  font-size: 13px;
  font-weight: 550;
}
.pick-copy > span {
  color: #edd6d5;
  font-size: 12px;
}
.hero-pick > .icon {
  margin-left: auto;
  color: #d3a9b7;
  width: 17px;
}
.menu-explorer {
  padding-block: 55px 64px;
}
.menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.menu-heading .eyebrow {
  color: var(--red);
  margin-bottom: 10px;
}
.menu-heading h2,
.section-title {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.8px;
  font-weight: 550;
  margin: 0;
}
.menu-heading h2 em,
.section-title em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--red);
}
.menu-heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
  max-width: 440px;
}
.menu-heading .book-link {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.book-link .icon {
  color: var(--red);
  width: 19px;
}
.menu-toolbar {
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: rgba(255, 251, 247, 0.98);
  backdrop-filter: blur(18px);
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #ded2cf;
  border-radius: 12px;
  padding: 0 14px;
  min-width: 0;
}
.search-field > .icon {
  color: var(--muted);
  width: 19px;
}
.search-field input {
  background: transparent;
  width: 100%;
  height: 48px;
  border: 0;
  outline: none !important;
  font-size: 16px;
  min-width: 0;
  color: var(--ink);
}
.search-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px #b8254522;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.clear-search {
  background: none;
  border: 0;
  width: 36px;
  height: 44px;
  padding: 8px;
  color: var(--muted);
}
.clear-search .icon {
  width: 18px;
  height: 18px;
}
.saved-filter {
  border: 1px solid #ded2cf;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.saved-filter[aria-pressed='true'] {
  color: var(--red);
  background: #fcebee;
  border-color: #e8a8b9;
}
.saved-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 10px;
  background: #eee4e1;
  border-radius: 99px;
}
.saved-filter[aria-pressed='true'] .saved-count {
  background: #b82545;
  color: white;
}
.category-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-list {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 2px 3px;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 550;
}
.category-chip .icon {
  width: 17px;
  height: 17px;
}
.category-chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.category-chip[aria-pressed='false']:hover {
  background: #f4e9e6;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 24px;
  min-height: 36px;
}
.result-count {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.result-count strong {
  color: var(--ink);
}
.result-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reset-filters {
  font-size: 12px;
  background: none;
  border: 0;
  text-decoration: underline;
  min-height: 44px;
  color: var(--red);
  padding: 6px;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.sort-wrap select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 7px;
  min-height: 40px;
  max-width: 170px;
  font-size: 12px;
  color: var(--ink);
}
.menu-group {
  margin-bottom: 32px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.category-emblem {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #f3e6e2;
  border-radius: 13px;
  color: #ab4b60;
}
.category-emblem .icon {
  width: 24px;
  height: 24px;
}
.group-heading h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 600;
}
.group-heading p {
  font-size: 12px;
  margin: 3px 0 0;
  color: var(--muted);
}
.group-heading > small {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dish-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.dish-card:hover {
  border-color: #d4aaa9;
  box-shadow: 0 8px 25px #29121908;
}
.dish-main {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
  min-height: 205px;
  padding: 20px;
  background: none;
  border: 0;
}
.dish-category {
  font-size: 10px;
  color: #986170;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-right: 38px;
}
.dish-title {
  font-size: 17px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.3px;
  padding-right: 31px;
}
.dish-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  margin-top: auto;
  width: 100%;
}
.dish-price {
  font-weight: 650;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dish-price.unknown {
  font-size: 12px;
  color: var(--muted);
}
.dish-detail-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8d5968;
}
.dish-detail-label .icon {
  width: 14px;
  height: 14px;
}
.favorite-button {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #867079;
}
.favorite-button .icon {
  width: 21px;
  height: 21px;
}
.favorite-button:hover {
  background: #faecee;
}
.favorite-button[aria-pressed='true'] {
  color: var(--red);
}
.favorite-button[aria-pressed='true'] .icon {
  fill: #f4b6c6;
}
.menu-empty {
  padding: 50px 24px;
  text-align: center;
  background: white;
  border: 1px dashed #d8c4c1;
  border-radius: var(--radius);
}
.menu-empty > .icon {
  width: 38px;
  height: 38px;
  color: var(--red);
}
.menu-empty h3 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin: 15px 0 8px;
}
.menu-empty p {
  color: var(--muted);
  max-width: 350px;
  font-size: 14px;
  margin: 0 auto 20px;
}
.menu-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.ebook-band {
  background: #f4e8e4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 56px;
}
.ebook-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 68px;
  align-items: center;
}
.book-preview {
  position: relative;
  width: min(275px, 100%);
  min-height: 305px;
  justify-self: center;
  color: #fff;
  padding: 30px;
  border-radius: 4px 18px 18px 4px;
  box-shadow:
    7px 7px 0 #cbb7af,
    12px 14px 0 #e3d3cb,
    0 18px 40px #21121725;
  background: radial-gradient(circle at 90% 12%, #94465b, #321a24 65%);
  border-left: 7px solid #a07882;
  transform: rotate(-5deg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-preview > .icon {
  width: 85px;
  height: 85px;
  color: #e8bdad;
  stroke-width: 1;
}
.book-preview small {
  color: #e4bdc5;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.book-preview strong {
  font-size: 37px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 450;
}
.book-preview > span {
  font-size: 11px;
  color: #e7d2d6;
  letter-spacing: 1px;
  margin-top: auto;
}
.ebook-copy .eyebrow {
  color: var(--red);
}
.ebook-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 18px 0 22px;
  max-width: 440px;
}
.ebook-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
  color: #895163;
  font-size: 12px;
}
.ebook-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ebook-details .icon {
  width: 17px;
  height: 17px;
}
.visit {
  background: #211217;
  color: #fff;
  padding-block: 58px;
}
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.visit .eyebrow {
  color: #d5adbe;
}
.visit .section-title {
  max-width: 390px;
}
.visit .section-title em {
  color: #edb9c7;
}
.visit-copy > p:not(.eyebrow) {
  color: #cfb7c0;
  font-size: 14px;
  max-width: 360px;
  margin: 20px 0 25px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 25px;
}
.info-item {
  border-top: 1px solid #ffffff30;
  padding-top: 14px;
}
.info-item strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e9c5bc;
  font-weight: 550;
}
.info-item p {
  font-size: 13px;
  color: #e2d3d7;
  margin: 10px 0 0;
  line-height: 1.75;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 25px;
  color: var(--muted);
  font-size: 11px;
  gap: 15px;
}
.footer strong {
  color: var(--ink);
  font-weight: 600;
}
.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quickbar {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: #2c1720;
  color: white;
  font-size: 13px;
  border-radius: 999px;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 110;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(21, 10, 17, 0.7);
  backdrop-filter: blur(7px);
}
.dish-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--paper);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-shadow: 0 30px 100px #14081155;
  overscroll-behavior: contain;
}
.detail-top {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.detail-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #8e5666;
  text-transform: uppercase;
}
.detail-brand > .icon {
  width: 25px;
  height: 25px;
}
.close-button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.close-button > .icon {
  width: 19px;
  height: 19px;
}
.detail-body {
  padding: 28px 28px 30px;
}
.detail-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin: 0 0 12px;
}
.detail-body h2 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 550;
  margin: 0 0 18px;
}
.detail-price {
  font-size: 26px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  margin: 0 0 20px;
}
.detail-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 26px;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.detail-actions .btn {
  font-size: 13px;
  min-height: 50px;
}
.detail-actions .btn[aria-pressed='true'] .icon {
  fill: #f1b8c6;
}
.detail-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
}
.fallback-link {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  width: 100%;
  background: #fff;
}
.ebook-modal {
  border: 0;
  background: #23151c;
  width: 100%;
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 0;
  color: white;
  overflow: hidden;
}
.reader {
  height: 100%;
  padding: max(18px, env(safe-area-inset-top)) 26px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.reader-top h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0;
}
.reader-top p {
  margin: 3px 0 0;
  color: #d5bfc8;
  font-size: 11px;
}
.reader .close-button {
  background: #ffffff12;
  border-color: #ffffff30;
  color: white;
}
.reader .close-button:focus-visible,
.reader-tab:focus-visible,
.reader-button:focus-visible {
  outline-color: #f5b9ce;
}
.reader-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 3px 5px;
}
.reader-tabs::-webkit-scrollbar {
  display: none;
}
.reader-tab {
  color: #edd9e3;
  font-size: 12px;
  background: #ffffff0c;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  min-height: 44px;
  padding: 9px 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.reader-tab[aria-pressed='true'] {
  color: #29171e;
  background: #f6e6df;
  border-color: #f6e6df;
}
.reader-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  perspective: 1400px;
}
.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100%;
  max-height: 670px;
  width: min(100%, 1030px);
  background: #f8ede7;
  border-radius: 6px 15px 15px 6px;
  box-shadow: 0 22px 70px #08030870;
  overflow: hidden;
  position: relative;
}
.book::after {
  content: '';
  width: 18px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 9px);
  background: linear-gradient(90deg, transparent, #27141b25, transparent);
  pointer-events: none;
}
.page {
  background: var(--paper);
  color: var(--ink);
  padding: 26px 28px 38px;
  overflow-y: auto;
  position: relative;
  min-height: 0;
  overscroll-behavior: contain;
}
.page.right {
  border-left: 1px solid #d6c6c1;
}
.page-cover {
  background: radial-gradient(circle at 100% 0, #925369, #321c27 68%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.cover-lotus {
  width: 110px;
  height: 110px;
  margin-inline: auto;
  color: #efc7b5;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
}
.page-cover .page-kicker {
  color: #e7bdc9;
  margin: 0;
}
.page-cover h3 {
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.03;
  font-weight: 450;
  margin: 0;
}
.page-cover p {
  font-size: 14px;
  color: #e8ccd5;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}
.page-kicker {
  color: var(--red);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 10px;
}
.page h3 {
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.9px;
  font-weight: 550;
  margin: 0;
}
.page-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 15px;
}
.book-menu-line {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.book-line-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.book-line-top strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.book-line-top > span {
  font-size: 13px;
  color: var(--red);
  font-weight: 650;
  white-space: nowrap;
}
.book-menu-line p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0 8px;
}
.book-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  background: none;
  border: 0;
  padding: 5px 7px;
  min-height: 44px;
  font-size: 11px;
  border-radius: 8px;
}
.book-text-button .icon {
  width: 16px;
  height: 16px;
}
.book-text-button[aria-pressed='true'] .icon {
  fill: #f4b6c6;
}
.page-number {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #967781;
  margin-top: 14px;
}
.page-cover .page-number {
  color: #deb6c3;
}
.reader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reader-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: #ffffff0e;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  min-height: 48px;
  padding: 10px 20px;
  font-size: 13px;
}
.reader-button.primary {
  background: #f2d9d2;
  color: #2a171d;
  border-color: #f2d9d2;
}
.reader-button:disabled {
  opacity: 0.35;
}
.page-label {
  font-size: 12px;
  color: #e0c3cf;
  text-align: center;
}
.book.flip-next {
  animation: page-next 0.28s ease;
}
.book.flip-prev {
  animation: page-prev 0.28s ease;
}
@keyframes page-next {
  from {
    opacity: 0.7;
    transform: rotateY(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes page-prev {
  from {
    opacity: 0.7;
    transform: rotateY(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1400px) {
  .hero-inner {
    padding-block: 82px 60px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .hero-inner {
    gap: 28px;
  }
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ebook-layout {
    gap: 35px;
  }
  .visit-layout {
    gap: 28px;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 64px;
  }
  .shell {
    width: calc(100% - 36px);
  }
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .site-header {
    padding-inline: 18px;
  }
  .brand-name strong {
    font-size: 13px;
    letter-spacing: 1.6px;
  }
  .brand-name small {
    font-size: 8px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .nav > a:not(.header-menu),
  .nav > button {
    display: none;
  }
  .header-menu {
    font-size: 12px;
    padding: 10px 14px;
  }
  .header-menu .icon {
    width: 16px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 35px 0 29px;
  }
  .hero-art {
    display: none;
  }
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(20, 12, 15, 0.94), rgba(20, 12, 15, 0.74)),
      url('assets/brand/thai-lotus-storefront.jpeg');
    background-position: 65% center;
  }
  .hero::after {
    background: radial-gradient(circle at 95% 12%, #b64b6570, transparent 60%);
  }
  h1 {
    font-size: clamp(40px, 10.8vw, 62px);
    letter-spacing: -2px;
    max-width: 560px;
  }
  .hero .eyebrow {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 14px;
    max-width: 330px;
    line-height: 1.65;
    margin: 17px 0 21px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 13px;
  }
  .hero-note {
    margin-top: 18px;
    font-size: 10px;
  }
  .hero-featured {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 23px;
    padding-block: 14px 19px;
    scrollbar-width: none;
  }
  .hero-featured::-webkit-scrollbar {
    display: none;
  }
  .hero-pick {
    flex: 0 0 235px;
    scroll-snap-align: start;
    min-height: 49px;
  }
  .pick-number {
    font-size: 25px;
  }
  .pick-copy strong {
    font-size: 12px;
  }
  .pick-copy small {
    font-size: 9px;
  }
  .hero-pick > .icon {
    display: none;
  }
  .menu-explorer {
    padding-block: 30px 35px;
  }
  .menu-heading {
    align-items: start;
    gap: 14px;
    margin-bottom: 19px;
  }
  .menu-heading h2 {
    font-size: 31px;
    letter-spacing: -1.2px;
  }
  .menu-heading p {
    font-size: 12px;
    line-height: 1.65;
    margin-top: 9px;
    max-width: 260px;
  }
  .menu-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .menu-heading .book-link {
    border-radius: 12px;
    width: 45px;
    height: 45px;
    min-height: 45px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
  .book-link .book-link-text {
    display: none;
  }
  .book-link .icon {
    width: 23px;
    height: 23px;
  }
  .menu-toolbar {
    padding: 10px 0 9px;
    margin-bottom: 14px;
  }
  .search-row {
    gap: 8px;
    margin-bottom: 9px;
  }
  .search-field {
    padding-inline: 11px;
    border-radius: 10px;
  }
  .search-field input {
    height: 45px;
  }
  .saved-filter {
    min-height: 47px;
    padding: 0 10px;
    gap: 5px;
    border-radius: 10px;
  }
  .saved-filter > span.saved-text {
    display: none;
  }
  .saved-filter > .icon {
    width: 19px;
    height: 19px;
  }
  .category-chip {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 11px;
    gap: 6px;
  }
  .category-chip .icon {
    width: 15px;
    height: 15px;
  }
  .category-list {
    gap: 6px;
  }
  .category-scroll {
    margin-inline: -18px;
    padding-inline: 16px;
  }
  .result-row {
    gap: 6px;
    margin-bottom: 18px;
  }
  .sort-wrap > span {
    display: none;
  }
  .sort-wrap select {
    font-size: 11px;
    min-height: 40px;
    max-width: 125px;
  }
  .result-count {
    font-size: 11px;
    line-height: 1.4;
    max-width: 45%;
  }
  .reset-filters {
    font-size: 11px;
    padding: 4px;
  }
  .result-tools {
    gap: 4px;
  }
  .dish-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .dish-main {
    padding: 16px;
    min-height: 153px;
  }
  .dish-title {
    font-size: 16px;
    padding-right: 34px;
  }
  .dish-category {
    font-size: 9px;
    margin-bottom: 5px;
  }
  .dish-desc {
    font-size: 12px;
    line-height: 1.55;
    margin-top: 7px;
  }
  .dish-footer {
    padding-top: 12px;
  }
  .dish-price {
    font-size: 17px;
  }
  .favorite-button {
    right: 9px;
    top: 9px;
  }
  .group-heading {
    gap: 10px;
    margin-bottom: 12px;
  }
  .group-heading h3 {
    font-size: 18px;
  }
  .group-heading p {
    font-size: 11px;
  }
  .category-emblem {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .category-emblem .icon {
    width: 21px;
    height: 21px;
  }
  .group-heading > small {
    font-size: 10px;
  }
  .menu-group {
    margin-bottom: 26px;
  }
  .menu-footnote {
    font-size: 11px;
  }
  .ebook-band {
    padding-block: 35px;
  }
  .ebook-layout {
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: start;
  }
  .book-preview {
    width: 90px;
    min-height: 140px;
    padding: 10px;
    gap: 9px;
    box-shadow:
      3px 3px 0 #cbb7af,
      6px 6px 0 #e3d3cb;
    border-left-width: 3px;
    border-radius: 2px 8px 8px 2px;
    margin-top: 25px;
  }
  .book-preview > .icon {
    width: 30px;
    height: 30px;
  }
  .book-preview small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .book-preview strong {
    font-size: 18px;
    letter-spacing: -0.4px;
  }
  .book-preview > span {
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .ebook-copy .section-title {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .ebook-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .ebook-copy > p:not(.eyebrow) {
    font-size: 12px;
    margin: 12px 0 17px;
  }
  .ebook-details {
    gap: 8px;
    font-size: 10px;
    margin-bottom: 16px;
  }
  .ebook-details .icon {
    width: 14px;
    height: 14px;
  }
  .ebook-copy .btn {
    font-size: 12px;
    min-height: 45px;
    padding: 10px 16px;
  }
  .visit {
    padding-block: 35px;
  }
  .visit-layout {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .visit .section-title {
    font-size: 33px;
    letter-spacing: -1px;
    max-width: 300px;
  }
  .visit-copy > p:not(.eyebrow) {
    font-size: 13px;
    margin: 14px 0 21px;
  }
  .info-grid {
    gap: 18px;
  }
  .info-item strong {
    font-size: 9px;
  }
  .info-item p {
    font-size: 11px;
  }
  .footer {
    padding-block: 20px;
    font-size: 10px;
    flex-direction: column;
    align-items: start;
    gap: 6px;
  }
  .quickbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    background: rgba(255, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 30px #25111808;
    gap: 4px;
  }
  .quickbar > a,
  .quickbar > button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 52px;
    background: none;
    border: 0;
    border-radius: 12px;
    font-size: 10px;
    color: #876b76;
    padding: 7px 2px;
  }
  .quickbar .icon {
    width: 21px;
    height: 21px;
  }
  .quickbar .nav-active {
    background: #f5e7e8;
    color: var(--red);
  }
  .quick-picks-icon {
    position: relative;
    display: flex;
  }
  .quickbar .saved-count {
    position: absolute;
    top: -5px;
    right: -12px;
    height: 16px;
    min-width: 16px;
    font-size: 8px;
    background: var(--red);
    color: white;
    border: 2px solid var(--paper);
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    font-size: 12px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
  }
  .dish-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    max-height: calc(100dvh - 40px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .detail-top {
    padding: 15px 20px;
  }
  .detail-body {
    padding: 23px 22px 28px;
  }
  .detail-body h2 {
    font-size: 29px;
  }
  .detail-description {
    font-size: 15px;
  }
  .detail-actions .btn {
    padding-inline: 14px;
  }
  .detail-price {
    font-size: 24px;
  }
  .reader {
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .reader-top h2 {
    font-size: 16px;
  }
  .reader-top p {
    font-size: 10px;
  }
  .reader .close-button {
    width: 44px;
    height: 44px;
  }
  .reader-tabs {
    gap: 6px;
  }
  .reader-tab {
    font-size: 11px;
    padding: 8px 12px;
  }
  .book {
    grid-template-columns: 1fr;
    border-radius: 12px;
    max-height: none;
  }
  .book::after,
  .page.right {
    display: none;
  }
  .page {
    padding: 22px 20px 30px;
  }
  .page h3 {
    font-size: 28px;
  }
  .page-cover h3 {
    font-size: 49px;
  }
  .book-menu-line {
    padding: 13px 0;
  }
  .book-line-top strong {
    font-size: 14px;
  }
  .book-line-top > span {
    font-size: 12px;
  }
  .book-menu-line p {
    font-size: 12px;
  }
  .reader-button {
    min-height: 46px;
    padding: 10px 13px;
    font-size: 12px;
    gap: 4px;
  }
  .reader-button .icon {
    width: 17px;
    height: 17px;
  }
  .page-label {
    font-size: 10px;
    max-width: 115px;
  }
  .cover-lotus {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 350px) {
  .shell {
    width: calc(100% - 28px);
  }
  .site-header {
    padding-inline: 14px;
  }
  .brand-name strong {
    font-size: 12px;
  }
  .header-menu {
    padding: 10px;
    font-size: 11px;
  }
  .header-menu .icon {
    display: none;
  }
  h1 {
    font-size: 38px;
  }
  .hero-actions .btn {
    font-size: 12px;
    padding: 10px 15px;
  }
  .category-scroll {
    margin-inline: -14px;
    padding-inline: 12px;
  }
  .sort-wrap select {
    max-width: 110px;
  }
  .ebook-layout {
    grid-template-columns: 70px 1fr;
    gap: 18px;
  }
  .book-preview {
    width: 70px;
  }
  .ebook-copy .section-title {
    font-size: 25px;
  }
  .reader-button {
    padding-inline: 10px;
  }
  .reader-button .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover {
    transform: none;
  }
}
