:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #9ca3af;
  --line: #e5e7eb;
  --accent: #3c78d8;
  --accent-soft: #eff6ff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

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

.section-indicator {
  position: fixed;
  top: 50%;
  right: clamp(18px, 2.4vw, 44px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transform: translateY(-50%);
}

.indicator-link {
  display: grid;
  grid-template-columns: 24px minmax(96px, auto) 34px;
  align-items: center;
  justify-content: end;
  gap: 9px;
  min-height: 24px;
  color: #c1c7d0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.indicator-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.indicator-label {
  min-width: 0;
  text-align: right;
  letter-spacing: 0.035em;
}

.indicator-link i {
  display: block;
  width: 18px;
  height: 1px;
  justify-self: end;
  background: #d7dce2;
  transition: width 0.2s ease, background 0.2s ease;
}

.indicator-link:hover,
.indicator-link.is-active {
  color: var(--accent);
}

.indicator-link.is-active i {
  width: 34px;
  background: var(--accent);
}

.profile {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 156px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-photo img {
  width: 80%;
  height: 90%;
  object-fit: cover;
}

.role {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.profile h1 span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.headline {
  margin: 28px 0 0;
  color: #374151;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
}

.resume-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 94px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section-heading {
  align-self: start;
}

.section-number {
  display: block;
  margin-bottom: 6px;
  color: var(--light);
  font-size: 13px;
  font-weight: 600;
}

.section-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

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

.section-content p {
  margin-top: 0;
}

.section-intro {
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 18px;
}

.intro-copy p {
  margin: 0 0 22px;
  font-size: 18px;
}

.intro-copy .lead {
  margin-bottom: 30px;
  color: #111827;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.7;
}

.intro-copy strong {
  font-weight: 700;
}

blockquote {
  margin: 38px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  color: #374151;
  font-size: 18px;
  font-weight: 500;
}

.journey-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.journey-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.journey-list li:last-child {
  border-bottom: 0;
}

.journey-index {
  color: var(--light);
  font-size: 14px;
  font-weight: 600;
}

.journey-list h3 {
  margin: -3px 0 2px;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.journey-subtitle {
  margin: 0 0 8px !important;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.journey-list li > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.journey-list .is-current h3 {
  color: var(--accent);
}

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

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

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.experience-meta strong {
  font-size: 15px;
  line-height: 1.4;
}

.experience-meta span {
  color: var(--muted);
  font-size: 13px;
}

.experience-body h3 {
  margin: -4px 0 10px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.experience-body > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.experience-body ul,
.project-item ul {
  margin: 0;
  padding-left: 21px;
}

.experience-body li,
.project-item li {
  margin: 7px 0;
  padding-left: 3px;
}

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

.skill-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.skill-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.skill-item strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

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

.project-groups {
  border-top: 1px solid var(--line);
}

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

.project-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 31px 0;
  cursor: pointer;
  list-style: none;
}

.project-group summary::-webkit-details-marker {
  display: none;
}

.project-group-title {
  min-width: 0;
}

.project-group-title .project-type {
  margin-bottom: 5px !important;
}

.project-group-title h3 {
  margin: 0;
  color: #111827;
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  transition: color 0.2s ease;
}

.project-group-title > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.project-group summary:hover h3,
.project-group[open] summary h3 {
  color: var(--accent);
}

.project-toggle {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1.5px solid #374151;
  border-radius: 50%;
  background: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-toggle::before,
.project-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.project-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.project-group summary:hover .project-toggle {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.project-group summary:hover .project-toggle::before,
.project-group summary:hover .project-toggle::after,
.project-group[open] .project-toggle::before,
.project-group[open] .project-toggle::after {
  background: var(--accent);
}

.project-group[open] .project-toggle {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.project-group[open] .project-toggle::after {
  opacity: 0;
}

.project-group-content {
  padding: 0 0 10px 28px;
  border-left: 2px solid var(--accent-soft);
}

.project-item {
  padding: 31px 0 35px;
  border-bottom: 1px solid var(--line);
}

.project-group-content .project-item:last-child {
  border-bottom: 0;
}

.project-type {
  margin: 0 0 7px !important;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-item h4 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.project-description {
  margin: 13px 0 18px !important;
  color: var(--muted);
  font-size: 17px;
}

.project-tech {
  margin: 22px 0 0 !important;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
  font-weight: 600;
}

.footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 1320px) {
  .section-indicator {
    display: none;
  }
}

@media (max-width: 900px) {
  .profile {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 28px;
  }

  .profile-photo {
    width: 124px;
  }

  .profile-links {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .resume {
    width: min(100% - 32px, var(--max-width));
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 64px 0 52px;
  }

  .profile-photo {
    width: 116px;
  }

  .profile h1 span {
    display: block;
    margin: 9px 0 0;
    font-size: 0.48em;
  }

  .profile-links {
    grid-column: auto;
    align-items: flex-start;
  }

  .resume-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 68px 0;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .intro-copy .lead {
    font-size: 20px;
  }

  .intro-copy p {
    font-size: 17px;
  }

  .experience-item,
  .skill-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .experience-item {
    padding: 34px 0;
  }

  .project-group summary {
    gap: 20px;
    padding: 27px 0;
  }

  .project-group-title h3 {
    font-size: 25px;
  }

  .project-group-title > p:last-child {
    font-size: 15px;
  }

  .project-group-content {
    padding-left: 18px;
  }

  .project-item h4 {
    font-size: 22px;
  }

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

@media print {
  @page {
    margin: 14mm;
  }

  body {
    font-size: 11pt;
  }

  .resume {
    width: 100%;
  }

  .section-indicator {
    display: none !important;
  }

  .profile {
    grid-template-columns: 100px 1fr auto;
    gap: 22px;
    padding-top: 0;
  }

  .profile-photo {
    width: 92px;
  }

  .resume-section {
    grid-template-columns: 170px 1fr;
    gap: 28px;
    padding: 34px 0;
    break-inside: avoid;
  }

  .project-group > .project-group-content {
    display: block !important;
  }

  .project-toggle {
    display: none;
  }

  .profile-links,
  .project-links {
    color: #4b5563;
  }

  a {
    color: inherit;
  }
}
