:root {
  color-scheme: light dark;
  --accent: #0A84FF;
  --bg: #f9f9f7;
  --surface: #ffffff;
  --text: #0b0b0b;
  --text-secondary: #52514e;
  --border: rgba(11, 11, 11, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --text: #ffffff;
    --text-secondary: #c3c2b7;
    --border: rgba(255, 255, 255, 0.1);
  }
}

* {
  box-sizing: border-box;
}

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

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

header.top .logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

header.top .name {
  font-size: 19px;
  font-weight: 700;
}

nav.pages {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

nav.pages a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

nav.pages a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

p {
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.stand {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 40px;
}

footer {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-secondary);
}
