:root {
  --bg: #ffffff;
  --fg: #1f2933;
  --fg-muted: #52606d;
  --accent: #2563eb;
  --border: #e4e7eb;
  --note-bg: #fef3c7;
  --note-border: #f59e0b;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #e2e8f0;
    --fg-muted: #94a3b8;
    --accent: #60a5fa;
    --border: #1e293b;
    --note-bg: #422006;
    --note-border: #b45309;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-muted);
}

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

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

h3 {
  font-size: 16px;
  margin: 16px 0 4px;
  line-height: 1.5;
}

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

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

li {
  margin: 4px 0;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

.draft-note {
  background-color: var(--note-bg);
  border-left: 4px solid var(--note-border);
  padding: 12px 16px;
  margin: 16px 0 24px;
  border-radius: 4px;
  font-size: 14px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.link-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.link-list a {
  display: block;
  padding: 16px 20px;
  font-weight: 600;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 16px 20px 32px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12px;
}
