:root {
  --bg: #ffffff;
  --text: #2f2f2f;
  --muted: #666666;
  --line: #ebebeb;
  --link: #2b6cb0;
  --sidebar-width: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(47, 47, 47, 0.06);
}

.site-header__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--link);
  text-decoration: underline;
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 20px auto 48px;
  display: grid;
  grid-template-columns: minmax(240px, var(--sidebar-width)) minmax(0, 1fr);
  gap: 64px;
}

.profile-panel {
  position: sticky;
  top: 84px;
  align-self: start;
}

.profile-panel__content {
  display: grid;
  gap: 0;
  justify-items: start;
}

.avatar {
  width: 100%;
  max-width: 170px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fafafa;
  color: #888888;
  font-size: 2rem;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  margin-top: 16px;
  text-align: left;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

#profile-name,
#intro-headline,
.section-heading h2 {
  margin: 0;
  line-height: 1.3;
}

#profile-name {
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.profile-bio {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-meta {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.profile-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-size: 1rem;
}

.profile-meta .meta-icon {
  width: 14px;
  color: #8a8a8a;
  font-size: 0.9rem;
  text-align: center;
  flex: 0 0 auto;
}

.profile-meta .meta-link,
.profile-meta .meta-text {
  color: inherit;
  text-decoration: none;
}

.profile-meta .meta-link:hover {
  color: #111111;
  text-decoration: underline;
}

.action-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.action-row {
  margin-top: 10px;
  justify-content: flex-start;
}

.social-row {
  margin-top: 10px;
}

.button,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--link);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.button:hover,
.pill:hover {
  text-decoration: underline;
}

.profile-panel .action-row {
  margin-top: 16px;
  display: grid;
  justify-items: start;
  gap: 14px;
}

.profile-panel .button {
  display: grid;
  grid-template-columns: 15px auto;
  column-gap: 8px;
  width: auto;
  height: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #111111;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  transition: color 140ms ease;
}

.profile-panel .link-icon {
  display: block;
  width: 15px;
  color: inherit;
  font-size: 0.95rem;
  text-align: center;
}

.profile-panel .button[data-icon="linkedin"] .link-icon {
  color: #0a66c2;
}

.profile-panel .link-text {
  line-height: 1;
}

.profile-panel .button:hover {
  color: #111111;
  text-decoration: underline;
}

.content-panel {
  display: grid;
  gap: 40px;
}

.intro-card,
.content-section {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  scroll-margin-top: 84px;
}

.intro-card {
  text-align: center;
}

#intro-headline {
  margin-top: 0;
  max-width: none;
  font-size: 1.4rem;
  font-weight: 600;
}

.intro-copy {
  max-width: 760px;
  margin: 10px auto 0;
  display: grid;
  gap: 8px;
  color: #111111;
  font-size: 1rem;
  line-height: 1.65;
}

.intro-copy p {
  margin: 0;
}

.intro-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.intro-link:hover {
  color: #1e40af;
}

.focus-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.focus-list li {
  display: list-item;
  margin: 6px 0;
  font-size: 0.95rem;
}

.focus-list li span:first-child {
  display: none;
}

.section-heading {
  position: relative;
  margin: 0 0 16px;
  padding-top: 22px;
  border-top: 0;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(47, 47, 47, 0.12);
}

.section-heading h2 {
  font-size: 1.45rem;
  font-weight: 600;
}

.section-heading__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

.section-emoji--education {
  color: #2a5aa8;
}

.section-emoji--research {
  color: #2f7d70;
}

.section-emoji--publication {
  color: #a46a23;
}

.section-emoji--project {
  color: #6d58a8;
}

.section-emoji--other {
  color: #5e6776;
}

.section-emoji--skills {
  color: #3c6a50;
}

.section-emoji--contact {
  color: #a25268;
}

.section-heading .section-label {
  display: none;
}

.timeline,
.stack {
  display: grid;
  gap: 10px;
}

.timeline-item,
.work-card,
.project-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.item-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.item-title {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
}

.item-title--with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.item-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #ffffff;
}

.item-title__text {
  min-width: 0;
}

.item-logo {
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.item-logo--ku {
  width: 18px;
  height: 24px;
}

.item-logo--gsa {
  width: 26px;
  height: 26px;
}

.item-logo--17wing {
  width: 28px;
  height: 28px;
}

.item-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.item-subtitle-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.item-subtitle-link:hover {
  color: #1d4ed8;
}

.item-subtitle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.item-subtitle-row .item-subtitle {
  margin: 0;
}

a.item-subtitle:hover {
  color: var(--link);
  text-decoration: underline;
}

.item-accent {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #ead9a6;
  border-radius: 999px;
  background: #fcf7e8;
  color: #8a6b21;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.item-period {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.item-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card-content {
  min-width: 0;
}

.card-content--with-media {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 10px;
}

.card-content__main {
  min-width: 0;
}

.card-media {
  margin-top: 12px;
  min-width: 0;
}

.card-media__frame {
  width: 100%;
}

.card-media__image {
  display: block;
  width: 100%;
  max-width: 150px;
  border: 1px solid #d9dde5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.card-media--phone {
  display: inline-flex;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid #e4eaf1;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc, #eef3f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-media--phone .card-media__frame {
  position: relative;
  width: 108px;
  padding: 6px;
  border-radius: 24px;
  background: linear-gradient(180deg, #2a2f36, #111418);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-media--phone .card-media__frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 42%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #0b0d10;
  z-index: 2;
}

.card-media--phone .card-media__image {
  max-width: none;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center 12%;
}

.item-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.item-list__entry {
  margin: 6px 0;
  line-height: 1.6;
}

.tag-row,
.link-row,
.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin-top: 12px;
}

.resource-row {
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dde4ec;
  border-radius: 999px;
  background: #f6f8fb;
  color: #5c6775;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag--tone-1 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.tag--tone-2 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.tag--tone-3 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.tag--tone-4 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.tag--tone-5 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.tag--tone-6 {
  background: #f6f8fb;
  border-color: #dde4ec;
  color: #5c6775;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f5f7fb;
  color: #415468;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.text-link__icon {
  font-size: 0.84rem;
}

.text-link--github {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.text-link--report {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f4858;
}

.text-link:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.text-link--github:hover {
  border-color: #9ca3af;
  background: #ffffff;
  color: #111827;
}

.text-link--report:hover {
  border-color: #fda4af;
  background: #fff7f7;
  color: #8a2f44;
}

.contact-card {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

[hidden] {
  display: none !important;
}

.contact-card p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.78;
}

.contact-card .button--primary {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--link);
  text-decoration: none;
}

.contact-card .button--primary:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header__inner,
  .page-shell {
    width: min(100% - 24px, 920px);
  }

  .site-header__inner {
    min-height: 56px;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 14px;
  }

  .page-shell {
    margin: 24px auto 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-panel {
    position: static;
  }

  .avatar {
    max-width: 160px;
  }

  .card-content--with-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .page-shell {
    width: calc(100% - 16px);
  }

  .page-shell {
    gap: 28px;
  }

  #intro-headline {
    max-width: none;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
