:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #16161d;
  --muted: #5b5b6b;
  --line: #e4e4ee;
  --brand: #4338ca;
  --brand-soft: #eef0ff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --surface: #17171f;
    --text: #f1f1f6;
    --muted: #a3a3b5;
    --line: #2a2a36;
    --brand: #a5b4fc;
    --brand-soft: #1e1f33;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto,
    "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--brand); }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--text); }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.2; margin: 8px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; }
.hero { display: flex; gap: 20px; align-items: center; margin: 12px 0 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(67, 56, 202, 0.25); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.note { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; }
.button {
  display: inline-block; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .button { color: #0f0f14; } }
dl { margin: 0; }
dt { font-weight: 600; margin-top: 14px; }
dd { margin: 2px 0 0; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
footer { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
footer p { color: var(--muted); margin: 4px 0; }
@media (max-width: 520px) {
  header { flex-direction: column; align-items: flex-start; }
  .hero { flex-direction: column; align-items: flex-start; }
}
