:root {
  --bg: #fdeed0;
  --fg: #1a1a1a;
  --muted: #6b5f48;
  --border: #e0c99a;
  --head-bg: #f7e0b4;
  --link: #0645ad;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --fg: #e8e8e8;
  --muted: #9a9a9a;
  --border: #333333;
  --head-bg: #1e1e1e;
  --link: #7fb3ff;
}

* {
  box-sizing: border-box;
}

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

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  margin: 0;
  font-size: 2.6rem;
}

h2 {
  margin: 40px 0 12px;
  font-size: 1.4rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
}

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

button {
  font: inherit;
  font-size: 0.85rem;
  padding: 2px 10px;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--head-bg);
}

.statement {
  font-size: 1.1rem;
}

.note {
  margin: 0 0 12px;
  color: var(--muted);
  font-style: italic;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: var(--head-bg);
}

td:first-child {
  white-space: nowrap;
}

.status {
  white-space: nowrap;
}

td ul {
  margin: 0;
  padding-left: 18px;
}

td li + li {
  margin-top: 4px;
}

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}