/* Palette */
:root {
  --ink: #241b2f;
  --paper: #f6f1f8;
  --accent: #6f42c1;
  --highlight: #d9ff4a;
  --photo: #f2b8a2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

main,
footer {
  max-width: 1220px;
  margin: 0 auto;
}

/* Header */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 40px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  color: var(--ink);
  font: 700 27px "Fraunces", serif;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

nav div {
  display: flex;
  gap: 24px;
}

nav div a,
.actions a {
  color: var(--ink);
  text-decoration: none;
}

nav div a {
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

nav div a:hover {
  color: var(--accent);
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 265px minmax(330px, 1fr) 205px;
  align-items: start;
  gap: clamp(35px, 5vw, 72px);
  min-height: calc(100vh - 129px);
  padding: clamp(58px, 9vh, 118px) 40px 62px;
  border-bottom: 1px solid var(--ink);
}

.profile-photo {
  position: relative;
  padding: 10px;
  background: var(--photo);
  border: 1px solid var(--ink);
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.profile-photo span {
  position: absolute;
  right: -13px;
  bottom: 15px;
  padding: 7px 9px;
  background: var(--ink);
  color: var(--paper);
  font: 10px "DM Mono", monospace;
}

.profile-copy {
  padding-top: 5px;
}

.eyebrow {
  margin: 0;
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile h1 {
  margin: 21px 0 9px;
  font: 600 clamp(64px, 8.2vw, 110px) / 0.79 "Fraunces", serif;
  letter-spacing: -0.085em;
}

.profile h1 em,
.actions span {
  color: var(--accent);
}

.profile h1 em {
  font-weight: 600;
}

.handle {
  margin: 23px 0 43px;
  font: 13px "DM Mono", monospace;
}

.bio {
  max-width: 465px;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 27px;
}

.actions a {
  padding: 10px 13px;
  border: 1px solid var(--ink);
  font: 500 12px "DM Mono", monospace;
}

.actions a:hover {
  background: var(--highlight);
}

.facts {
  align-self: end;
  margin: 0;
}

.facts div {
  padding: 12px 0;
  border-top: 1px solid var(--ink);
}

.facts dt {
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}

.facts dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  font: 11px "DM Mono", monospace;
}

/* Narrow screens */
@media (max-width: 820px) {
  nav,
  .profile,
  footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .profile {
    grid-template-columns: 220px 1fr;
    gap: 38px;
    min-height: auto;
  }

  .facts {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  nav div {
    gap: 15px;
  }

  nav div a {
    font-size: 10px;
  }

  .profile {
    display: block;
    padding-top: 50px;
    padding-bottom: 48px;
  }

  .profile-photo {
    width: min(265px, 100%);
  }

  .profile-copy {
    padding-top: 43px;
  }

  .profile h1 {
    font-size: clamp(70px, 22vw, 105px);
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    margin-top: 48px;
  }

  footer {
    display: block;
    line-height: 2;
  }
}
