:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #292638;
  background: #f7f6fb;
  line-height: 1.7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f6fb; color: #292638; }
a { color: #6654c7; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #8d7bea; outline-offset: 3px; border-radius: 4px; }
.site-header, .site-footer, .page { width: min(100% - 32px, 760px); margin-inline: auto; }
.site-header { padding: 22px 0 8px; }
.brand { color: inherit; font-size: 1.15rem; font-weight: 900; text-decoration: none; }
.page { margin-block: 18px 36px; padding: clamp(24px, 5vw, 48px); background: #fff; border: 1px solid #ebe8f3; border-radius: 28px; box-shadow: 0 18px 50px rgb(44 37 84 / 8%); }
.hero { text-align: center; padding-block: clamp(44px, 9vw, 84px); }
.eyebrow { color: #6b59c8; font-weight: 900; }
h1 { margin: 6px 0 18px; font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.25; }
h2 { margin-top: 2.2em; font-size: 1.3rem; line-height: 1.4; }
h3 { margin-top: 1.6em; font-size: 1.08rem; }
p, li, th, td { font-size: 1rem; }
.lead { color: #666175; font-size: 1.08rem; }
.meta, .notice { color: #716b7d; }
.notice { padding: 16px; background: #f4f1ff; border-radius: 14px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.link-grid a, .primary-action { display: grid; place-items: center; min-height: 52px; padding: 12px; border-radius: 14px; background: #eeeafd; color: #5847b1; font-weight: 800; text-decoration: none; }
.primary-action { background: #6b59c8; color: #fff; margin: 22px 0; text-align: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px; border: 1px solid #ddd8e8; text-align: left; vertical-align: top; }
th { background: #f4f1fb; }
.site-footer { padding: 0 0 36px; text-align: center; color: #716b7d; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e1ec; }

@media (max-width: 520px) {
  .page { width: min(100% - 20px, 760px); border-radius: 20px; }
  .link-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root, body { color: #f3f0fa; background: #17151d; }
  .page { background: #211e29; border-color: #373241; box-shadow: none; }
  a { color: #b9aaff; }
  .lead, .meta, .notice, .site-footer { color: #c2bccb; }
  .notice, th, .link-grid a { background: #302a40; }
  .link-grid a { color: #d0c5ff; }
  th, td, .footer-links { border-color: #423c4c; }
}
