:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --ink: #111113;
  --muted: #686864;
  --line: #deded8;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 44px 20px 64px;
}

header {
  margin-bottom: 28px;
}

.brand {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
}

a {
  color: var(--ink);
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.language-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.language-list a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
