/* Shared look for strangechances.com and the desktop editor. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1c1a;
  --muted: #8a867e;
  --rule: #e6e2da;
  --accent: #9a3b26;
  --measure: 34rem;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --fg: #e9e6df;
    --muted: #8d887f;
    --rule: #2c2a27;
    --accent: #e08a6d;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 19px/1.65 var(--serif); }

.page { max-width: var(--measure); margin: 0 auto; padding: 4.5rem 1.25rem 6rem; }
.site-title { font: 500 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.site-title:hover { color: var(--fg); }

.prose h1 { font-weight: 400; font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.01em; margin: 2.5rem 0 0.5rem; }
.prose h2 { font-weight: 500; font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
.prose h3 { font-weight: 600; font-size: 1.05rem; margin: 1.8rem 0 0.4rem; }
.prose p { margin: 0 0 1.15rem; }
.prose a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.1rem; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.15rem; }
.prose li { margin: 0.2rem 0; }
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; }
.prose hr::after { content: "⁂"; color: var(--muted); }
.prose code { font: 0.85em var(--mono); background: var(--rule); padding: 0.1em 0.3em; border-radius: 3px; }
.prose pre { font: 0.85rem/1.5 var(--mono); background: var(--rule); padding: 1rem; border-radius: 6px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; border-radius: 4px; }

.meta { font: 0.8rem var(--sans); color: var(--muted); letter-spacing: 0.02em; }

.post-list { list-style: none; padding: 0; margin: 3rem 0 0; }
.post-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.post-list a { color: inherit; text-decoration: none; }
.post-list a:hover { color: var(--accent); }
