*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5e9dd;
  color: #212529;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  line-height: 1.6;
}

.page {
  max-width: 768px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.hero__text h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.hero__text hr {
  width: min(200px, 60%);
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.hero__photo {
  justify-self: center;
}

.hero__photo img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  border-radius: 0.5rem;
}

@media (max-width: 767px) {
  .hero__text {
    text-align: center;
  }

  .hero__text hr {
    margin-inline: auto;
  }
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.section p {
  margin: 0 0 0.75rem;
}

.section a {
  color: #0060a0;
}

.section a:hover {
  color: #b03000;
}
