:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-subtle: #edf4f0;
  --text: #13251e;
  --text-muted: #4b6158;
  --border: #d5e2dc;
  --accent: #104737;
  --accent-soft: #1b6b52;
  --accent-tint: #e4f1eb;
  --shadow: 0 1px 2px rgba(16, 71, 55, 0.06), 0 8px 24px rgba(16, 71, 55, 0.04);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1713;
    --surface: #13231d;
    --surface-subtle: #192d25;
    --text: #edf4f0;
    --text-muted: #a3bab0;
    --border: #243c32;
    --accent: #5fd1a5;
    --accent-soft: #7ee0ba;
    --accent-tint: #173328;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.22);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  word-break: keep-all;
}

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #104737;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 1.02rem;
  color: var(--text);
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.card li {
  margin-bottom: 6px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  color: var(--text);
}

.link-card strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.link-card span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.callout {
  background: var(--surface-subtle);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 540px;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-subtle);
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 6px;
}

.notice {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 20px 44px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 600px) {
  .hero,
  .card {
    padding: 22px 18px;
  }

  .container {
    padding: 20px 14px 48px;
  }
}
