:root {
  --maxw: 42rem;
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #8a1f1f;
  --rule: #e3e1dc;
  --bg: #fdfdfb;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  font-family: "Times New Roman", Times, serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0 1.25rem;
}

.site-header,
.content,
.site-footer {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* Header / nav */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--fg);
}

.site-nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Content */
.content { min-height: 60vh; }

/* Circular profile picture */
.avatar {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1.5rem;
  border: 1px solid var(--rule);
}

h1, h2, h3 { line-height: 1.25; font-weight: bold; }
h1 { font-size: 1.95rem; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1.1rem; }

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

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

code, pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92rem;
}

code {
  background: #f1f0eb;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

pre {
  background: #f4f3ee;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

pre code {
  background: none;
  padding: 0;
}

/* Blog list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-date {
  color: var(--muted);
  white-space: nowrap;
  min-width: 7rem;
}

/* Single post */
.post-title { margin-bottom: 0.25rem; }
.post-meta { color: var(--muted); margin-bottom: 2rem; }
.back-link { margin-top: 3rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
