:root {
  color-scheme: dark;
  --background: #020303;
  --foreground: #f4f4f2;
  --muted: #a3a3a0;
  --line: #292a2a;
  --surface: #0a0b0b;
  --focus: #8fb8ff;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--foreground);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-150%);
}

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

.site-header,
.page,
.site-footer {
  width: min(100% - 2.5rem, 960px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem;
  font-size: 0.75rem;
  font-weight: 680;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--foreground);
}

.page {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.document-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--foreground);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.45rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
  word-break: keep-all;
}

.eyebrow + h1 {
  margin-top: 1.3rem;
}

.lede {
  max-width: 700px;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
}

.updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 680;
}

.scope,
.section-title,
.legal-section,
.directory {
  border-bottom: 1px solid var(--line);
}

.scope,
.legal-section {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.6rem;
}

.scope-label,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-copy {
  margin-bottom: 1.3rem;
  line-height: 1.75;
  word-break: keep-all;
}

.scope dl {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.scope dl div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
}

.scope dt {
  color: var(--foreground);
  font-weight: 700;
}

.section-title {
  padding-block: 2.8rem 2rem;
}

.section-title h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.legal-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.legal-section p {
  margin-bottom: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  word-break: keep-all;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.directory {
  padding-block: 2.7rem;
}

.directory h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.directory-intro {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.75;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-item {
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.app-item h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.app-item p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  word-break: keep-all;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 730;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  font-size: 0.8rem;
  font-weight: 720;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    padding-block: 3.5rem;
  }

  .scope,
  .legal-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .app-list {
    grid-template-columns: 1fr;
  }
}

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