:root {
  --bg: #fdfcfb;
  --fg: #201c1a;
  --muted: #6b6560;
  --accent: #7a5c3e;
  --border: #e5ded6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --fg: #ede7de;
    --muted: #9a9186;
    --accent: #d9a066;
    --border: #322c24;
  }
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--fg);
}

.site-header nav a {
  margin-left: 1rem;
  text-decoration: none;
}

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

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.post-list time, .meta time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.rating {
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
}

.meta { color: var(--muted); }

.content-warning,
.spoiler-warning {
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.content-warning {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  border: 1px solid var(--accent);
}

.spoiler-warning {
  background: color-mix(in srgb, var(--muted) 20%, var(--bg));
  border: 1px dashed var(--muted);
}

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

.home-section { margin-top: 2.5rem; }
