:root {
  color-scheme: light dark;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #1f2937;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(860px, calc(100% - 32px));
  margin: 48px auto;
  padding: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

h1,
h2 {
  line-height: 1.35;
  color: #0f172a;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

a {
  color: #2563eb;
}

ul {
  padding-left: 1.4rem;
}

.meta {
  color: #64748b;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
}

.document-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.document-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
}

.document-list a:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e2e8f0;
    background: #020617;
  }

  main {
    border-color: #334155;
    background: #0f172a;
    box-shadow: none;
  }

  h1,
  h2 {
    color: #f8fafc;
  }

  a {
    color: #60a5fa;
  }

  .meta,
  footer {
    color: #94a3b8;
  }

  .notice {
    background: #172554;
  }

  .document-list a,
  footer {
    border-color: #334155;
  }

  .document-list a:hover {
    border-color: #60a5fa;
    background: #1e293b;
  }
}

@media (max-width: 640px) {
  main {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    padding: 28px 20px;
    border: 0;
    border-radius: 0;
  }
}

