/* アプリの朝（明るい）と夜（暗い）の色に合わせる。src/ui/theme.ts */
:root {
  color-scheme: light dark;
  --bg: #fffdfa;
  --text: #3b2e22;
  --muted: #7a6754;
  --border: #e4d3c0;
  --surface: #f7e7d6;
  --todo-bg: #ffe08a;
  --todo-text: #3b2e22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e2540;
    --text: #edf1fb;
    --muted: #bfc8e2;
    --border: #39436a;
    --surface: #232b48;
    --todo-bg: #f2c45a;
    --todo-text: #1e2540;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.brand {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.4;
}

h2 {
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.5;
}

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

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 4px;
}

a {
  color: inherit;
}

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

.contact {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact p:last-child {
  margin-bottom: 0;
}

.links {
  padding: 0;
  list-style: none;
}

.links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}
