:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #000000;
  --placeholder: #d9d9d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 722px) minmax(0, 568px);
  grid-template-areas: "rotator heading" "rotator rest";
  justify-content: center;
  column-gap: 100px;
  row-gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 133px 64px 96px;
}

.rotator {
  grid-area: rotator;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  overflow: hidden;
  align-self: start;
}

.rotator__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rotator__img.is-visible {
  opacity: 1;
}

.bio__rest {
  grid-area: rest;
  align-self: start;
}

.bio__heading {
  grid-area: heading;
  align-self: start;
  font-family: 'DM Serif Text', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 58px;
  margin: 0 0 32px;
}

.bio__text {
  font-size: 20px;
  line-height: 1.5;
  font-variation-settings: 'opsz' 14;
  margin: 0 0 20px;
}

.bio__text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.bio__credit {
  font-size: 15px;
  line-height: 1;
  font-variation-settings: 'opsz' 14;
  margin: 0;
  color: var(--text);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "rotator" "rest";
    row-gap: 24px;
    padding: 24px 24px 48px;
  }

  .bio__heading {
    font-size: 38px;
    line-height: 46px;
    margin-bottom: 0;
  }

  .bio__text {
    font-size: 16px;
  }

  .bio__credit {
    font-size: 12px;
    line-height: 1;
  }
}
