:root {
  --background: #f5f5f3;
  --text: #181818;
  --muted: #6d6d68;
  --line: #d2d2cd;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.page-heading .name {
  font-weight: 600;
  text-decoration: none;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  min-height: calc(100vh - 8rem);
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.profile-copy {
  max-width: 650px;
}

.location {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.summary {
  max-width: 560px;
  margin: 2.5rem 0 3.5rem;
  color: #3f3f3c;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
}

.links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.links a {
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.links span {
  margin-left: 0.25rem;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  filter: contrast(1.03);
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .profile {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 4rem 0 2rem;
  }

  figure {
    grid-row: 1;
    width: min(68vw, 280px);
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
  }

  .summary {
    margin: 2rem 0 3rem;
  }
}

@media (max-width: 420px) {
  .details div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
