:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --border: #e3e3e8;
  --accent: #0a66d8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #1c1c1f;
    --text: #f2f2f5;
    --muted: #a0a0a8;
    --border: #2e2e33;
    --accent: #5ea8ff;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

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

header img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

header .app { font-weight: 700; font-size: 22px; }
header .tag { color: var(--muted); font-size: 15px; }

nav { margin-bottom: 28px; font-size: 15px; }
nav a { margin-right: 18px; }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 22px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}

details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}
