/* Colors come from docs/design/README.md (text, textSecondary, background, backgroundElement, border, accent). */
:root {
  color-scheme: light dark;
  --text: #000000;
  --text-secondary: #60646c;
  --background: #ffffff;
  --background-element: #f0f0f3;
  --border: #d9d9e0;
  --accent: #5b3fd9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ffffff;
    --text-secondary: #b0b4ba;
    --background: #000000;
    --background-element: #212225;
    --border: #3a3d42;
    --accent: #a897ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.5rem 1.25rem 3rem;
  background: var(--background);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Hiragino Sans',
    'Noto Sans JP',
    sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

header {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

header a {
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.4;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

h3,
h4 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

li + li {
  margin-top: 0.25rem;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--background-element);
}

/* Tables are wider than a phone screen. Only the table scrolls, not the page. */
.table {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.95rem;
  overflow-wrap: normal;
}

th,
td {
  min-width: 7rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--background-element);
}

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

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li + li {
  margin-top: 0;
}
