:root {
  color-scheme: light;
  --ink: #33231f;
  --muted: #6f5a50;
  --paper: #fffaf0;
  --card: #fffef9;
  --line: #ead8bd;
  --accent: #377e2d;
  --accent-dark: #286121;
  --gold: #f3b936;
  --danger: #983c33;
  --shadow: 0 18px 50px rgba(77, 49, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.98)),
    repeating-linear-gradient(90deg, #f4e5cc 0, #f4e5cc 1px, transparent 1px, transparent 28px);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(55, 126, 45, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(120, 83, 50, 0.16);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #4b2e23;
  border-radius: 9px;
  background: var(--gold);
  box-shadow: 3px 3px 0 #4b2e23;
  font-size: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 480px;
  align-content: center;
  padding: 70px 0 74px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lede {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid var(--accent-dark);
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  border-color: #71523c;
  background: #fffdf6;
  box-shadow: 4px 4px 0 #71523c;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 80px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .icon {
  display: block;
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.document {
  margin: 48px auto 72px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.document-header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.document-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc {
  margin: 28px 0 42px;
  padding: 18px 22px;
  border-left: 5px solid var(--gold);
  background: #fff7de;
}

.toc strong {
  display: block;
  margin-bottom: 6px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.document section {
  padding-top: 20px;
  scroll-margin-top: 92px;
}

.document table {
  width: 100%;
  margin: 14px 0 24px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.document th,
.document td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.document th {
  background: #fff3d2;
}

.note,
.warning {
  margin: 18px 0;
  padding: 15px 18px;
  border-radius: 12px;
}

.note {
  border: 1px solid #cfe1c9;
  background: #f1faee;
}

.warning {
  border: 1px solid #e4c3bd;
  color: #642d28;
  background: #fff0ed;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.contact-box {
  padding: 24px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: #f6fff3;
}

.contact-box code {
  color: var(--danger);
  font-family: inherit;
  font-weight: 800;
}

.steps {
  padding-left: 22px;
}

.steps li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.site-footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

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

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, 920px);
    min-height: 62px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.keep-mobile) {
    display: none;
  }

  .shell {
    width: min(100% - 28px, 920px);
  }

  .hero {
    min-height: auto;
    padding: 68px 0 56px;
  }

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

  .feature-grid {
    margin-bottom: 54px;
  }

  .document {
    margin-top: 26px;
    border-radius: 16px;
  }

  .document table,
  .document thead,
  .document tbody,
  .document th,
  .document td,
  .document tr {
    display: block;
  }

  .document thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  .document tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .document td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .document td:last-child {
    border-bottom: 0;
  }

  .document td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 800;
  }

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

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

