.nav-links {
  align-items: center;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(36px, auto));
  gap: 2px;
  margin-left: 6px;
  padding: 2px;
  border: 1px solid rgba(0, 88, 168, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.9);
}

.language-switch button {
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.language-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.language-switch button:hover:not([aria-pressed="true"]) {
  background: var(--yellow-soft);
  color: var(--blue);
}

.language-switch button:focus-visible {
  outline-color: var(--blue);
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] button {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] .craft-process-copy h3,
html[lang="zh-CN"] .visit-card h2 {
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-weight: 700;
  line-height: 1.14;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] .craft-process-copy h3 {
  text-wrap: balance;
}

html[lang="zh-CN"] .product-row h3,
html[lang="zh-CN"] .ingredient-card h3 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-weight: 700;
}

html[lang="zh-CN"] .hero h1 {
  line-height: 1.14;
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.65rem, 3.85vw, 3.85rem);
}

@media (min-width: 760px) {
  html[lang="en"] .hero h1 span {
    white-space: nowrap;
  }
}

html[lang="zh-CN"] .brand-heading .eyebrow,
html[lang="zh-CN"] .ingredient-intro .eyebrow,
html[lang="zh-CN"] .craft-intro .eyebrow,
html[lang="zh-CN"] .products-head .eyebrow {
  font-weight: 700;
  line-height: 1.2;
}

.ingredient-intro,
.products-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 1080px;
}

.ingredient-intro .eyebrow,
.craft-intro .eyebrow,
.products-head .eyebrow {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ingredient-intro h2,
.products-head h2 {
  max-width: 900px;
}

.ingredient-intro-copy {
  max-width: 900px;
  padding-top: 0;
}

.craft-process-copy h3 {
  font-size: clamp(2.15rem, 3.65vw, 3.85rem);
  line-height: 1.08;
}

html[lang="zh-CN"] .brand-copy,
html[lang="zh-CN"] .ingredient-intro-copy p,
html[lang="zh-CN"] .craft-intro p:not(.eyebrow),
html[lang="zh-CN"] .craft-process-copy p,
html[lang="zh-CN"] .product-row p,
html[lang="zh-CN"] .accessibility-copy {
  line-height: 1.9;
}

html[lang="zh-CN"] .ingredient-tags span,
html[lang="zh-CN"] .ingredient-card span,
html[lang="zh-CN"] .craft-process-copy span {
  text-transform: none;
}

@media (max-width: 1020px) {
  .nav-links {
    align-items: stretch;
  }

  .language-switch {
    width: 100%;
    margin: 4px 0 0;
  }

  .language-switch button {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(2rem, 8vw, 2.66rem);
  }

  html[lang="zh-CN"] .hero-copy p:not(.eyebrow) {
    line-height: 1.72;
  }

  .ingredient-intro .eyebrow,
  .craft-intro .eyebrow,
  .products-head .eyebrow {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .ingredient-intro h2,
  .products-head h2 {
    max-width: 19rem;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.12;
  }

  .craft-process-copy h3 {
    margin-top: 12px;
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1.12;
  }

  .product-row h3 {
    font-size: 1.16rem;
  }

  .product-row p {
    font-size: 0.9rem;
    line-height: 1.68;
  }
}
