:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1d1f24;
  --muted: #70747c;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eef4ff;
  --max-width: 940px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --bg-alt: #16191e;
    --text: #f3f4f6;
    --muted: #a0a5ad;
    --line: #2a2e35;
    --accent: #6ea8ff;
    --accent-soft: #16243d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  padding: 120px 0 104px;
  text-align: center;
}

.hero-inner { max-width: 700px; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-summary {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--muted);
}

.hero-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-link {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  border-color: var(--muted);
  background: var(--bg-alt);
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 38px;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
}

.about-key {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-key span {
  color: var(--muted);
  font-size: .85rem;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.activity-list { border-top: 1px solid var(--line); }

.activity-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.activity-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .88rem;
}

.activity-year { font-weight: 600; }
.activity-status { color: var(--muted); }

.activity-body { min-width: 0; }

.activity-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.activity-body p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tags,
.result-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span,
.result-line span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  background: var(--bg);
}

.result-line span {
  color: var(--text);
  background: var(--accent-soft);
  border-color: transparent;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.career-step {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.career-step span {
  color: var(--muted);
  font-size: .78rem;
}

.career-step strong {
  font-size: 1rem;
  line-height: 1.4;
}

.career-note {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a { color: var(--text); }
.footer-links.icon-links { justify-content: flex-end; }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, var(--max-width)); }

  .nav { min-height: 64px; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 14px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
    backdrop-filter: blur(18px);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
    color: var(--text);
  }

  .nav-links a:hover { background: var(--bg-alt); }

  .lang-toggle {
    align-self: flex-start;
    margin: 8px 8px 4px;
  }

  .hero {
    min-height: auto;
    padding: 84px 0 70px;
    text-align: left;
  }

  .hero-inner { max-width: none; }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .hero-summary {
    margin-left: 0 !important;
    margin-right: 0;
    max-width: 620px;
    font-size: .98rem;
    line-height: 1.75;
  }

  .hero-links {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .section { padding: 64px 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-text p { font-size: .98rem; }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }

  .activity-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
  }

  .activity-status::before { content: "· "; }

  .career-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .career-step {
    min-height: 92px;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }

  .nav-logo { font-size: .96rem; }

  .hero {
    padding: 66px 0 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.1rem);
    line-height: 1.04;
  }

  .hero-summary {
    margin-top: 20px !important;
    font-size: .94rem;
    line-height: 1.72;
  }

  .hero-links {
    margin-top: 24px;
    gap: 9px;
  }

  .icon-link {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .section { padding: 48px 0; }

  .section-title {
    margin-bottom: 24px;
    font-size: 1.45rem;
  }

  .about-key span { font-size: .8rem; }

  .about-text p,
  .activity-body p,
  .career-note {
    font-size: .93rem;
    line-height: 1.72;
  }

  .activity-item { padding: 22px 0; }

  .activity-year,
  .activity-status { font-size: .8rem; }

  .activity-body h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
  }

  .tags,
  .result-line {
    margin-top: 14px;
    gap: 6px;
  }

  .tags span,
  .result-line span {
    padding: 4px 9px;
    font-size: .75rem;
  }

  .career-note { margin-top: 18px; }

  .site-footer { padding: 26px 0 30px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links.icon-links {
    justify-content: flex-start;
    flex-direction: row;
  }
}
