:root {
  --bg: #fbf8f3;
  --text: #24262f;
  --muted: #6b6d78;
  --line: #e7e1d7;
  --accent: #d9722a;
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161935;
    --text: #f4f1ea;
    --muted: #a9abc4;
    --line: #2c3166;
    --accent: #f6a05c;
    --card: #1e2247;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
}

.brand img { width: 40px; height: 40px; }

.lang { font-size: 15px; color: var(--muted); }

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

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; }
.lead { font-size: 20px; color: var(--muted); margin-bottom: 32px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 160px; height: 160px; }
.hero h1 { font-size: 44px; margin-top: 16px; }

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

.links a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .light-only { display: none; }
  .dark-only { display: inline; }
}
