:root {
  color-scheme: light dark;
  --bg: #fffdf8;
  --text: #222;
  --muted: #6b6b6b;
  --accent: #d9480f;
  --accent-soft: #fff0e6;
  --rule: #ece7dd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1d;
    --text: #e8e6e3;
    --muted: #a09d98;
    --accent: #ff8a4c;
    --accent-soft: #2c2420;
    --rule: #33302c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 1.5rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-style: wavy; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px dashed var(--rule);
}
.site-title { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.site-title::after { content: " ✦"; color: var(--accent); }
.site-header nav a { margin-left: 1rem; }
.site-header nav a:first-child { margin-left: 0; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }

.tagline { font-size: 1.25rem; color: var(--muted); margin-top: 0; }

.meta, time { color: var(--muted); font-size: 0.95rem; }

.translations {
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.95rem;
}

.article-list { list-style: none; padding: 0; }
.article-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.article-list h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.article-list h2 a { color: var(--text); text-decoration: none; }
.article-list h2 a:hover { color: var(--accent); }
.article-list p { margin: 0.5rem 0 0; }

article img { max-width: 100%; height: auto; border-radius: 6px; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem; background: var(--accent-soft); border-radius: 6px; }

table { display: block; overflow-x: auto; border-collapse: collapse; }
th, td { padding: 0.4rem 0.75rem; border: 1px solid var(--rule); }

.site-footer { margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
