:root {
  --bg: #fff;
  --text: #111;
  --muted: #777;
  --line: #e4e4e4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #e8e8e8;
    --muted: #888;
    --line: #2a2a2a;
  }
}

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 2rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.thought {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.thought p {
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

.thought p:last-of-type {
  margin-bottom: 0;
}

/* h2.title is the entry title from the layout; a bare h2 is a `##` section
   heading from the markdown body. Both are h2, so the class carries the weight. */
.thought h2.title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.thought h2.title a {
  color: inherit;
  text-decoration: none;
}

.thought h2.title a:hover {
  text-decoration: underline;
}

.thought h2,
.thought h3 {
  font-size: 1rem;
  margin: 2rem 0 0.75rem;
}

.subtitle {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem !important;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.meta a {
  color: var(--muted);
  margin-left: 0.75rem;
}

.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}
