:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2724;
  --muted: #6f6760;
  --line: #e6dfd5;
  --accent: #8a6d3b;
  --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a18;
    --surface: #24211e;
    --text: #ece6dd;
    --muted: #a99f94;
    --line: #3a3530;
    --accent: #d2b27a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font: 600 1.4rem/1 var(--serif);
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.langs {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.langs a {
  color: var(--muted);
  text-decoration: none;
}

.langs a[aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}

/* Landing page */
.hero {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.hero h1 {
  font: 500 clamp(2.6rem, 9vw, 4rem) / 1.1 var(--serif);
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34em;
  margin: 0 auto 32px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
}

.button:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Policy */
.policy {
  padding: 40px 0 24px;
}

.policy h1 {
  font: 500 2.4rem/1.2 var(--serif);
  margin: 0 0 4px;
}

.policy h2 {
  font: 600 1.45rem/1.3 var(--serif);
  margin: 36px 0 8px;
}

.policy .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.policy ul {
  padding-left: 1.2em;
}

.policy strong {
  font-weight: 500;
}

.note {
  margin-top: 36px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}
