/* ---------------------------------------------------------------------------
   Minimal blog theme — in the spirit of stephango.com
   Tweak the variables below to make it yours.
--------------------------------------------------------------------------- */

:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-width: 40rem;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #999999;
  --accent: #d23f31;
  --border: #ececec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --text: #e6e6e6;
    --muted: #7d7d7d;
    --accent: #ff6f61;
    --border: #2a2a2a;
  }
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

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

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

main { min-height: 60vh; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; margin: 2rem 0 0.5rem; }
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1.1rem; }

img { max-width: 100%; height: auto; border-radius: 6px; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

pre, code { font-family: var(--font-mono); }
code { background: var(--border); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
pre {
  background: var(--border);
  padding: 1rem;
  border-radius: 6px;
  overflow: auto;
  font-size: 0.9rem;
}
pre code { background: none; padding: 0; }

/* Post + list ------------------------------------------------------------- */
.post > time { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.back { margin-top: 3rem; font-size: 0.95rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
}
.post-list li a { color: var(--text); }
.post-list li a:hover { color: var(--accent); }
.post-list time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* Topics & ratings -------------------------------------------------------- */
.topic { color: var(--muted); }
.rating { color: var(--accent); letter-spacing: 0.08em; }
.topic:hover { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.post-meta .topic { color: var(--muted); }
.topics-index { color: var(--muted); font-size: 1.15rem; }
.topics-index a { text-decoration: underline; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

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