/* ===== Base / reset / design tokens ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Order matters: Latin from self-hosted Noto Sans, CJK from the system UI
     font (PingFang SC on macOS, Microsoft YaHei on Windows). This is exactly
     how EKO renders — sharp Latin, razor-sharp system CJK, no font download. */
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Form controls don't inherit the font by default — force it. */
button, input, select, textarea { font-family: inherit; }
/* A hair of tracking makes small copy read less cramped. */
p, li { letter-spacing: .01em; }

:root {
  --font: "Noto Sans", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 96px;
  --nav-h-scrolled: 58px;
  --brand: #15407a;
  --brand-2: #2f6fb0;
  --ink: #16202c;
  --text: #1f2937;
  --heading: #111827;
  --paper: #ffffff;
  --maxw: 1200px;
  /* Nav hover pill — red. Swap this one value to restyle every hover pill
     (menu items + language button). */
  --nav-pill: #e1251b;
  --nav-pill-ink: #ffffff;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Placeholder anchor sections (proves nav links really work) */
.placeholder-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  border-bottom: 1px solid #eef1f5;
}
.placeholder-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}
.placeholder-section p {
  color: #5b6675;
  max-width: 640px;
  margin: 0;
}

/* Lock body scroll when mobile menu is open */
html.no-scroll { overflow: hidden; }
