:root {
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --link: #0b57d0;
  --border: #e2e2e2;
  --header-bg: #fafafa;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
}

.site-header__inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-title {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--link);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.prose h1 {
  font-size: 1.65rem;
  line-height: 1.3;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.prose a {
  color: var(--link);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
}

.prose th {
  background: var(--header-bg);
  text-align: left;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin: 0.25rem 0;
}
