:root {
  color-scheme: light;
  --ink: #172522;
  --muted: #566660;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #dce5df;
  --green: #176b52;
  --green-dark: #104d3d;
  --mint: #e8f3ed;
  --amber: #85570b;
  --amber-bg: #fff6df;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  word-break: keep-all;
}

a { color: var(--green-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--green); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner, main, .site-footer-inner {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

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

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

.nav { display: flex; flex-wrap: wrap; gap: 22px; }
.nav a { font-size: 0.92rem; font-weight: 650; text-decoration: none; }

main { padding-block: 64px 88px; }

.hero {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #eff7f2 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.035em; }
h1 { margin: 0 0 20px; font-size: clamp(2.15rem, 6vw, 3.7rem); }
h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { margin: 0 0 10px; font-size: 1.08rem; }

.lead { max-width: 720px; margin: 0; color: #354740; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.sublead { max-width: 700px; margin: 18px 0 0; color: var(--muted); }

.section { margin-top: 56px; }
.section-intro { max-width: 700px; margin: -4px 0 24px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.link-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button-link.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button-link.primary:hover { background: var(--green-dark); }

.notice {
  padding: 18px 20px;
  border: 1px solid #ead9ad;
  border-radius: 14px;
  background: var(--amber-bg);
  color: #60430c;
}
.notice strong { display: block; margin-bottom: 4px; }

.document { max-width: 780px; margin-inline: auto; }
.document .eyebrow { margin-top: 8px; }
.document h1 { max-width: 740px; margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.document .updated { margin: 0 0 36px; color: var(--muted); font-size: 0.9rem; }
.document section { margin-top: 34px; }
.document h2 { margin-bottom: 12px; font-size: 1.25rem; }
.document p { margin: 0 0 14px; color: #364740; }
.document ul { padding-left: 1.25rem; color: #364740; }
.document li + li { margin-top: 8px; }
.scope-list { overflow-wrap: anywhere; }
.scope-list code { font-size: 0.83rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--green-dark); font-weight: 650; }

@media (max-width: 640px) {
  .header-inner, main, .site-footer-inner { width: min(100% - 28px, 960px); }
  .header-inner { min-height: 66px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 10px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.86rem; }
  main { padding-block: 32px 56px; }
  .hero { border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
  .section { margin-top: 42px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}
