:root {
  --text: #222;
  --muted: #666;
  --border: #ddd;
  --bg: #fff;
  --link: #1a4d8f;
  --accent-bg: #f6f5f2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--accent-bg);
}
.site-header .wrap {
  max-width: 48rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 0.5rem 1.5rem;
}
.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover { text-decoration: underline; }

/* Main */
main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
main.history-page { max-width: 46rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; font-style: italic; }
h4 {
  font-size: 1rem;
  margin: 1.8rem 0 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

p { margin: 0 0 1.1rem; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

em { color: var(--muted); }

strong { font-weight: bold; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-style: italic;
}
blockquote p { margin: 0.3rem 0; }

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}
li { margin-bottom: 0.4rem; }

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--accent-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--muted);
}

.history-index {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.history-index li {
  border-bottom: 1px solid var(--border);
}
.history-index a {
  display: block;
  padding: 0.85rem 0.1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.history-index a:hover { color: var(--link); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--accent-bg);
}
.site-footer .wrap {
  max-width: 48rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-footer p {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.figures { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.figures img { max-width: min(100%, 22rem); height: auto; border: 1px solid #ddd; border-radius: 4px; }
