@import url("./main.css");

.hero {
  padding-block: 8rem;
  text-align: center;
}

.hero .wrapper {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-img__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero-img__grid > img:first-of-type {
  aspect-ratio: 1.499925;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 50em) {
  .hero-img__grid {
    display: block;
  }

  .hero-img__grid > img:first-of-type {
    aspect-ratio: 1;
  }

  .hero-img__grid > img:nth-child(2) {
    display: none;
  }
}

.current-openings {
  margin-block: 4rem;
}

.current-openings h2 {
  margin-bottom: 1rem;
}

.opening > * + * {
  margin-top: 1rem;
}

.job-title {
  font-family: var(--font-base);
}

.job-title + ul {
  margin-top: 0.5rem;
}

.show-requirements {
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  outline: 0;
  border: 0;
  background: none;
  color: var(--clr-accent);
}

.show-requirements:hover,
.show-requirements:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.requirements h4 {
  margin-bottom: 0.5rem;
}

.how-to-apply a {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 600;
}

.how-to-apply a:hover,
.how-to-apply a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.requirements[aria-hidden="true"],
.how-to-apply[aria-hidden="true"],
.show-requirements[aria-hidden="true"] {
  display: none;
}

@media (max-width: 50em) {
  .current-openings h2 {
    font-size: 1.75rem;
  }
}

/* Resources */
.resources {
  margin-block: 4rem;
}

.resources h2 {
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
