:root {
  --bg: #fffbf7;
  --surface: #f5ede6;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #c2410c;
  --line: #e7ddd3;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #221e1b;
    --text: #f5f0eb;
    --muted: #b8aea5;
    --accent: #fb8a5c;
    --line: #342e29;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 8px;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

header .brand img { width: 36px; height: 36px; border-radius: 9px; }

header nav { margin-left: auto; display: flex; gap: 14px; font-size: 15px; }

header nav a { text-decoration: none; }

header nav a[aria-current="true"] { color: var(--text); font-weight: 700; }

main { padding-bottom: 48px; }

h1 { font-size: 32px; line-height: 1.2; margin: 32px 0 4px; }

h2 { font-size: 21px; margin: 36px 0 8px; }

.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

.box {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
}

.links { list-style: none; padding: 0; }

.links li { margin: 10px 0; }

.links a { font-weight: 700; font-size: 19px; }

ul, ol { padding-left: 22px; }

li { margin: 4px 0; }

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

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  header { flex-wrap: wrap; }
  header nav { margin-left: 0; width: 100%; }
}
