:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #20241f;
  --muted: #667064;
  --line: #d9dfd4;
  --accent: #b6782f;
  --accent-strong: #176154;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 40px;
}

.hero {
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doc-link {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

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

.doc-link span {
  font-size: 22px;
  font-weight: 750;
}

.doc-link small {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  margin-top: 52px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 4px 0;
}

.document {
  padding: 56px 0 80px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.language-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: -84px;
  margin-bottom: 52px;
}

.language-switch a,
.doc-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  padding: 10px 14px;
  text-decoration: none;
}

.language-switch a[aria-current="page"],
.doc-tabs a[aria-current="page"] {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--white);
}

.document header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
  margin-bottom: 36px;
}

.document h1 {
  font-size: clamp(34px, 6vw, 56px);
}

.updated {
  margin: 18px 0 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 10px 0;
}

ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

@media (max-width: 680px) {
  .shell,
  .document {
    width: min(100% - 28px, 920px);
  }

  .shell {
    justify-content: flex-start;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .doc-link {
    min-height: 132px;
  }

  .lead {
    font-size: 17px;
  }

  .language-switch {
    justify-content: flex-start;
    margin-top: -32px;
    margin-bottom: 36px;
  }
}
