:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #0a5fd6;
  --border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #eaeaea;
    --muted: #a0a0a0;
    --accent: #6fa8ff;
    --border: #333333;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding: 16px 0;
}

header.site-header .brand {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--fg);
}

nav.site-nav {
  margin-top: 8px;
}

nav.site-nav a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
  font-size: 0.95rem;
}

nav.site-nav a:hover,
nav.site-nav a:focus {
  text-decoration: underline;
}

h1 {
  font-size: 1.6rem;
}

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

h3 {
  font-size: 1.05rem;
  margin-top: 1.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

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