:root {
  --ground: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --mark: #fff1a8;
  --mark-text: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0b0b;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --mark: #6b5a00;
    --mark-text: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding-top: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

main {
  padding-top: 8px;
  padding-bottom: 40px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 28px 0 8px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 36px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 6px;
}

a {
  color: inherit;
  text-underline-offset: 2px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* An unfilled value. Every one of these must be gone before the page is published. */
mark {
  background: var(--mark);
  color: var(--mark-text);
  padding: 0 3px;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer nav a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 6px;
}
