:root {
  --text: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --border: #ccc;
  --max-width: 52rem;
  --font: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

.site-header, .site-footer, main.article, main > section.topic {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header h1 { margin: 0 0 0.25rem; font-size: 1.8rem; }
.tagline { color: var(--muted); margin: 0; }

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

main { padding-top: 1rem; }

article h1 { font-size: 1.6rem; margin-top: 0; }
article h2 { font-size: 1.3rem; }
article h3 { font-size: 1.1rem; }
article p, article li { font-size: 1rem; }
article blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
article code {
  background: #f2f2f2;
  padding: 0.1rem 0.3rem;
  font-family: Consolas, Menlo, monospace;
  font-size: 0.9em;
}
article hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

section.topic { margin: 2rem auto; }
section.topic h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

ul.listing {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

li.listing-entry {
  border-bottom: 1px solid var(--border);
}
li.listing-entry a {
  display: block;
  padding: 0.75rem 0;
  color: inherit;
  text-decoration: none;
}
li.listing-entry h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
li.listing-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  /* Wide, single-line listing: entries favour width over height. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
