:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #5f6b7a;
  --brand: #1d4ed8;
  --brand-soft: #eff6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.75;
}

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

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--line);
}

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

.site-header__inner,
.site-footer__inner,
.page {
  width: min(100%, 960px);
  margin: 0 auto;
}

.site-header__inner {
  min-height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

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

.nav a:hover,
.nav a:focus {
  color: var(--text);
  text-decoration: underline;
}

.page {
  padding: 40px 20px 56px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: #374151;
  font-size: 18px;
}

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

.content {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.section h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.section p,
.section ul,
.section ol {
  margin-top: 0;
  margin-bottom: 12px;
}

.section ul,
.section ol {
  padding-left: 22px;
}

.section li {
  margin: 6px 0;
}

.note {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 12px 14px;
  color: #1f2937;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfdff;
  color: var(--text);
  text-decoration: none;
}

.link-grid a:hover,
.link-grid a:focus {
  border-color: #bfdbfe;
  color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  padding: 22px 20px 30px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .page {
    padding: 24px 14px 40px;
  }

  .hero,
  .section {
    border-radius: 12px;
    padding: 20px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
