:root {
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --text: #1f1b16;
  --muted: #6e6457;
  --border: #ddd4c4;
  --accent: #b23a24;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --surface: #26221e;
    --text: #ede6da;
    --muted: #b8ad9d;
    --border: #3a332c;
    --accent: #f08a6e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}

header .app { flex: 1; min-width: 0; }
header .app strong { display: block; font-size: 18px; }
header .app span { color: var(--muted); font-size: 14px; }

.lang a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

h1 { font-size: 28px; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 19px; margin: 32px 0 8px; }

.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.summary {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
}

ul { padding-left: 22px; }
li { margin: 6px 0; }

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

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