/* Chop Suey Hut — CONCEPT A: "Lacquer & Gold"
   The dining room after dark: black lacquer, dark wood, gold leaf. The gold logo sits on a
   lacquer-black header in both themes. Headings are a high-contrast serif in gold; labels are
   spaced small caps. The memorable idea: a gold fret band (images/fret.svg, our own artwork,
   like the lattice screen in the dining room) runs between sections and frames photos with
   gold corner brackets, and the six Best of the Fox years sit in a row of gold medallions.
   Light mode is cream silk with dark-gold ink; dark mode is lacquer. */

:root {
  --lacquer: #120e0b;
  --gold: #8a6a12;           /* headings/links on cream (AA on --bg) */
  --gold-leaf: #d4af37;      /* logo gold: rules, frames, fret band */
  --btn: #d4af37;
  --btn-ink: #120e0b;
  --bg: #f6eee0;
  --paper: #fffaf1;
  --ink: #241a12;
  --muted: #6b5a47;
  --line: #e0cfb2;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #e2c15d;
    --bg: #120e0b;
    --paper: #1d1712;
    --ink: #f1e6d2;
    --muted: #b9a88f;
    --line: #3a2f24;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --gold: #e2c15d;
  --bg: #120e0b;
  --paper: #1d1712;
  --ink: #f1e6d2;
  --muted: #b9a88f;
  --line: #3a2f24;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 600; line-height: 1.05; text-wrap: balance; color: var(--gold); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
:focus-visible { outline: 2px solid var(--gold-leaf); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--btn); color: var(--btn-ink); }
.skip-link:focus { inset-block-start: 1rem; }
.visually-hidden { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

.label { margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* Fret band: images/fret.svg as a mask, tinted gold */
.fret { block-size: 14px; background: var(--gold-leaf); -webkit-mask: url("/images/fret.svg") left center / 14px 14px repeat-x; mask: url("/images/fret.svg") left center / 14px 14px repeat-x; opacity: 0.85; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 3rem; padding: 0.65rem 1.5rem; border: 1px solid var(--gold-leaf); border-radius: 0; font: 500 0.85rem/1 var(--font); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn-gold { background: var(--btn); color: var(--btn-ink); }
.btn-gold:hover { background: #e9c75a; }
.btn-line { background: transparent; color: inherit; }
.btn-line:hover { background: rgb(212 175 55 / 0.15); }

/* Header (lacquer in both themes so the gold logo always reads) */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--lacquer); color: #f1e6d2; border-block-end: 1px solid var(--gold-leaf); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; width: min(100% - 1.5rem, 72rem); margin-inline: auto; padding: 0.7rem 4px; overflow: hidden; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { margin-inline-end: auto; }
.site-logo img { width: 190px; height: auto; }
@media (min-width: 48rem) { .site-logo img { width: 240px; } }
.site-header .btn-line { color: #f1e6d2; }
.menu-button { display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 3rem; padding: 0.5rem 0.9rem; border: 1px solid #5a4a36; background: transparent; color: #f1e6d2; font: 500 0.8rem var(--font); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.menu-button svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 30rem) {
  .header-inner { gap: 0.5rem; }
  .site-logo img { width: 140px; }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-inner .btn { padding-inline: 0.8rem; letter-spacing: 0.14em; }
}
.site-menu { list-style: none; margin: 0; padding: 0.5rem; }
.site-menu a { display: block; padding: 0.75rem 1rem; color: inherit; font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
.site-menu a[aria-current="page"] { color: var(--gold-leaf); }
.site-header .menu-button { anchor-name: --menu-button; }
.site-header .site-menu { position: fixed; inset: auto; inset-block-start: 5rem; inset-block-start: anchor(--menu-button bottom); inset-inline-end: 1rem; inline-size: min(80dvw, 20rem); margin: 0.5rem 0 0; background: var(--lacquer); color: #f1e6d2; border: 1px solid var(--gold-leaf); }
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu { position: static; display: flex; align-items: center; gap: 0.25rem; inline-size: auto; margin: 0; padding: 0; border: 0; background: transparent; }
.site-header.is-wide .site-menu a { padding-inline: 0.8rem; }
.site-header.is-wide .site-menu a:hover { color: var(--gold-leaf); }
.is-measuring * { transition: none !important; }
.theme-toggle { display: flex; align-items: center; gap: 0.75rem; inline-size: 100%; min-block-size: 3rem; padding: 0.7rem 1rem; border: 0; background: transparent; color: inherit; font: 500 0.85rem var(--font); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.theme-toggle svg { flex: none; width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun, .theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.site-header.is-wide .theme-toggle { inline-size: 3rem; justify-content: center; padding: 0; border: 1px solid #5a4a36; }
.site-header.is-wide .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@supports not selector(:popover-open) { [popover]:not(.\:popover-open) { display: none; } }

/* Hero: photo under a lacquer veil, gold serif headline */
.hero { position: relative; isolation: isolate; color: #f1e6d2; background: var(--lacquer); }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: 0.55; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 14 11 / 0.95) 0%, rgb(18 14 11 / 0.6) 55%, rgb(18 14 11 / 0.2)); }
.hero .wrap { padding-block: clamp(4.5rem, 14vw, 9rem); }
.hero .label { color: #d9c7a6; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); font-weight: 500; color: #f1e6d2; max-width: 11ch; }
.hero h1 em { font-style: italic; color: var(--gold-leaf); }
.hero .lede { font-size: 1.15rem; color: #e6d9c2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.hero .btn-line { color: #f1e6d2; }

/* Awards: medallion row */
.awards { text-align: center; }
.awards h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.awards .claims { margin-inline: auto; color: var(--muted); letter-spacing: 0.04em; }
.medals { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.75rem, 2vw, 1.5rem); list-style: none; margin: 2rem 0 0; padding: 0; }
.medals li { display: grid; justify-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--muted); }
.medals img { width: clamp(76px, 12vw, 112px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold-leaf), 0 0 0 6px var(--bg), 0 0 0 7px var(--gold-leaf); }

/* Framed photo: gold hairline with corner brackets */
.frame { position: relative; padding: 10px; border: 1px solid var(--gold-leaf); }
.frame::before, .frame::after { content: ""; position: absolute; inline-size: 26px; block-size: 26px; border: 3px solid var(--gold-leaf); }
.frame::before { inset-block-start: -6px; inset-inline-start: -6px; border-inline-end: 0; border-block-end: 0; }
.frame::after { inset-block-end: -6px; inset-inline-end: -6px; border-inline-start: 0; border-block-start: 0; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Favorites */
.dishes { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; margin: 2.5rem 0 0; padding: 0; }
.dish h3 { margin: 1.1rem 0 0.3rem; }
.dish p { margin: 0; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }

/* Dining room */
.room { background: var(--paper); }
.room-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) { .room-grid { grid-template-columns: 1.15fr 1fr; } }
.room-grid .frame img { aspect-ratio: 3 / 2; }
.ticks { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: 0.5rem; }
.ticks li::before { content: "◆"; margin-inline-end: 0.75rem; color: var(--gold-leaf); font-size: 0.7em; vertical-align: 0.15em; }

/* Quotes */
.quotes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-block-start: 2rem; }
.quotes blockquote { margin: 0; padding: 1.5rem 1.5rem 1.25rem; border-block-start: 1px solid var(--gold-leaf); font-family: var(--display); font-size: 1.35rem; line-height: 1.35; font-style: italic; }
.quotes blockquote::before { content: "“"; display: block; block-size: 2rem; font-size: 4rem; line-height: 1; color: var(--gold-leaf); }

/* Birthday teaser */
.bday-band { background: var(--lacquer); color: #f1e6d2; }
.bday-band .wrap { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(3rem, 7vw, 4.5rem); }
@media (min-width: 52rem) { .bday-band .wrap { grid-template-columns: auto 1fr auto; } }
.bday-band h2 { color: #f1e6d2; margin: 0; }
.bday-band p { margin: 0; color: #d9c7a6; }
.seal { display: grid; place-items: center; inline-size: 8.5rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--gold-leaf); outline: 1px solid var(--gold-leaf); outline-offset: 5px; font-family: var(--display); color: var(--gold-leaf); text-align: center; line-height: 1; }
.seal strong { display: block; font-size: 3rem; font-weight: 600; }
.seal span { font-family: var(--font); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; }

/* Visit */
.visit-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .visit-grid { grid-template-columns: 1fr 1.2fr; } }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.5rem; margin: 0 0 1.5rem; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; text-align: end; color: var(--muted); }
.hours dt, .hours dd { padding-block-end: 0.45rem; border-block-end: 1px dotted var(--line); }
.map { position: relative; border: 1px solid var(--gold-leaf); padding: 8px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }
.es { font-style: italic; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--lacquer); color: #d9c7a6; padding-block: 3rem 2rem; }
.site-footer a { color: #f1e6d2; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid p { margin: 0 0 0.4rem; }
.footer-grid address { font-style: normal; }
.legal { margin-block-start: 2.5rem; font-size: 0.85rem; color: #8f8170; }

/* Birthday Club page */
.page-head { background: var(--lacquer); color: #f1e6d2; text-align: center; }
.page-head .wrap { padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 500; color: #f1e6d2; }
.page-head h1 em { color: var(--gold-leaf); }
.page-head p { margin-inline: auto; color: #d9c7a6; font-size: 1.1rem; }
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding-block-start: 1rem; border-block-start: 1px solid var(--gold-leaf); }
.steps li::before { content: counter(step, cjk-ideographic); display: block; font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1.2; }
.form-card { max-width: 46rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--gold-leaf); outline: 1px solid var(--gold-leaf); outline-offset: -8px; }
.fields { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(6, 1fr); }
.field { grid-column: span 6; display: grid; gap: 0.35rem; }
@media (min-width: 36rem) { .half { grid-column: span 3; } .third { grid-column: span 2; } }
.field label, fieldset legend { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
fieldset { grid-column: span 6; margin: 0; padding: 0; border: 0; min-width: 0; }
input, select { inline-size: 100%; min-block-size: 3rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-block-end: 2px solid var(--gold-leaf); border-radius: 0; background: var(--bg); color: var(--ink); font: inherit; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--gold-leaf); outline-offset: 1px; }
.bday { display: flex; gap: 0.75rem; }
.bday .field { grid-column: auto; inline-size: 7rem; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute; left: -5000px; }

/* Order via WhatsApp (RushTxt): the most prominent ordering button. Concept only: not wired yet. */
.btn-wa { gap: 0.6rem; background: #25d366; color: #05301a; border-color: #25d366; font-weight: 600; box-shadow: 0 8px 20px -8px rgb(37 211 102 / 0.7); }
.btn-wa:hover { background: #3be07a; }
.wa-icon { flex: none; inline-size: 1.35em; block-size: 1.35em; background: currentColor; -webkit-mask: url("/images/whatsapp.svg") center / contain no-repeat; mask: url("/images/whatsapp.svg") center / contain no-repeat; }
.btn-wa-big { min-block-size: 3.5rem; padding-inline: 1.7rem; font-size: 0.95rem; }
.btn-order-web { background: transparent; color: #f1e6d2; }
.btn-order-web:hover { background: rgb(212 175 55 / 0.15); }
@media (max-width: 44rem) { .header-inner .btn-order-web { display: none; } }
@media (max-width: 30rem) { .wa-long { display: none; } }
.hero-actions.center { justify-content: center; }

/* Awards */
.awards .claims.small { font-size: 0.9rem; letter-spacing: 0.08em; }
.workplaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.workplaces img { block-size: 92px; inline-size: auto; padding: 10px 14px; background: #fff; border: 1px solid var(--gold-leaf); }

/* Dragon line art (from the old site), tinted gold, as a watermark */
.bday-band, .page-head { position: relative; overflow: hidden; }
.bday-band .wrap, .page-head .wrap { position: relative; }
.dragon { position: absolute; inset-block-start: 50%; inset-inline-end: -3rem; translate: 0 -50%; inline-size: min(30rem, 80vw); aspect-ratio: 1; background: var(--gold-leaf); -webkit-mask: url("/images/dragon.png") center / contain no-repeat; mask: url("/images/dragon.png") center / contain no-repeat; opacity: 0.22; pointer-events: none; }
.page-head .dragon { inset-inline-end: auto; inset-inline-start: 50%; translate: -50% -50%; opacity: 0.14; }
@media (max-width: 30rem) {
  .site-logo img { width: 118px; }
  .menu-button { padding-inline: 0.75rem; }
  .header-inner .btn-wa { padding-inline: 0.75rem; gap: 0.4rem; letter-spacing: 0.1em; }
}
