:root {
  --bg: #ffffff;
  --surface: #f5f5fb;
  --border: #e3e3ef;
  --text: #1c1b2e;
  --muted: #5d5f72;
  --accent: #4338ca;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #15151c;
    --surface: #1f1f29;
    --border: #2f2f3d;
    --text: #ececf3;
    --muted: #a3a5b8;
    --accent: #a5a8ff;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.7;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

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

code {
  font-size: 0.9em;
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 32px;
}

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

article {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

article:last-child {
  border-bottom: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 6px;
}

h2 {
  font-size: 18px;
  margin: 28px 0 6px;
}

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

.summary {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

ul {
  padding-left: 22px;
}

/* 소개 페이지 */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: 32px;
  margin-top: 12px;
}

.hero h1 span {
  color: var(--muted);
  font-weight: 500;
}

.hero .en {
  color: var(--muted);
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.features div {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
}

.features h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
}
