:root {
  --ink: #1c1a17;
  --muted: #6b6258;
  --paper: #fbfaf6;
  --rule: #ded7c8;
  --accent: #7a4b00;
}

html { background: var(--paper); }

body {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 5rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.2rem;
}
.topbar a { color: var(--accent); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar span { color: var(--muted); }

header#title-block-header {
  text-align: center;
  margin: 0 0 2.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
h1.title {
  font-size: 2.05rem;
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
p.subtitle {
  font-size: 1.08rem;
  font-style: italic;
  color: #3d372f;
  margin: 0.2rem auto 1.1rem;
  max-width: 38rem;
  line-height: 1.45;
}
p.author {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0.2rem 0;
}
p.date {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

h1, h2, h3, h4 { line-height: 1.28; font-weight: 600; }
h1 { font-size: 1.6rem; margin-top: 2.6rem; }
h2 { font-size: 1.32rem; margin-top: 2.4rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.25rem; }
h3 { font-size: 1.1rem; margin-top: 1.9rem; }

p { margin: 0 0 1rem; text-align: left; }

blockquote {
  margin: 1.3rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 3px solid #c9b38a;
  color: #3f3a32;
  font-style: italic;
}
blockquote p { margin: 0.4rem 0; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82em;
  background: #f0ece1;
  padding: 0.08em 0.28em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
pre code { display: block; padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.45; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.4rem 0;
  font-size: 0.9rem;
}
th, td { border: 1px solid var(--rule); padding: 0.45rem 0.55rem; vertical-align: top; text-align: left; }
th { background: #f2ede1; font-weight: 600; }

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

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

.footnotes, section#footnotes {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3d372f;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
}
.footnotes p { margin: 0.4rem 0; }

@media (max-width: 620px) {
  body { font-size: 17px; padding: 0.8rem 1rem 4rem; }
  h1.title { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
}
