:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --text: #f1f1f1;
  --muted: #c2c2c2;
  --line: #303030;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.016em;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(40px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.home {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  align-items: center;
  gap: clamp(72px, 8vw, 130px);
  width: min(calc(100% - 80px), var(--max-width));
  min-height: calc(100vh - 73px);
  margin: 0 auto;
  padding: clamp(70px, 8vh, 105px) 0;
}

.home-copy {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto auto 1fr;
  align-content: center;
  min-width: 0;
  padding: clamp(22px, 4vh, 50px) 0;
}

.identity h1 {
  margin: 0 0 6px;
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.identity p {
  margin: 2px 0;
  color: #d2d2d2;
  font-size: clamp(17px, 1.55vw, 21px);
}

.actions { margin-top: 28px; }

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 42px;
  padding: 7px 16px;
  border: 1px solid #d8d8d8;
  color: #f1f1f1;
  font-size: 14px;
  text-decoration: none;
}

.contact-button:hover, .contact-button:focus-visible { background: #f1f1f1; color: #111; }

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}

.external-links a {
  color: #d0d0d0;
  font-size: 14px;
  text-underline-offset: 5px;
  text-decoration-color: #5d5d5d;
}

.external-links a:hover, .external-links a:focus-visible { color: #fff; text-decoration-color: #fff; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  gap: 56px;
  margin-top: clamp(60px, 10vh, 118px);
  color: #c9c9c9;
  font-size: clamp(16px, 1.4vw, 19px);
}

.services ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.services a { color: inherit; text-decoration: none; }
.services a:hover, .services a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.portrait { align-self: center; margin: 0; }

.portrait-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #3e3b3f;
}

.portrait-crop img {
  position: absolute;
  top: -40.96%;
  left: -190.38%;
  width: 304.33%;
  max-width: none;
  height: auto;
  display: block;
}

.section-shell {
  width: min(calc(100% - 80px), var(--max-width));
  margin-inline: auto;
}

.about-page { background: #0d0d0d; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  gap: clamp(72px, 10vw, 150px);
  padding-block: clamp(88px, 12vw, 168px) clamp(90px, 12vw, 160px);
}

.page-kicker,
.section-number,
.activity-number,
.book-year {
  margin: 0;
  color: #898989;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-heading h1 {
  margin: 13px 0 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.06em;
}

.about-heading h1 span { display: block; }

.about-intro {
  max-width: 760px;
  color: #d4d4d4;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.8;
  word-break: keep-all;
}

.about-intro p { margin: 0 0 24px; }
.about-intro .role { color: #fff; font-weight: 650; }

.statement {
  padding-block: clamp(72px, 9vw, 120px);
  border-block: 1px solid var(--line);
  color: #f1f1f1;
  font-size: clamp(28px, 3.3vw, 47px);
  font-weight: 620;
  line-height: 1.43;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.credentials,
.activities,
.book,
.cv,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(60px, 8vw, 120px);
  padding-block: clamp(82px, 10vw, 140px);
}

.credentials,
.activities,
.book,
.cv { border-bottom: 1px solid var(--line); }

.section-label h2 {
  margin: 13px 0 0;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.3;
  letter-spacing: -.04em;
}

.credential-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 90px);
}

.credential-columns h3 {
  margin: 0 0 27px;
  color: #f4f4f4;
  font-size: 17px;
}

.timeline { margin: 0; }

.timeline > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid #292929;
}

.timeline dt { color: #989898; font-size: 14px; }
.timeline dd { margin: 0; color: #d1d1d1; word-break: keep-all; }

.activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.activity {
  min-height: 330px;
  padding: 30px 34px 52px 0;
  border-top: 1px solid #343434;
  scroll-margin-top: 40px;
}

.activity:nth-child(even) { padding-left: 34px; border-left: 1px solid #343434; }

.activity h3 {
  margin: 42px 0 20px;
  color: #f4f4f4;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.035em;
  word-break: keep-all;
}

.activity > p:last-child {
  max-width: 37rem;
  margin: 0;
  color: #bcbcbc;
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.book-details {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.book-details > p:last-child { margin: -8px 0 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.5; letter-spacing: -.04em; }
.book-details span { color: #a9a9a9; font-size: 17px; letter-spacing: -.016em; }

.cv-content,
.contact-content { max-width: 720px; color: #c5c5c5; font-size: 18px; line-height: 1.75; }
.cv-content > p,
.contact-content > p { max-width: 630px; margin: 0; word-break: keep-all; }

.cv-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }

.cv-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid #3a3a3a;
  background: #171717;
  color: #a4a4a4;
  font: inherit;
  text-align: left;
}

.cv-button span { font-size: 12px; color: #747474; }

.contact { padding-bottom: clamp(110px, 14vw, 190px); }
.contact-button-large { margin-top: 34px; min-width: 152px; min-height: 50px; }

.about-external-links {
  display: grid;
  gap: 11px;
  margin-top: 45px;
  padding-top: 28px;
  border-top: 1px solid #303030;
}

.about-external-links a {
  width: fit-content;
  color: #b6b6b6;
  font-size: 15px;
  text-underline-offset: 5px;
  text-decoration-color: #505050;
}

.about-external-links a:hover,
.about-external-links a:focus-visible { color: #fff; text-decoration-color: #fff; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-top: 1px solid var(--line);
  color: #8e8e8e;
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 4px; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; gap: 18px; padding: 20px 24px; }
  .nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
  .home {
    grid-template-columns: 1fr;
    gap: 56px;
    width: min(calc(100% - 48px), 640px);
    padding: 70px 0 90px;
  }
  .home-copy { display: block; padding: 0; }
  .portrait { grid-row: 2; width: min(100%, 460px); }
  .services { margin-top: 72px; }
  .section-shell { width: min(calc(100% - 48px), 680px); }
  .about-hero,
  .credentials,
  .activities,
  .book,
  .cv,
  .contact { grid-template-columns: 1fr; gap: 52px; }
  .about-hero { padding-block: 78px 94px; }
  .about-heading h1 span { display: inline; }
  .statement br { display: none; }
  .activity-list { grid-template-columns: 1fr; }
  .activity { min-height: 0; padding: 28px 0 48px; }
  .activity:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 520px) {
  .site-header { display: block; }
  .nav { justify-content: flex-start; margin-top: 14px; font-size: 13px; }
  .home { width: calc(100% - 40px); padding-top: 58px; }
  .identity h1 { font-size: 49px; }
  .services { grid-template-columns: 1fr; gap: 10px; }
  .section-shell { width: calc(100% - 40px); }
  .about-hero { gap: 38px; padding-block: 58px 76px; }
  .about-heading h1 { font-size: 45px; }
  .about-intro { font-size: 17px; line-height: 1.75; }
  .statement { font-size: 26px; }
  .credentials,
  .activities,
  .book,
  .cv,
  .contact { gap: 40px; padding-block: 70px; }
  .credential-columns { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 82px minmax(0, 1fr); }
  .book-details { grid-template-columns: 1fr; gap: 14px; }
  .book-details > p:last-child { margin-top: 0; font-size: 27px; }
  .cv-actions { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; gap: 20px; padding-block: 30px; }
}

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

.not-found {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.not-found-code { margin: 0; color: var(--muted); font-size: 20px; }
.not-found h1 { margin: 10px 0 30px; font-size: clamp(34px, 6vw, 60px); }
