
:root {
  --text: #2a2a2a;
  --muted: #777;
  --link: #1a4d7a;
  --link-hover: #c0392b;
  --bg: #fafafa;
  --rule: #e5e5e5;
  --max: 720px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0 1.25rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
header.site h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
  font-weight: normal;
}
header.site h1 a {
  color: var(--text);
  text-decoration: none;
}
header.site nav {
  font-size: 0.85rem;
  color: var(--muted);
}
header.site nav a {
  margin: 0 0.5rem;
  color: var(--muted);
  text-decoration: none;
}
header.site nav a:hover { color: var(--link-hover); }
header.site nav a.current { color: var(--text); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

article h1, .page h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: normal;
  margin: 0 0 0.25rem;
}
article .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-style: italic;
}
article h2 { font-size: 1.3rem; margin-top: 2.5rem; font-weight: normal; }
article h3 { font-size: 1.1rem; margin-top: 2rem; font-weight: bold; }
article p { margin: 1rem 0; }
article blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--rule);
  color: #555;
  font-style: italic;
}
article ul, article ol { padding-left: 1.5rem; }
article li { margin: 0.35rem 0; }
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}
article figure { margin: 1.5rem 0; }
article figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; }
article hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
article pre {
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
article code { font-family: 'Menlo', monospace; font-size: 0.92em; }

/* Aesthetics: pinterest-style masonry via CSS columns. */
.aesthetics-flat {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 1000px) {
  .aesthetics-flat {
    column-count: 3;
  }
}
@media (max-width: 600px) {
  .aesthetics-flat {
    column-count: 1;
  }
}
.aesthetics-flat > * {
  break-inside: avoid;
  margin: 0 0 1rem;
  display: block;
}
.aesthetics-flat img {
  width: 100%;
  height: auto;
}
.aesthetics-flat blockquote {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--rule);
  color: #555;
  font-style: italic;
  font-size: 0.9rem;
}
.aesthetics-flat blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}
.aesthetics-flat p {
  font-size: 0.9rem;
}
/* Wider container for the aesthetics page so columns have room. */
body.aesthetics .wrap { max-width: 1100px; }

.listing { list-style: none; padding: 0; margin: 0; }
.listing li { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.listing li:last-child { border-bottom: 0; }
.listing a { font-size: 1.1rem; }
.listing .date { color: var(--muted); font-size: 0.85rem; display: block; margin-top: 0.15rem; }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
