/* trebuh's blog — minimal styles */

:root {
  --bg: #fdfdfb;
  --text: #1f2328;
  --muted: #6a737d;
  --accent: #0a7ea4;
  --border: #e5e5e0;
  --max-width: 42rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

main { flex: 1; padding: 2.5rem 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

/* Intro */
.intro {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

/* Post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child { padding-top: 0; }
.post-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-item h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.35;
}
.post-item h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-item h2 a:hover { color: var(--accent); }
.post-item p {
  margin: 0;
  color: var(--muted);
}

/* Article pages */
article h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
article p { margin: 0 0 1.4rem; }
article h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
article ul { padding-left: 1.4rem; margin: 0 0 1.4rem; }
article li { margin-bottom: 0.4rem; }

code {
  background: #f2f2ee;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  background: #f2f2ee;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
}
pre code { background: none; border: none; padding: 0; }

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

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.back-link:hover { color: var(--accent); }

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

@media (max-width: 480px) {
  body { font-size: 1rem; }
  article h1 { font-size: 1.6rem; }
}
