:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666;
  --accent: #da2455;
  --border: #ddd;
}

* {
  box-sizing: border-box;
}

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

.site-header,
.site-footer {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
}

.site-header a,
.site-footer a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}

.post-meta span::before {
  content: " \00b7 ";
}

article img,
article video {
  max-width: 100%;
  height: auto;
}

.featured-image {
  display: block;
  margin: 1rem 0;
}

/* fallback styling for plain <pre><code class="language-x"> blocks
   before Prism.js highlights them (or if JS doesn't run at all --
   Prism's own theme takes over via a more specific selector once it
   adds a matching class to the <pre> itself) */
article pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 6px;
  margin: 0;
  font-size: 0.95em;
  background: rgba(128, 128, 128, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.6) transparent;
}

article code {
  font-size: 0.95em;
}

article pre::-webkit-scrollbar {
  height: 8px;
}

article pre::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.6);
  border-radius: 4px;
}

article pre.wp-block-preformatted {
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  padding: 0;
}

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

article a {
  color: var(--accent);
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list time {
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-block;
  min-width: 8rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eee;
    --bg: #111;
    --muted: #999;
    --border: #333;
  }
}
