:root {
  color-scheme: light;
  --brand: #124b38;
  --brand-strong: #0b3829;
  --brand-soft: #e4eee9;
  --ink: #142019;
  --muted: #59665f;
  --surface: #ffffff;
  --surface-muted: #f2f5f3;
  --line: #d6dfda;
  --focus: #8d5c00;
  --content-width: 1160px;
  --radius: 18px;
}

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

html {
  background: var(--surface-muted);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--brand-strong);
  border-radius: 10px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(214, 223, 218, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.site-footer,
.section-inner,
.hero-inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav ul,
.language-nav ul,
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a,
.language-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  align-items: center;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.language-nav a:hover,
.language-nav a[aria-current="page"] {
  background: var(--brand-soft);
}

.language-nav {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.hero {
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}

.eyebrow,
.label {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 780;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  max-width: 68ch;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 7vw, 5.15rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  font-weight: 780;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  font-weight: 750;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-link {
  display: inline-flex;
  min-height: 52px;
  padding: 0.78rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 14px;
  font-weight: 720;
  text-decoration: none;
}

.button-link.primary {
  color: #ffffff;
  background: var(--brand);
}

.button-link.primary:hover {
  color: #ffffff;
  background: var(--brand-strong);
}

.button-link.secondary {
  color: var(--brand);
  background: var(--surface);
}

.hero-summary {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.hero-summary dl {
  display: grid;
  margin: 0;
  gap: 1.1rem;
}

.hero-summary div + div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.hero-summary dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.hero-summary dd {
  margin: 0.2rem 0 0;
  font-size: 1.12rem;
  font-weight: 760;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section.white {
  background: var(--surface);
}

.section.green {
  color: #ffffff;
  background: var(--brand-strong);
}

.section.green .label,
.section.green .muted,
.section.green .section-lead {
  color: #d7e7df;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 2rem 4rem;
  align-items: end;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-lead,
.muted {
  color: var(--muted);
}

.feature-grid,
.steps-grid,
.boundary-grid,
.disease-grid,
.policy-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.step-card,
.boundary-card,
.policy-card,
.disease-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p,
.step-card p,
.boundary-card p,
.policy-card p,
.disease-card p {
  margin: 0;
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.workout-list {
  display: flex;
  margin: 1.75rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
}

.workout-list li,
.status-pill,
.paid-label {
  display: inline-flex;
  min-height: 38px;
  padding: 0.42rem 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 690;
}

.disease-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.disease-card {
  min-height: 158px;
}

.disease-card h3 {
  font-size: 1.12rem;
}

.family-intro {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.75rem;
}

.paid-label {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.boundary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-card {
  color: var(--ink);
}

.boundary-card h3 {
  margin-bottom: 1.2rem;
}

.plain-list,
.instruction-list {
  margin: 0;
  padding-left: 1.25rem;
}

.plain-list li + li,
.instruction-list li + li {
  margin-top: 0.65rem;
}

.never-share {
  border-color: #b9c9c0;
  background: #eef3f0;
}

.steps-grid {
  margin-top: 1rem;
}

.step-card {
  color: var(--ink);
}

.step-card .card-number {
  margin-bottom: 1rem;
}

.support-note {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid #b7d3c5;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card h2,
.policy-card h3 {
  font-size: 1.35rem;
}

.policy-card .button-link {
  margin-top: 1.25rem;
}

.fine-print {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 2.5rem;
  background: var(--surface);
}

.article-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
}

.article-meta {
  margin: 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.article-nav {
  align-self: start;
}

.article-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-nav li + li {
  margin-top: 0.4rem;
}

.article-nav a {
  display: block;
  min-height: 44px;
  padding: 0.55rem 0;
  font-weight: 660;
}

.article-content section + section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.article-content h3 {
  margin-top: 1.75rem;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table caption {
  margin-bottom: 0.8rem;
  text-align: left;
  font-weight: 750;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  width: 32%;
}

.notice {
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
}

.site-footer {
  display: flex;
  padding-block: 2rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 650;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-inner,
  .section-heading,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .disease-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    min-height: 64px;
  }

  .language-nav {
    padding-left: 0;
    border-left: 0;
  }

  .language-nav a {
    padding-inline: 0.55rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-inner,
  .section-heading {
    gap: 2rem;
  }

  .boundary-grid,
  .disease-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-link {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-nav ul {
    justify-content: flex-start;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  .data-table td {
    padding-top: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #66736c;
    --muted: #354039;
  }

  .card,
  .step-card,
  .boundary-card,
  .policy-card,
  .disease-card,
  .hero-summary {
    border-width: 2px;
  }
}
