/* Two Thai, Lancaster - preview site
   Palette taken from the venue's own material: the red of the logo and the neon sign, the
   orange of the banquettes, the gold of the menu's section rules, on warm off-white. */

:root {
  --red: #e0402f;
  --red-deep: #b62d1f;
  --orange: #f2872c;
  --gold: #c9922f;
  --ink: #24160f;
  --ink-soft: #5c4a41;
  --cream: #fdf5ec;
  --cream-deep: #f6e8d8;
  --line: #e6d3bd;
  --white: #fffdfa;

  --shell: min(1180px, 100% - 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 22, 15, .06), 0 12px 32px -14px rgba(36, 22, 15, .3);

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

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

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-on-dark { border-color: rgba(255, 253, 250, .5); color: var(--white); }
.btn-on-dark:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 245, 236, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { display: block; font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  padding: .2rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red); color: var(--red-deep); }

.header-cta { white-space: nowrap; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .brand img { width: 44px; }
  .brand-text { font-size: 1.05rem; }
}

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

.hero {
  position: relative;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36, 22, 15, .55) 0%, rgba(36, 22, 15, .72) 55%, rgba(36, 22, 15, .92) 100%);
}
.hero img.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  /* The source is portrait and the neon sign sits near its top. A centred crop on a wide
     viewport lands on bare panelling, so bias the frame upward as the hero gets wider. */
  object-position: 50% 30%;
}
@media (min-width: 900px) { .hero img.hero-bg { object-position: 50% 18%; } }
.hero-inner { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-kicker {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-deep);
  border: 1px solid rgba(253, 245, 236, .38);
  border-radius: 999px; padding: .42rem 1rem; margin-bottom: 1.4rem;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.35rem); max-width: 46ch; color: var(--cream-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin-top: 2.8rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(253, 245, 236, .22);
}
.hero-facts div { min-width: 0; }
.hero-facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 245, 236, .65); margin-bottom: .3rem; }
.hero-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--white); }

/* ---------- hours band - the point of the rebuild ---------- */

.hours-band { background: var(--red); color: var(--white); padding: clamp(2.5rem, 5vw, 3.6rem) 0; }
.hours-band h2 { color: var(--white); margin-bottom: .3rem; }
.hours-band .band-note { color: rgba(255, 253, 250, .85); max-width: 52ch; }
.hours-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hours-grid li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  background: rgba(255, 253, 250, .12);
  border-radius: 10px;
  font-weight: 500;
}
.hours-grid li b { font-family: var(--display); font-weight: 700; }
.hours-grid li.closed { background: rgba(36, 22, 15, .22); color: rgba(255, 253, 250, .75); }

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

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* The header is sticky, so an anchored jump would otherwise land with the heading underneath it. */
[id] { scroll-margin-top: 5.5rem; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-deep); margin-bottom: .7rem;
}
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-soft); }

/* ---------- story ---------- */

.story-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.story-media { position: relative; }
.story-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story-stat {
  position: absolute; right: -1rem; bottom: -1.4rem;
  background: var(--gold); color: var(--ink);
  padding: 1rem 1.3rem; border-radius: 12px;
  font-family: var(--display); font-weight: 800; line-height: 1.15;
  box-shadow: var(--shadow); max-width: 12rem;
}
.story-stat span { display: block; font-family: var(--body); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pull {
  border-left: 3px solid var(--red);
  padding-left: 1.2rem; margin: 1.6rem 0;
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); line-height: 1.4;
}
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stat { right: 1rem; bottom: -1rem; }
}

/* ---------- favourites ---------- */

.favourites { background: var(--cream-deep); }
.dish-row {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}
.dish {
  background: var(--white); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem; text-align: center;
  border: 1px solid var(--line);
}
.dish img { margin: -2.2rem auto .6rem; width: 78%; }
.dish h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.dish p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

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

.menu-note {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 2.2rem;
  font-size: .93rem; color: var(--ink-soft);
}
.menu-columns { columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 780px) { .menu-columns { columns: 1; } }

.menu-block { break-inside: avoid; margin-bottom: 2.6rem; }
.menu-block h3 {
  display: flex; align-items: baseline; gap: .8rem;
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: .3rem;
}
.menu-block > p.block-note { font-size: .84rem; color: var(--ink-soft); margin: .6rem 0 .2rem; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.item-name { font-weight: 600; }
.item-price { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.item-desc { display: block; font-size: .87rem; color: var(--ink-soft); line-height: 1.5; margin-top: .18rem; }

.tag {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .12rem .42rem; border-radius: 4px; margin-left: .35rem;
  vertical-align: .1em;
}
.tag-vg { background: #e5f0e0; color: #3d6b2c; }
.tag-gf { background: #e6edf6; color: #2f5384; }
.tag-chilli { background: #fbe4e0; color: var(--red-deep); }

/* ---------- happy hour ---------- */

.happy { background: var(--ink); color: var(--cream); }
.happy h2 { color: var(--white); }
.happy .lede { color: rgba(253, 245, 236, .8); }
.happy-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: center; }
.happy-price {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 2rem + 5vw, 5rem); color: var(--orange); line-height: 1;
  /* The shared paragraph margin is in em, so at this size it opens a 5rem hole underneath. */
  margin: 1.2rem 0 .6rem;
}
.happy-list { list-style: none; margin: 1.4rem 0 0; padding: 0; columns: 2; column-gap: 2rem; }
.happy-list li { padding: .35rem 0; font-weight: 500; break-inside: avoid; }
.happy-list li::before { content: "\2022"; color: var(--orange); font-weight: 700; margin-right: .55rem; }
@media (max-width: 820px) { .happy-grid { grid-template-columns: 1fr; } .happy-list { columns: 1; } }

/* ---------- banquets ---------- */

.set-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.set {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.set h3 { margin-bottom: .1rem; }
.set .set-price { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--red-deep); }
.set .set-min { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.set h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: .9rem 0 .35rem; font-family: var(--body); font-weight: 600; }
.set ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.set ul li { padding: .16rem 0; }

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

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

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

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

.contact-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.contact-list li { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .15rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { font-weight: 600; }

.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); }

.allergen {
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font-size: .87rem; color: var(--ink-soft);
}

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

.site-footer { background: var(--ink); color: rgba(253, 245, 236, .8); padding: clamp(3rem, 5vw, 4rem) 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--body); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 245, 236, .55); margin-bottom: .8rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: .22rem 0; }
.footer-brand img { width: 78px; margin-bottom: .8rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(253, 245, 236, .16);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(253, 245, 236, .55);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
