:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1f1d1a;
  --muted: #6b665e;
  --link: #2f5d8a;
  --border: #dedad2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #ece9e3;
    --muted: #a39d92;
    --link: #8fb8de;
    --border: #3a3732;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

main.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.site-header,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.site-header {
  justify-content: space-between;
  align-items: baseline;
}

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

.site-footer {
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
}

main.doc {
  padding-top: 1.5rem;
  overflow-wrap: anywhere;
}

main.doc h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 2.5rem 0 0.75rem;
}

main.doc h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

main.doc p,
main.doc li {
  color: var(--text);
}

main.doc p {
  margin: 0 0 1rem;
}

main.doc ol,
main.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

main.doc li {
  margin-bottom: 0.5rem;
}

main.doc li > ol,
main.doc li > ul {
  margin-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}

main.doc table {
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 36rem;
  overflow-wrap: normal;
}

main.doc th,
main.doc td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
