:root {
  --bg: #0a0d0b;
  --bg-soft: #10150f;
  --text: #e8f0e6;
  --muted: #7f8c7d;
  --line: #1e2620;
  --accent: #7fd47f;
  --maxw: 660px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, #16211a 0%, rgba(10,13,11,0) 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.75 ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 28px 48px;
  gap: 34px;
}

.logo {
  width: min(430px, 76vw);
  height: auto;
  display: block;
}

.tagline {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #b9c9b6;
  max-width: 30ch;
}

.soon {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ko"] .soon { letter-spacing: 0.08em; }

/* ---------- social ---------- */

.social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social a {
  color: var(--muted);
  display: inline-flex;
  transition: color 0.18s ease;
}

.social a:hover { color: var(--accent); text-decoration: none; }
.social svg { width: 21px; height: 21px; display: block; }

footer .social svg { width: 17px; height: 17px; }

/* ---------- document pages ---------- */

.docbar {
  border-bottom: 1px solid var(--line);
}

.docbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.wordmark img { height: 26px; width: auto; display: block; }

main.doc {
  flex: 1;
  padding: 56px 0 72px;
}

h1 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: #cddccb;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 19px; }
li { margin-bottom: 5px; }

strong { font-weight: 600; }

.updated {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 34px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 30px 0 0;
  font-size: 15px;
}

.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 12.5px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

.sep { opacity: 0.4; }

.lang {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.lang:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.docbar .lang { font-size: 13px; }

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  main.doc { padding: 40px 0 56px; }
  .hero { gap: 28px; }
}

/* ---------- language switching ---------- */

[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="ko"] [data-lang="ko"] { display: revert; }
