.headline-line {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}

body {
  overflow-x: clip;
}

.intro-copy,
.section-heading > *,
.history-intro,
.people-copy,
.friends-copy,
.tonight-copy {
  min-width: 0;
}

html[data-theme="green"] {
  --ink: #142522;
  --navy: #173d39;
  --blue: #376b64;
  --cream: #f1eadc;
  --paper: #f8f4eb;
  --rust: #b65136;
  --gold: #c5a568;
  --muted: #5d6966;
  --line: rgba(20, 37, 34, .18);
}

html[data-theme="green"] .site-header.scrolled,
html[data-theme="green"] .site-header.nav-open {
  background: rgba(16, 43, 42, .96);
}

html[data-theme="green"] .hero-shade {
  background: linear-gradient(180deg, rgba(3, 16, 16, .44), rgba(3, 16, 16, .08) 45%, rgba(3, 16, 16, .68));
  box-shadow: inset 0 0 160px rgba(3, 16, 16, .25);
}

html[data-theme="green"] .tonight-shade {
  background: linear-gradient(90deg, rgba(10, 37, 34, .86), rgba(10, 37, 34, .2));
}

html[data-theme="green"] .friends {
  background: linear-gradient(135deg, #142522, #245048);
}

.wordmark-en {
  white-space: nowrap;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-actions .header-book {
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 42px;
  padding: .55rem .7rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .58);
  cursor: pointer;
  font-size: .67rem;
  letter-spacing: .08em;
}

.language-toggle i {
  color: rgba(255, 255, 255, .3);
  font-style: normal;
}

html[data-lang="zh"] .language-toggle [data-lang-option="zh"],
html[data-lang="en"] .language-toggle [data-lang-option="en"] {
  color: #fff;
  font-weight: 600;
}

html[data-lang="en"] body {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

html[data-lang="en"] .hero h1,
html[data-lang="en"] .intro h2,
html[data-lang="en"] .history-intro h2,
html[data-lang="en"] .manifesto h2,
html[data-lang="en"] .section-heading h2,
html[data-lang="en"] .menu-overlay h3,
html[data-lang="en"] .program-grid h3,
html[data-lang="en"] .tonight-copy h2,
html[data-lang="en"] .people-copy h2,
html[data-lang="en"] .friends-copy h2,
html[data-lang="en"] .visit-card h2,
html[data-lang="en"] .booking-dialog h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
}

html[data-lang="en"] .hero-center > p:last-child,
html[data-lang="en"] .wordmark-en {
  letter-spacing: .1em;
}

.hero .seal {
  width: 104px;
  height: 104px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero .seal::after {
  display: none;
}

.hero .seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: brightness(0) invert(1) drop-shadow(0 7px 18px rgba(3, 16, 40, .36));
}

.history-strip {
  max-width: 1400px;
  grid-template-columns: minmax(27rem, .92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 5vw, 6rem);
}

.history-intro h2 {
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.48;
  text-wrap: balance;
  word-break: keep-all;
}

.intro-copy h2,
.section-heading h2,
.people-copy h2,
.visit-card h2 {
  text-wrap: balance;
  word-break: keep-all;
}

.friends-copy h2 {
  max-width: 34rem;
  font-size: clamp(2.5rem, 3.2vw, 3.45rem);
  line-height: 1.42;
}

.visit-card dd strong {
  font-weight: 500;
}

.portrait-card img {
  object-position: 56% center;
}

.people-visual img {
  object-position: 66% center;
}

.visit-visual img {
  object-position: 58% center;
}

.manifesto-line,
.tonight-title-line {
  white-space: nowrap;
}

footer > .brand-family {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin: -2.1rem 0 1.25rem;
  color: #8190a5;
  font-size: .58rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer > .brand-family span + span {
  padding-left: .7rem;
  border-left: 1px solid rgba(255, 255, 255, .18);
  letter-spacing: .08em;
}

footer > .brand-family-logo {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1.45rem;
}

.star-kitchen-logo-frame {
  display: block;
  width: clamp(7.2rem, 10vw, 8.8rem);
  aspect-ratio: 638 / 621;
}

.star-kitchen-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer > .footer-marlin-seal {
  display: block;
  width: 4.5rem;
  height: auto;
  margin: 1.35rem auto 0;
  opacity: .72;
  filter: brightness(0) invert(1);
}

@media (max-width: 850px) {
  /* Never leave mobile sections blank while reveal animations initialise. */
  .reveal,
  .reveal.reveal-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html[data-lang="en"] body {
    overflow-x: clip;
  }

  .hero .seal {
    width: 88px;
    height: 88px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 3rem);
    letter-spacing: .04em;
  }

  .header-actions {
    gap: .35rem;
  }

  .language-toggle {
    min-height: 38px;
    padding: .45rem .5rem;
    font-size: .62rem;
  }

  html[data-lang="en"] .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
    line-height: 1.18;
  }

  html[data-lang="en"] .intro h2,
  html[data-lang="en"] .section-heading h2,
  html[data-lang="en"] .people-copy h2,
  html[data-lang="en"] .friends-copy h2,
  html[data-lang="en"] .visit h2 {
    font-size: clamp(1.8rem, 7.4vw, 2.2rem);
    line-height: 1.4;
  }

  html[data-lang="en"] .intro h2,
  html[data-lang="en"] .section-heading h2,
  html[data-lang="en"] .people-copy h2,
  html[data-lang="en"] .friends-copy h2,
  html[data-lang="en"] .visit h2,
  html[data-lang="en"] .history-intro h2,
  html[data-lang="en"] .manifesto h2,
  html[data-lang="en"] .tonight-copy h2 {
    max-width: 100%;
    overflow-wrap: normal;
  }

  html[data-lang="en"] .history-intro h2 {
    font-size: clamp(1.45rem, 6.1vw, 1.85rem);
    line-height: 1.55;
  }

  html[data-lang="en"] .history-intro .headline-line,
  html[data-lang="en"] .friends-copy .headline-line {
    white-space: normal;
  }

  .intro h2,
  .section-heading h2,
  .people-copy h2,
  .friends-copy h2,
  .visit h2 {
    font-size: clamp(1.95rem, 8.2vw, 2.35rem);
    line-height: 1.45;
  }

  .manifesto {
    padding: 6rem 5vw;
  }

  .manifesto h2 {
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    line-height: 1.42;
  }

  .manifesto-line,
  .tonight-title-line {
    display: block;
    max-width: 100%;
    width: fit-content;
    margin-inline: auto;
  }

  html[data-lang="en"] .manifesto h2 {
    width: 100%;
    font-size: clamp(1.7rem, 8.2vw, 2.25rem);
    line-height: 1.34;
  }

  html[data-lang="en"] .manifesto {
    padding-inline: 1rem;
  }

  html[data-lang="en"] .manifesto-line {
    white-space: nowrap;
  }

  .tonight-copy h2 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
    line-height: 1.28;
  }

  html[data-lang="en"] .tonight-copy h2 {
    width: 100%;
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    line-height: 1.22;
  }

  html[data-lang="en"] .tonight-copy {
    width: calc(100% - 2.6rem);
  }

  html[data-lang="en"] .tonight-title-line {
    white-space: nowrap;
  }

  .tonight-title-line {
    margin-inline: 0;
  }

  .history-strip {
    grid-template-columns: 1fr;
  }

  .history-intro h2 {
    font-size: clamp(1.65rem, 6.6vw, 2rem);
    line-height: 1.58;
  }

  .history-intro .headline-line {
    white-space: nowrap;
  }

  html[data-lang="en"] .history-intro .headline-line,
  html[data-lang="en"] .friends-copy .headline-line {
    display: block;
    width: auto;
    white-space: normal;
  }

  footer > .brand-family {
    flex-direction: column;
    gap: .25rem;
    margin-top: -2rem;
  }

  footer > .brand-family span + span {
    padding-left: 0;
    border-left: 0;
  }

  footer > .brand-family-logo {
    margin-bottom: 1.2rem;
  }

  .star-kitchen-logo-frame {
    width: 6.8rem;
  }

  footer > .footer-marlin-seal {
    width: 3.9rem;
    margin-top: 1.2rem;
  }
}

@media (max-width: 390px) {
  .wordmark-en {
    display: none;
  }

  .wordmark-cn {
    font-size: 1.12rem;
  }

  .header-actions .header-book {
    padding: .5rem .58rem;
  }

  .language-toggle {
    gap: .28rem;
    padding-inline: .35rem;
  }

  html[data-lang="en"] .intro h2,
  html[data-lang="en"] .section-heading h2,
  html[data-lang="en"] .people-copy h2,
  html[data-lang="en"] .friends-copy h2,
  html[data-lang="en"] .visit h2 {
    font-size: clamp(1.65rem, 7vw, 1.9rem);
  }
}

@media (max-width: 380px) {
  .hero h1,
  .friends-copy h2 {
    font-size: 1.9rem;
  }

  .history-intro h2 {
    font-size: 1.55rem;
  }
}
