/* Home page (index.html). Mobile first. */

.hero {
  width: 100%;
  border: 1px solid #000;
  background: #fff;
}

.hero__inner {
  display: flex;
  flex-direction: column;
}

/* On phones the card is just a grouping element so the photo can sit between
   the short bio and the Medium/Substack row. */
.hero__card {
  display: contents;
}

.hero h1 {
  margin: 0;
  padding: 16px 16px 0;
  color: #000;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.hero__name {
  margin: 0;
  padding: 8px 16px 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}

.hero__bio {
  margin: 0;
  padding: 12px 16px 0;
  color: #000;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.4;
}

.hero__photo {
  order: 4;
  margin: 16px 5px 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 538px;
  object-fit: cover;
}

.hero__social {
  order: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 18px 8px 24px;
}

.hero__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
}

.hero__social span {
  text-decoration: underline;
}

.hero__social img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero__social a:first-child img {
  border-radius: 50%;
}

.home-body {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 24px auto 0;
  padding-bottom: 21px;
  color: #404040;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.4;
}

.home-body p {
  margin: 0;
}

.home-body p + p {
  margin-top: 1.4em;
}

.home-body a {
  color: #000;
  text-decoration: none;
}

.home-body a:hover {
  color: #2573da;
}

@media (min-width: 751px) {
  .hero {
    min-height: 658px;
    background: #bfbfbf;
  }

  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    width: min(1160px, calc(100% - 120px));
    margin: 60px auto;
  }

  .hero__card {
    display: block;
    flex: 781 1 0;
    min-width: 0;
    min-height: 538px;
    background: #fff;
  }

  .hero h1 {
    width: 69.27%;
    margin: 0 0 10px 18.82%;
    padding: 56px 0 0;
    font-size: clamp(32px, 4.375vw, 56px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
  }

  .hero__name {
    width: 69.27%;
    margin: 0 0 55px 18.82%;
    padding: 0;
    font-size: 26px;
    line-height: normal;
  }

  .hero__bio {
    width: 69.27%;
    margin: 0 0 60px 18.82%;
    padding: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero__social {
    order: 0;
    justify-content: flex-start;
    gap: 64px;
    width: 69.27%;
    margin: 0 0 0 18.82%;
    padding: 0;
  }

  .hero__social a {
    gap: 12px;
    color: #000;
    font-family: var(--font-sans);
    font-size: 18px;
  }

  .hero__social span {
    text-decoration: none;
  }

  .hero__social img {
    width: 50px;
    height: 50px;
  }

  .hero__social a:last-child img {
    width: 66px;
    height: 66px;
  }

  .hero__photo {
    order: 0;
    flex: 379 1 0;
    min-width: 0;
    height: 538px;
    margin: 0;
  }

  .hero__photo img {
    width: 100%;
    height: 100%;
  }

  .home-body {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.4;
  }
}
