:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d8dee4;
  --link: #0b57d0;
  --card: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6edf3;
    --muted: #9198a1;
    --line: #30363d;
    --link: #6ea8fe;
    --card: #161b22;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.875rem;
  line-height: 1.3;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

p,
ul {
  margin: 0 0 0.75rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

code {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--card);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.dates,
.note {
  color: var(--muted);
  font-size: 0.875rem;
}

.lead {
  font-size: 1.125rem;
}

.en {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--card);
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: inherit;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
}

.nowrap {
  white-space: nowrap;
}
