:root {
  --max-width: 42rem;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #0b66c3;
  --bg: #fdfdfd;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main,
.site-header,
.site-footer {
  max-width: var(--max-width);
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.site-nav a {
  margin-left: 1rem;
  color: var(--muted);
}

/* Intro */
.intro {
  padding: 1.5rem 0 0.5rem;
}

.intro h1 {
  margin-bottom: 0.25rem;
}

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

.post-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.post-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 8.5rem;
}

/* Single post */
.post-header h1 {
  margin-bottom: 0.25rem;
}

.post-meta {
  margin-top: 0;
  color: var(--muted);
}

.post-body pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.post-body pre code {
  font-size: 0.85rem;
}

.post-back {
  margin-top: 2.5rem;
}

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