/* Tawan Chay Restaurant - preview site
   Evening-lit palette: the restaurant only opens at 17:00, so the site is dark by default
   rather than the daytime cream the current site uses. Gold is sampled from their own logo. */

:root {
  --ground: #14110e;
  --ground-2: #1b1712;
  --raised: #221d17;
  --line: #362e24;
  --cream: #f4eee3;
  --muted: #a4988a;
  --gold: #d4a14a;
  --gold-bright: #e9c179;
  --forest: #1e2a20;
  --chilli: #c9553d;
  --radius: 4px;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold-bright); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

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

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  background: var(--gold); color: #1b1409; padding: 0.6rem 1rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 0.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--gold { background: var(--gold); color: #1b1409; }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn svg { width: 16px; height: 16px; flex: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 14, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 58px; width: auto; }
.brand span {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.14em;
  color: var(--cream); text-transform: uppercase;
}

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--cream); text-decoration: none;
  font-size: 0.86rem; letter-spacing: 0.04em; font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

.header-actions { display: flex; gap: 0.6rem; }

@media (max-width: 940px) {
  .site-nav, .header-actions { display: none; }
  .brand img { height: 46px; }
}

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

.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,14,0.72) 0%, rgba(20,17,14,0.82) 45%, rgba(20,17,14,0.97) 100%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3rem, 8vw, 5.5rem); max-width: 43rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero p.lede { font-size: clamp(1.02rem, 2vw, 1.18rem); color: #e2d9cb; margin: 0 0 2rem; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(34, 29, 23, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  font-size: 0.83rem; font-weight: 500; color: var(--cream);
  margin-bottom: 1.75rem;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-open="yes"] .status__dot { background: #6fbf73; }
.status[data-open="no"] .status__dot { background: var(--chilli); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.hero__facts strong { color: var(--cream); font-weight: 600; }

/* ---------- generic section ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--raised { background: var(--ground-2); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 0.85rem; }
.section__head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about p { color: #ddd3c4; }
.about p:first-of-type { font-size: 1.1rem; color: var(--cream); }
.about__marks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; list-style: none; padding: 0; }
.about__marks li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.78rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

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

/* sits directly under the sticky header, so its offset tracks the header's own height */
.menu-nav {
  position: sticky; top: 86px; z-index: 40;
  background: var(--ground-2);
  border-block: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.menu-nav ul {
  display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0.85rem 0;
  overflow-x: auto; scrollbar-width: thin;
}
.menu-nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
}
.menu-nav a:hover { color: var(--gold-bright); }

.ladder {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin-bottom: 2rem;
  font-size: 0.88rem;
}
.ladder__label {
  width: 100%; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.35rem;
}
.ladder span { color: var(--muted); }
.ladder span + span::before { content: '·'; margin-right: 0.5rem; color: var(--gold); opacity: 0.5; }
/* the label is a span too, so the first price must not inherit a leading separator */
.ladder__label + span::before { content: none; }
.ladder b { color: var(--cream); font-weight: 600; }

.menu-group { margin-bottom: clamp(2.75rem, 6vw, 4rem); scroll-margin-top: 142px; }
.menu-group > h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 0.75rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.menu-group > h3 small {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
@media (max-width: 780px) { .dishes { grid-template-columns: 1fr; } }

.dish__head { display: flex; align-items: baseline; gap: 0.5rem; }
.dish__name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--cream); }
.dish__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 1.5rem; }
.dish__price { font-size: 0.92rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.dish__desc { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.tag {
  display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid currentColor; border-radius: 2px; padding: 0.05rem 0.3rem;
  vertical-align: 0.15em;
}
.tag--v { color: #7fbf6a; }
.tag--gf { color: #7aa8d4; }
.tag--hot { color: var(--chilli); border: 0; font-size: 0.85rem; padding: 0; }

.allergy {
  margin-top: 2.5rem; padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--gold);
  background: var(--raised);
  font-size: 0.86rem; color: var(--muted);
}
.allergy strong { color: var(--cream); }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1; }
.gallery figure { margin: 0; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: 1; }
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery figure:first-child img { aspect-ratio: 3 / 2; }
}

/* ---------- reviews ---------- */

.rating-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.rating-line b { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-weight: 600; line-height: 1; }
.rating-line span { color: var(--muted); font-size: 0.92rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

.review {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 0;
}
.review blockquote { margin: 0 0 1rem; font-size: 0.95rem; color: #ded4c5; line-height: 1.6; }
.review figcaption { font-size: 0.82rem; color: var(--muted); }
.review figcaption b { display: block; color: var(--cream); font-size: 0.88rem; font-weight: 600; }

/* ---------- visit ---------- */

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; color: var(--cream); font-variant-numeric: tabular-nums; }
.hours tr[data-today] th, .hours tr[data-today] td { color: var(--gold); font-weight: 600; }
.hours td.closed { color: var(--muted); }

.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { display: flex; gap: 0.85rem; padding-block: 0.6rem; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.22rem; color: var(--gold); }
.contact-list a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.contact-list span { color: var(--cream); }

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

.site-footer { background: var(--forest); padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.site-footer img { height: 64px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--cream); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-bright); }
.site-footer small { display: block; width: 100%; color: var(--muted); font-size: 0.78rem; padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---------- mobile action bar ---------- */

.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; gap: 0.5rem; padding: 0.6rem;
  background: rgba(20, 17, 14, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.action-bar .btn { flex: 1; padding-inline: 0.5rem; font-size: 0.85rem; }
@media (max-width: 940px) {
  .action-bar { display: flex; }
  body { padding-bottom: 4.5rem; }
  .menu-nav { top: 74px; }
  .menu-group { scroll-margin-top: 130px; }
}

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

.notfound {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: var(--pad); gap: 1.25rem;
}
.notfound img { height: 76px; width: auto; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--muted); max-width: 30rem; margin: 0; }
.notfound .btn { margin-top: 0.5rem; }
