:root {
  --bg: #0c0c0d;
  --bg-elev: #161618;
  --text: #f4f1ea;
  --muted: #b7b3a9;
  --line: #2a2a2e;
  --accent: #e8d48b;
  --focus: #f3e6b0;
  --max: 44rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

a { color: var(--accent); }
a:hover { color: var(--focus); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.brand {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

nav {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
}

nav a { text-decoration: none; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

p, li { color: var(--text); }
.muted, .date { color: var(--muted); font-family: system-ui, sans-serif; font-size: 0.92rem; }

ul { padding-left: 1.2rem; }

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

footer nav { margin-top: 0.5rem; }

@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
}
