:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6b6b6b;
  --border: #e4e4e0;
  --accent: #c0563f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #1f1f1f;
    --text: #eeeeee;
    --muted: #a0a0a0;
    --border: #333333;
    --accent: #e07a62;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

header p {
  margin: 0;
  color: var(--muted);
}

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

.links li + li {
  margin-top: 12px;
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.links a::after {
  content: "›";
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.links a:hover {
  border-color: var(--accent);
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
}

article h1 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

article h2 {
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
}

article h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

article p {
  margin: 0 0 12px;
}

article ul,
article ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

article li ul {
  margin: 4px 0 0;
}

article ol > li + li {
  margin-top: 6px;
}

article a {
  color: var(--accent);
  word-break: break-all;
}

.date {
  margin-top: 40px;
  text-align: right;
  color: var(--muted);
}

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

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