@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #172b43;
  --muted: #53677c;
  --accent: #2468b8;
  --line: #dbe5f1;
  --paper: #fff;
  --soft: #edf5ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", "Noto Sans KR", Arial, sans-serif; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #164a88; }
a:focus-visible { outline: 3px solid #80b4ee; outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 8px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; color: white; }

.hero { position: relative; padding: 66px 24px 44px; background: linear-gradient(180deg, #edf5ff 0%, #fff 100%); text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.language-switch { position: absolute; top: 22px; right: max(24px, calc((100vw - 1060px) / 2)); display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #cbdaec; border-radius: 999px; background: #ffffffd9; box-shadow: 0 2px 8px #173e7310; }
.language-switch a { display: block; padding: 5px 11px; border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
.language-switch a:hover { color: var(--accent); }
.language-switch a[aria-current="page"] { background: var(--accent); color: white; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, "Noto Sans KR", Arial, sans-serif; }
h1 { margin: 0; font-size: clamp(2.75rem, 7vw, 4.25rem); font-weight: 700; line-height: 1.18; letter-spacing: -.045em; }
.hero-subtitle { margin: 11px 0 15px; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.25rem); }
.hero-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: .98rem; }
.hero-contact a { font-weight: 600; text-decoration: none; }
.contact-label { color: var(--muted); font-weight: 500; }
.contact-divider { padding: 0 .25em; color: #9ab1cb; }
.cv-download { position: absolute; top: 22px; left: max(24px, calc((100vw - 1060px) / 2)); display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #cbdaec; border-radius: 999px; background: #ffffffd9; box-shadow: 0 2px 8px #173e7310; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
.cv-download:hover { background: #edf5ff; color: var(--accent); }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; max-width: 1000px; margin: 0 auto; padding: 12px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-nav a { color: var(--muted); font-size: .83rem; font-weight: 700; text-decoration: none; }
.section-nav a:hover { color: var(--accent); }

main { max-width: 960px; margin: 0 auto; padding: 8px 30px 60px; }
.section { scroll-margin-top: 24px; padding-top: 52px; }
.section-heading { margin-bottom: 25px; border-bottom: 1px solid var(--line); text-align: center; }
h2 { display: inline-block; position: relative; margin: 0 0 15px; font-size: clamp(1.6rem, 4vw, 2.05rem); font-weight: 500; letter-spacing: -.03em; }
h2::after { content: ""; position: absolute; bottom: -16px; left: calc(50% - 31px); width: 62px; height: 2px; background: var(--accent); }
.entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 5px 0 18px; }
.entry + .entry { padding-top: 19px; border-top: 1px solid var(--line); }
.entry-date { padding-top: 5px; color: var(--muted); font-size: .91rem; font-weight: 600; }
.date-note { color: var(--accent); font-size: .83rem; font-weight: 500; }
h3 { margin: 0 0 5px; font-size: 1.16rem; font-weight: 700; line-height: 1.45; }
.entry-subtitle { margin: 0 0 8px; color: var(--accent); font-weight: 600; }
.entry-role { color: var(--muted); font-size: .92rem; }
.entry-body p:not(.entry-subtitle) { margin: 8px 0 0; }
.detail-list { margin: 10px 0 0; padding-left: 1.35em; }
.detail-list li { padding-left: .15em; margin-bottom: 6px; }
.detail-list li::marker { color: var(--accent); }
.project-resource { margin-top: 12px !important; }
.project-resource a { display: inline-block; padding: 6px 12px; border: 1px solid #bdd4ee; border-radius: 6px; background: var(--soft); font-size: .88rem; font-weight: 700; text-decoration: none; }
.project-resource a:hover { border-color: var(--accent); background: #e0eeff; }
.interest-list { display: grid; gap: 11px; margin: 0; padding-left: 230px; }
.interest-list li { padding-left: 4px; }
.interest-list li::marker { color: var(--accent); }
.skill-list { margin: 0; }
.skill-list > div { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.skill-list > div:first-child { border-top: 1px solid var(--line); }
dt { font-weight: 700; }
dd { margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 960px; margin: 0 auto; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer p { margin: 0; }
.back-to-top { text-decoration: none; white-space: nowrap; }

@media (max-width: 680px) {
  .hero { padding: 70px 20px 33px; }
  .language-switch { top: 16px; right: 18px; }
  .cv-download { position: static; margin-top: 14px; }
  .hero-contact { display: grid; gap: 2px; }
  .contact-divider { display: none; }
  .section-nav { gap: 7px 14px; padding: 11px 18px; }
  .section-nav a { font-size: .77rem; }
  main { padding: 0 20px 44px; }
  .section { padding-top: 42px; }
  .section-heading { margin-bottom: 21px; }
  .entry, .skill-list > div { grid-template-columns: 1fr; gap: 3px; }
  .entry-date { padding: 0; font-size: .82rem; }
  .interest-list { padding-left: 22px; }
  .site-footer { flex-wrap: wrap; padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
