/* mattnicole.com — minimal styles */

:root {
  --fg: #222;
  --muted: #666;
  --bg: #fafafa;
  --link: #0066cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eee;
    --muted: #999;
    --bg: #1a1a1a;
    --link: #66aaff;
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

main {
  max-width: 640px;
  margin: 4rem auto 2rem;
  padding: 0 1.5rem;
}

p { margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
ul { padding-left: 1.5rem; }
li { margin: 0.25rem 0; }

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

footer {
  max-width: 640px;
  margin: 3rem auto 2rem;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--muted);
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); }

/* Blog posts: images never overflow the column; width/height attributes keep
   the aspect ratio reserved while they load (no layout shift). */
.post img, .post video { max-width: 100%; height: auto; }
.post figure { margin: 0 0 1.5rem; }
.post-cover img { display: block; width: 100%; border-radius: 6px; }
.post-media { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.post-media audio, .post-media video { flex: 1 1 280px; width: 100%; }
.post-media figcaption { flex-basis: 100%; }
.post-artwork { border-radius: 6px; flex: 0 0 auto; }
.preview-banner { background: #fef3c7; color: #78350f; padding: .6rem .9rem; border-radius: 6px; font-size: .9rem; }
.post picture { display: block; }
.post-cover picture img { display: block; width: 100%; border-radius: 6px; }
