:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1c20;
  --muted: #5b5e66;
  --line: #e5e1d8;
  --accent: #b36b00;
  --glow: #f4b53f;
  --chip: #f3efe6;
  --focus: #1f5fbf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316;
    --surface: #1a1b1f;
    --ink: #ecebe6;
    --muted: #a4a6ac;
    --line: #2c2e34;
    --accent: #f2b544;
    --glow: #f4b53f;
    --chip: #24262b;
    --focus: #8ab4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --surface: #1a1b1f; --ink: #ecebe6; --muted: #a4a6ac; --line: #2c2e34;
  --accent: #f2b544; --glow: #f4b53f; --chip: #24262b; --focus: #8ab4ff; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(ko) body, body:lang(ko) { line-height: 1.75; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; font-size: 18px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 40px; }
@media (min-width: 720px) { .hero { padding: 88px 0 56px; } }
.eyebrow { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 25%, transparent); }
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 700; max-width: 18em; }
:lang(ko) h1 { letter-spacing: -0.03em; line-height: 1.3; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 40em; margin: 0; }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin: 0 0 20px; }
:lang(ko) h2 { text-transform: none; letter-spacing: 0.02em; font-size: 15px; }
h3 { font-size: 19px; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.about p { max-width: 42em; margin: 0 0 14px; }

/* Services */
.group-title { font-size: 16px; font-weight: 650; margin: 28px 0 14px; }
.group-title:first-of-type { margin-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.card .alt { color: var(--muted); font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.chip { display: inline-block; font-size: 12.5px; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.card .links { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.card .links a { color: var(--accent); font-weight: 550; text-decoration: none; }
.card .links a:hover { text-decoration: underline; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 46em; }

/* Definition tables */
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .facts > div { grid-template-columns: 220px 1fr; } }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }

/* Prose (privacy) */
.prose { padding: 48px 0 32px; max-width: 46em; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); }
.prose h2 { text-transform: none; letter-spacing: -0.005em; font-size: 20px; color: var(--ink); margin: 36px 0 10px; font-weight: 650; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose .updated { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 8px 10px; }
th { background: var(--chip); font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
table.simple { min-width: 0; }
table.simple td { overflow-wrap: anywhere; }
