/* Sibylance — minimal, readable, no JavaScript
   Design principle: maximum readability, no noise.
   Palette: near-black on warm white, one accent. */

:root {
  --bg:         #faf9f7;
  --text:       #1a1a18;
  --text-muted: #6b6b65;
  --accent:     #4a3f35;
  --border:     #e0ddd8;
  --font-body:  'Georgia', 'Times New Roman', serif;
  --font-mono:  'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace;
  --max-width:  720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  padding: 0 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-nav { display: flex; align-items: baseline; gap: 1rem; }
.site-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-name:hover { text-decoration: underline; }
.site-nav-tagline { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--accent); }

/* Home */
.home-intro { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.site-title { font-size: 2rem; margin-bottom: 0.3rem; color: var(--accent); }
.site-tagline { font-style: italic; color: var(--text-muted); margin-bottom: 0.8rem; }
.site-desc { font-size: 0.95rem; color: var(--text-muted); max-width: 560px; }

/* Dispatch index */
.dispatch-index { list-style: none; }
.dispatch-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.dispatch-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 0.2rem;
  grid-row: 1;
}
.dispatch-link {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  grid-row: 1;
}
.dispatch-link:hover { color: var(--accent); text-decoration: underline; }
.dispatch-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

/* Dispatch single */
.dispatch-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.dispatch-title { font-size: 1.8rem; line-height: 1.25; margin-bottom: 0.6rem; }
.dispatch-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.dispatch-lede {
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.tag {
  background: var(--border);
  padding: 0.1em 0.5em;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Body prose */
.dispatch-body { max-width: 660px; }
.dispatch-body h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.dispatch-body h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.dispatch-body p { margin-bottom: 1.1rem; }
.dispatch-body ul, .dispatch-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.dispatch-body li { margin-bottom: 0.3rem; }
.dispatch-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.dispatch-body pre {
  background: #1e1e1c;
  color: #f0ede8;
  padding: 1.2rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.dispatch-body pre code { background: none; padding: 0; color: inherit; }
.dispatch-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.dispatch-body a { color: var(--accent); }
.dispatch-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Footer nav */
.dispatch-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.dispatch-footer a { color: var(--accent); font-size: 0.9rem; }

/* Section title */
.section-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.section-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.recent-dispatches h2 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: normal; }

/* Responsive */
@media (max-width: 560px) {
  html { font-size: 16px; }
  .dispatch-item { grid-template-columns: 1fr; }
  .dispatch-date { grid-row: auto; }
  .dispatch-summary { grid-column: 1; }
}
