@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --fg: #111214;
  --muted: #5d636b;
  --faint: #8a9099;
  --line: #e6e6e3;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --accent: #2f6e72;
  --accent-soft: rgba(47, 110, 114, 0.09);
  --dot: rgba(17, 18, 20, 0.09);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --fg: #ededef;
    --muted: #9ba0a8;
    --faint: #6f747c;
    --line: #23252a;
    --surface: #121316;
    --surface-2: #17191d;
    --accent: #7cc3c6;
    --accent-soft: rgba(124, 195, 198, 0.12);
    --dot: rgba(237, 237, 239, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

:lang(ko) {
  word-break: keep-all;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--fg);
  background: var(--surface-2);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--fg);
}

/* Shared type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
  max-width: 600px;
}

/* Home hero */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  max-width: 12em;
}

.hero h1 span {
  color: var(--muted);
}

.hero .lead {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 36px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--faint);
}

.btn-primary {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: var(--fg);
  opacity: 0.88;
}

/* Home sections */

.block {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tile .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.tile .icon svg {
  width: 20px;
  height: 20px;
}

.tile h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.tile p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.ko-block .tiles {
  margin-top: 8px;
}

/* Legal pages */

.doc-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.doc-head h1 {
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.doc {
  padding: 40px 0 80px;
}

.doc p,
.doc li {
  color: var(--fg);
}

.doc h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 44px 0 10px;
  scroll-margin-top: 24px;
}

.doc h2 .num {
  color: var(--faint);
  font-weight: 600;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 4px;
}

.doc li::marker {
  color: var(--faint);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 8px;
}

.toc-title {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 220px;
  column-gap: 24px;
  font-size: 15px;
}

.toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--fg);
}

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
}

.contact-card {
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 12px 0 0;
}

.contact-card .label {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.ko-doc {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 56px;
}

.ko-doc > h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

/* 404 */

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.not-found .actions {
  justify-content: center;
}

.not-found .code {
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--line);
}

.not-found h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

.not-found p {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.site-footer .brand {
  font-size: 16px;
}

.site-footer .brand img {
  width: 22px;
  height: 22px;
}

.site-footer .tagline {
  margin: 6px 0 0;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--fg);
}

.copyright {
  margin: 32px 0 0;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .nav a {
    padding: 6px 8px;
  }

  .hero {
    padding: 56px 0 56px;
  }

  .block {
    padding: 56px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .doc-head {
    padding: 44px 0 32px;
  }
}
