@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* 토큰은 관리자 웹(design/admin-theme-refresh) 리디자인과 동일 —
   Inter + 잉크/화이트/그레이 하나로 통일, 액센트 컬러 없음, flat & bordered, 그림자 없음. */
:root {
  --app-font: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ink: #17181c;
  --muted: #8b8b85;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7f5;
  --border: #e6e6e2;
  --focus: #17181c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--app-font);
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.7; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Top bar ────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.bmark {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.doctabs {
  display: flex;
  gap: 20px;
}
.doctabs a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.doctabs a:hover { color: var(--ink); opacity: 1; }
.doctabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── Hero ───────────────────────────────────────────── */
main { max-width: 720px; margin: 0 auto; padding: 56px 20px 100px; }

.hero { padding: 0 0 40px; }

.h1-lead {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.eyebrow-badge {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--ink);
}

.lede {
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 18px;
  line-height: 1.6;
  font-weight: 400;
}

.meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Body ───────────────────────────────────────────── */
.paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
@media (max-width: 560px) {
  .paper { padding: 24px 20px; border-radius: 12px; }
}

.paper > p:first-child { margin-top: 0; }

h2 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.paper > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 18px 0 8px;
}

p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #43443f;
  margin: 0 0 10px;
  font-weight: 400;
}

ul { margin: 4px 0 14px; padding: 0 0 0 4px; list-style: none; }
li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #43443f;
  margin-bottom: 6px;
}
li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.goal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Index-only hub cards ───────────────────────────── */
.hublist { display: grid; gap: 10px; margin-top: 4px; }
.hubcard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s;
}
.hubcard:hover { border-color: var(--ink); opacity: 1; }
.hubcard .ic {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.hubcard .tt { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 2px; }
.hubcard .dd { font-size: 12.5px; color: var(--muted); margin: 0; }
.hubcard .go { margin-left: auto; color: var(--muted); font-size: 18px; }

footer {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 22px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--ink); opacity: 1; }
.footer-sep { opacity: 0.5; }

@media (max-width: 560px) {
  .doctabs { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ea;
    --muted: #9a9a90;
    --bg: #111214;
    --surface: #16171a;
    --surface-muted: #1c1d20;
    --border: #2c2d30;
  }
  .bmark { background: var(--ink); color: #111214; }
  p, li { color: #cfd0c6; }
}
