/* 三语共享的语言导航与排版；页面正文仍是独立静态 HTML。 */
html:lang(en) {
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

html:lang(ja) {
  --serif: "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", system-ui, sans-serif;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
}

nav.language-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.language-nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--muted, #646259);
  text-decoration: none;
  white-space: nowrap;
}

.language-nav a[aria-current="page"] {
  color: var(--ink, #292923);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-nav a:hover {
  color: var(--ink, #292923);
}

.language-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.header-tools .language-nav {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

html:lang(en) .intro h1 {
  letter-spacing: -.04em;
}

html:lang(en) .side-note {
  max-width: 160px;
  font-size: 15px;
}

html:lang(ja) .intro .lede {
  font-size: clamp(19px, 5.3vw, 27px);
}

html:lang(ja) .series-hero h1 {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

html:lang(en) .work-card h3 span,
html:lang(ja) .work-card h3 span {
  display: block;
  margin-left: 0;
  white-space: normal;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px 20px;
  }

  .header-tools .language-nav {
    border-left: 0;
    padding-left: 0;
  }
}
