:root {
  --bg: #faf7f0;
  --text-primary: #1c1a15;
  --text-secondary: #55503f;
  --text-tertiary: #948d76;
  --accent: #6b4226;
  --border: #e4ddcc;
  --rule: #c9bfa0;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 110px 32px 80px;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-rule {
  margin: 22px 0 46px;
  height: 1px;
  background: var(--rule);
}

.slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 640px;
  text-wrap: balance;
}

.slogan .mark { color: var(--accent); }

body[data-lang="zh"] .slogan {
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

body[data-lang="zh"] .slogan span { display: block; }

.descriptor {
  margin-top: 58px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

body[data-lang="zh"] .descriptor {
  text-transform: none;
  letter-spacing: 0.14em;
}

.lang-switch {
  position: fixed;
  top: 26px;
  right: 26px;
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-btn.active { background: var(--text-primary); color: var(--bg); }

footer {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px;
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .lang-switch { top: 16px; right: 16px; }
  .wrap { padding: 96px 22px 60px; }
  .brand-rule { margin: 18px 0 36px; }
}
