/* 公開サイトのスタイル。
   規約を読ませることが第一の用途のため、装飾より可読性を優先する。
   ビルド工程を増やさないよう素の CSS で書く（フレームワークは入れない）。 */

:root {
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e5e5ea;
  --bg: #ffffff;
  --accent: #1c1c1e;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --bg: #1c1c1e;
    --accent: #f2f2f7;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  /* 日本語の長文を読ませるため、行間は広めに取る。 */
  line-height: 1.9;
  font-size: 16px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* 節の先頭に余計な区切り線を出さない。 */
section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.established,
.copyright {
  color: var(--muted);
  font-size: 0.85rem;
}

.preamble {
  margin-bottom: 2rem;
}

.hero {
  padding: 2rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
}

.status {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  font-size: 0.9rem;
}
