:root {
  color-scheme: light;
  --background: #f8f7f2;
  --ink: #202920;
  --accent: #36523e;
  --rule: #cdd5c9;
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  border-top: 5px solid var(--accent);
  background: var(--background);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
}

.homepage {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 5px);
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  padding-block-end: clamp(1.5rem, 4vw, 3rem);
}

.last-updated {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--accent);
  font-size: 0.8125rem;
  text-align: center;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "portrait name" "portrait copy";
  align-items: start;
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 2.5rem;
}

h1, h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.1;
}

.profile-heading {
  grid-area: name;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
}

.profile-name {
  font-family: "Segoe UI", var(--body-font);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.pronunciation {
  color: var(--accent);
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.025em;
}

p {
  max-width: 57ch;
  margin: 0.875rem 0 0;
}

.affiliation {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-copy {
  grid-area: copy;
}

.profile-copy p:first-child {
  margin-top: 0;
}

.profile-copy a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.profile-contact {
  margin-top: 0.875rem;
  font-style: normal;
}

.portrait {
  grid-area: portrait;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1.5rem #1e2b251a;
}

@media (max-width: 49rem) {
  .profile {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  }
}

@media (max-width: 37rem) {
  .profile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "name" "portrait" "copy";
    gap: 1.5rem;
  }

  .portrait {
    width: min(68vw, 15rem);
  }
}
