:root {
  --paper: #fafaf8;
  --ink: #172128;
  --muted: #6d7478;
  --line: #cfd2cf;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
a:hover { color: var(--muted); }

.profile-page {
  width: min(100% - 64px, 1160px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  padding-top: 36px;
}

.language-switch a {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-card {
  max-width: 900px;
  align-self: center;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(6rem, 14vh, 10rem);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.68rem, 1vw, .76rem);
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1 {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.introduction {
  max-width: 760px;
  margin: clamp(2.75rem, 5vw, 4.5rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.25vw, 1.85rem);
  line-height: 1.46;
}

.location {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-link {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1px solid currentColor;
}

[lang="ko"] h1,
[lang="ko"] .introduction {
  font-family: "Apple SD Gothic Neo", "Noto Serif KR", "Malgun Gothic", sans-serif;
}

[lang="ko"] h1 {
  font-weight: 600;
  letter-spacing: -.055em;
}

[lang="ko"] .korean-greeting {
  max-width: 900px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  white-space: nowrap;
}

[lang="ko"] .korean-greeting + .introduction {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

[lang="ko"] .introduction {
  max-width: 780px;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 400;
  line-height: 1.58;
}

[lang="ko"] .profile-card {
  padding: clamp(3rem, 7vh, 5rem) 0 clamp(4rem, 9vh, 6rem);
}

[lang="ko"] .location { margin-top: 1.5rem; }
[lang="ko"] .contact-links { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.introduction-spaced p { margin: 0; }
.introduction-spaced p + p { margin-top: 1.05em; }
.keep-together { white-space: nowrap; }

.inline-link {
  text-decoration-line: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.error-title {
  max-width: 820px;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: .94;
}

.error-page .introduction { max-width: 680px; }
.error-page .contact-links { margin-top: clamp(2.75rem, 6vw, 4.5rem); }

@media (max-width: 640px) {
  .profile-page { width: min(100% - 40px, 1160px); }
  .language-switch { padding-top: 24px; }
  .profile-card { padding: 4.5rem 0 5rem; }
  h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  [lang="ko"] .profile-card { padding: 3.25rem 0 4rem; }
  [lang="ko"] .korean-greeting { font-size: clamp(1.3rem, 7vw, 2.7rem); }
  [lang="ko"] .introduction { font-size: 1.14rem; }
  .introduction { margin-top: 2.75rem; font-size: 1.38rem; }
  .error-title { font-size: clamp(3rem, 16vw, 4.8rem); }
  .contact-links,
  [lang="ko"] .contact-links {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
  }
}
