:root {
  color-scheme: light dark;
  --background: #f7faf8;
  --surface: #ffffff;
  --text: #17211c;
  --muted: #5d6a63;
  --primary: #286248;
  --primary-container: #d8eddf;
  --outline: #d7dfda;
  --shadow: rgba(23, 33, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
}

body {
  margin: 0;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

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

.site-header__inner,
.page {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
}

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

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  text-decoration: none;
}

.language-links {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.page {
  padding-block: 40px 64px;
}

.card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 32px var(--shadow);
}

h1,
h2 {
  line-height: 1.35;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p,
ul {
  margin-block: 0.75rem;
}

ul {
  padding-inline-start: 1.35rem;
}

.effective-date,
.muted {
  color: var(--muted);
}

.lead {
  margin-block: 1.5rem 2rem;
  font-size: 1.05rem;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.link-card {
  display: block;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--primary-container);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101512;
    --surface: #18201b;
    --text: #e4ebe6;
    --muted: #aab7af;
    --primary: #94d5af;
    --primary-container: #244d37;
    --outline: #35433a;
    --shadow: rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    min-height: 56px;
  }

  .page {
    width: min(100% - 20px, 800px);
    padding-block: 20px 40px;
  }

  .card {
    padding: 24px 20px;
    border-radius: 20px;
  }
}
