:root {
  --bg: #FDFCFB;
  --surface: #FFFFFF;
  --text: #382D26;
  --muted: #7C7672;
  --border: #EEEBE8;
  --accent: #E07A56;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1411;
    --surface: #231A14;
    --text: #F5F3F0;
    --muted: #C4BFB9;
    --border: #3A322C;
    --accent: #E89F77;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 24px 20px calc(40px + env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: break-word;
  overflow-wrap: anywhere;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin: 4px 0;
}

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

.updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.signature {
  color: var(--muted);
  font-size: 14px;
  margin-top: 32px;
}
