:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #111111;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
}

.profile {
  width: min(680px, 100%);
  padding: clamp(48px, 8vh, 84px) clamp(24px, 7vw, 104px) 80px;
}

.profile-copy {
  max-width: 34rem;
}

h1,
p,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.social-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.portrait {
  width: clamp(160px, 20vw, 300px);
  aspect-ratio: 4 / 5;
  margin-bottom: clamp(38px, 5vw, 52px);
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 104%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 520px) {
  .portrait {
    width: 148px;
    margin-bottom: 34px;
  }

  .profile {
    padding-top: 36px;
    padding-bottom: 56px;
  }
}
