:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c0392b;
  --gold: #d4a017;
  --bg: #fbfbf9;
  --rule: #e6e4df;
  --measure: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Masthead ---- */
.masthead {
  max-width: var(--measure);
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
}

.masthead-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.masthead-logo {
  flex: none;
  margin-top: 0.2rem;
}

.masthead-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.line-one {
  display: block;
  font-size: 1.6rem;
  color: var(--muted);
}

/* "Come on inside." sticks out: bigger and offset to the right */
.line-two {
  display: block;
  font-size: 3rem;
  color: var(--accent);
  margin-left: 2.5rem;
  margin-top: 0.15em;
}

.masthead-link:hover .line-two { color: var(--gold); }

/* ---- Content ---- */
.content {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Post list (home) ---- */
.post-list { list-style: none; margin: 0; padding: 0; }

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.post-list-link:hover { color: var(--accent); }

.post-list-date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---- Single post ---- */
.post-title { font-size: 1.9rem; margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.post-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 2rem; }

.post-body { font-size: 1.05rem; }
.post-body h2 { margin-top: 2.2rem; }
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto 0.5rem;
  border-radius: 8px;
}
/* italic line immediately after an image renders as a caption */
.post-body img + em {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.post-body pre {
  background: #f3f1ec;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 0.9rem;
}
.post-body code { font-size: 0.9em; }
.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

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

.back { margin-top: 3rem; }
.back a { text-decoration: none; }

/* ---- Footer ---- */
.colophon {
  max-width: var(--measure);
  margin: 5rem auto 3rem;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---- Small screens ---- */
@media (max-width: 480px) {
  .line-one { font-size: 1.25rem; }
  .line-two { font-size: 2.1rem; margin-left: 1.25rem; }
  .masthead { margin-top: 2.5rem; }
}
