/* The whole site's look: the landing page's colours and type, shared by every page. */
:root { color-scheme: light dark; --bg: #fafaf8; --fg: #1d1d1b; --muted: #5c5c58; --line: #e2e2dc; }
@media (prefers-color-scheme: dark) { :root { --bg: #141413; --fg: #ededea; --muted: #a3a39e; --line: #2c2c2a; } }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
}
main { max-width: 40rem; margin: 0 auto; padding: 3rem 16px 4rem; }
a { color: inherit; }
h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); margin: 0 0 0.25rem; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
.muted, time { color: var(--muted); }
.tagline { font-size: 1.125rem; margin: 0 0 2.5rem; }

/* Main page: the stacked list of devlogs, newest first. */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.posts a { font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 0.25rem 0 0; color: var(--muted); }

/* A post page. */
.home { font-weight: 600; text-decoration: none; }
article h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-top: 2rem; }
article img, article video { display: block; width: 100%; height: auto; margin: 1.25rem 0; border-radius: 6px; }
.postnav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; }
.postnav a { font-weight: 600; text-decoration: none; }
.postnav a:hover { text-decoration: underline; }
.postnav .next { margin-left: auto; }
.placeholder { border: 1px dashed var(--muted); color: var(--muted); padding: 1rem; margin: 1.25rem 0; border-radius: 6px; }
