/* Evo Legion / 진화 군단 — public pages. One stylesheet, no scripts, no external fonts. */
:root {
  color-scheme: light dark;
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #eeecf6;
  --text: #1b1a24;
  --muted: #5d5a70;
  --line: #d9d6e6;
  --accent: #5b3fd1;
  --accent-text: #ffffff;
  --gold: #9a6a00;
  --note-bg: #fff6df;
  --note-line: #e9c46a;
  --radius: 12px;
  --gutter: 16px;
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #181a30;
    --surface-2: #20233d;
    --text: #ecebf7;
    --muted: #a9a7c2;
    --line: #2e3154;
    --accent: #a995ff;
    --accent-text: #120d2c;
    --gold: #ffd36b;
    --note-bg: #2a2412;
    --note-line: #8a6d1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site .bar {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; }
.site nav a { color: var(--muted); text-decoration: none; }
.site nav a:hover, .site nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.site nav a.lang {
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  text-decoration: none;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}
h1 { font-size: 1.75rem; line-height: 1.3; margin: 8px 0 4px; }
h2 { font-size: 1.25rem; line-height: 1.35; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
p, ul, ol { margin: 8px 0 12px; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
.meta { color: var(--muted); font-size: .92rem; margin-top: 0; }
.lead { font-size: 1.08rem; }
small, .small { font-size: .88rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.note {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

.links { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.links li { margin: 0; }
.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  height: 100%;
}
.links a strong { display: block; color: var(--accent); }
.links a span { color: var(--muted); font-size: .92rem; }

.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; background: var(--surface-2); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.hero h1 { font-size: 2rem; margin-top: 16px; }
.hero p { color: var(--muted); max-width: 560px; margin: 8px auto; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

footer.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
footer.site-footer .bar { max-width: 820px; margin: 0 auto; padding: 20px var(--gutter) 32px; }
footer.site-footer p { margin: 4px 0; }

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  dl.facts { grid-template-columns: 1fr; gap: 0 0; }
  dl.facts dd { margin-bottom: 8px; }
  th, td { padding: 8px 10px; }
}
