:root {
  color-scheme: light;
  --background: #eaeaea;
  --ink: #121212;
  /* Figma's 1440px frame, with readable minimum sizes on small screens. */
  --header-height: clamp(40px, 5.556vw, 80px);
  --identity-height: clamp(96px, 13.889vw, 200px);
  --section-gap: clamp(20px, 3.333vw, 48px);
  --content-gap: clamp(64px, 19.583vw, 282px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; }
.copyright {
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.389vw, 20px);
  padding: 0 20px;
  font-size: clamp(10px, 1.389vw, 20px);
  line-height: 1.2;
}
.copyright-symbol { font-weight: 700; }
.identity {
  view-transition-name: white-bezel;
  height: var(--identity-height);
  display: grid;
  place-items: center;
  background: #fff;
}
h1 { margin: 0; font-size: clamp(18px, 1.667vw, 24px); line-height: 1.2; font-weight: 700; }
.navigation {
  view-transition-name: site-navigation;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(10px, 1.667vw, 24px);
  margin-top: var(--section-gap);
  padding: 0 16px;
  font-size: clamp(16px, 1.667vw, 24px);
  line-height: 1.2;
}
button { font: inherit; color: inherit; }
.greeting {
  view-transition-name: page-content;
  margin: var(--content-gap) 16px 32px;
  text-align: center;
  font-size: clamp(18px, 1.667vw, 24px);
  line-height: 1.2;
}
.navigation button, .navigation a {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-underline-offset: 5px;
  color: inherit;
  text-decoration: none;
}
.navigation button:hover, .navigation a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
dialog {
  width: min(440px, calc(100% - 40px));
  padding: 28px;
  border: 0;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop { background: rgb(18 18 18 / 24%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
h2 { margin: 0; font-size: 24px; }
.close { border: 0; padding: 0 4px; background: transparent; font-size: 28px; cursor: pointer; }
dialog p { margin: 24px 0 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 340px) {
  .copyright { padding-inline: 12px; font-size: 9px; }
  .navigation { padding-inline: 12px; }
}
.about-header {
  view-transition-name: white-bezel;
  min-height: clamp(72px, 8.056vw, 116px);
  padding-inline: max(24px, 8.333vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}
.home-link { color: inherit; text-decoration: none; font-size: clamp(18px, 1.667vw, 24px); font-weight: 700; }
.about-header .navigation { margin: 0; padding: 0; }
.navigation [aria-current="page"] { color: #999; }
.profile {
  view-transition-name: page-content;
  width: min(1200px, 83.334%);
  margin: clamp(32px, 3.333vw, 48px) auto 100px;
  display: grid;
  grid-template-columns: 250fr 890fr;
  gap: clamp(32px, 4.167vw, 60px);
  align-items: start;
}
.portrait { display: block; width: 100%; height: auto; outline: 1.2px solid #121212; }
.profile-content { min-width: 0; padding-top: clamp(80px, 13.056vw, 188px); font-size: clamp(14px, 1.111vw, 16px); line-height: 1.25; }
.biography h1, .profile-section h2 { font-size: clamp(18px, 1.389vw, 20px); line-height: 1.2; font-weight: 400; }
.biography h1 { margin: 0 0 40px; }
.biography p { margin: 0 0 8px 12px; }
.biography [lang="ko"] { color: #999; word-break: keep-all; overflow-wrap: break-word; }
.profile-section { margin-top: 80px; }
.profile-section h2 { margin: 0 0 40px; }
.history { margin: 0 0 0 12px; }
.history > div { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 24px; margin-bottom: 12px; align-items: baseline; }
.history dt { overflow-wrap: break-word; }
.history dd { margin: 0; color: #999; white-space: nowrap; }
@media (max-width: 700px) {
  .about-header { flex-wrap: wrap; padding-block: 20px; gap: 16px; }
  .about-header .navigation { font-size: 16px; }
  .profile { width: auto; margin: 32px 24px 64px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait { width: clamp(120px, 36vw, 200px); }
  .profile-content { padding-top: 0; line-height: 1.55; }
  .biography h1 { margin-bottom: 24px; }
  .biography p { margin-left: 0; margin-bottom: 12px; word-break: normal; overflow-wrap: break-word; }
  .biography [lang="ko"] { word-break: keep-all; }
  .profile-section { margin-top: 40px; }
  .profile-section h2 { margin-bottom: 20px; }
  .history { margin-left: 0; }
  .history > div { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-bottom: 20px; }
  .history dd { font-size: 12px; }
}

/* Keep the header, name and navigation continuous across document navigation. */
@view-transition { navigation: auto; }
.copyright { view-transition-name: copyright; }
.identity h1, .home-link { view-transition-name: site-name; }
::view-transition-group(*) {
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(page-content) { animation: none; }
::view-transition-old(page-content) {
  animation: content-out 180ms ease-out both;
}
::view-transition-new(page-content) {
  animation: content-in 600ms cubic-bezier(.22, 1, .36, 1) 200ms both;
}
@keyframes content-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes content-in {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}
