.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content {
  flex: 1 1 400px;
  min-width: 320px;
}

.hero__content h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--md-typeset-h1-color);
}

.hero__content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 40rem;
}

.hero__image {
  flex: 1 1 400px;
  min-width: 300px;
  max-width: 600px;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: var(--md-shadow-z2);
}

.hero .md-button {
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

/* Hide sidebars globally */
.md-sidebar {
  display: none;
}

/* Center and constrain content width for better readability */
.md-content {
  max-width: 60rem;
  margin: 0 auto;
}

/* Adjust grid to ignore hidden sidebars */
.md-main__inner {
  display: block;
}

@media screen and (max-width: 760px) {
  .hero {
    gap: 2rem;
    padding: 2rem 0;
    text-align: center;
  }

  .hero__content {
    flex-basis: 100%;
  }

  .hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    order: -1;
    flex-basis: 100%;
  }
}
