:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181b;
    --fg: #e4e4e7;
    --muted: #a1a1aa;
    --line: #3f3f46;
    --link: #fbbf24;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 24px 16px 48px;
  max-width: 44rem;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

section.day h2 a {
  color: inherit;
}

header.site {
  margin-bottom: 32px;
}

header.site .name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

header.site .name a {
  color: inherit;
  text-decoration: none;
}

header.site .description {
  margin: 0;
  color: var(--muted);
}

h1 {
  font-size: 1.3rem;
}

h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1rem;
  margin: 1.2rem 0 0.3rem;
}

.count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

section.day {
  border-top: 1px solid var(--line);
}

ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

nav.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

nav.pager a[rel="next"] {
  margin-left: auto;
}

footer.site {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
