/* Inspired by Jekyll's Minima theme: white background, square corners. */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #828282;
  --border: #e8e8e8;
  --accent: #2a7ae2;
}

* { 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: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.site-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  border-top: 5px solid #424242;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -1px;
}

.feed {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.post {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.post:last-child { border-bottom: 0; }

.post-header {
  margin-bottom: 12px;
}

.post-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -1px;
}

.post-date {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.post-body p:first-child { margin-top: 0; }
.post-body p:last-child { margin-bottom: 0; }

.post-body a { color: var(--accent); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }

.post-body pre,
.post-body code {
  background: #eef;
  border: 1px solid #e8e8e8;
}

.post-body code { padding: 1px 5px; font-size: 0.9em; }

.post-body pre {
  padding: 8px 12px;
  overflow-x: auto;
}

.post-body pre code { border: 0; padding: 0; background: transparent; }

.post-body table { border-collapse: collapse; width: 100%; }
.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: 6px 8px;
}

.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
