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

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 230px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  background-color: #05071f;
  background-image: url("./assets/hero-background.png");
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 38, 0.50), rgba(6, 9, 38, 0.38), rgba(6, 9, 38, 0.50));
}

.hero__content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__heading {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero__button {
  border: 1px solid #8e98ff;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.hero__button:hover {
  background: rgba(142, 152, 255, 0.18);
}

.hero__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.hero__button--back {
  text-decoration: none;
  display: inline-block;
}

/* Thumbnail cards (home page) */

.thumbnails {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-start;
}

.thumbnail-card {
  width: 250px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}

.thumbnail-card:focus-within {
  box-shadow: 0 0 0 3px #3d3580;
}
.thumbnail-card__label {
  background: #ece9ff;
  padding: 16px;
  text-align: center;
  flex-shrink: 0;
}

.thumbnail-card__link {
  font-size: 1rem;
  font-weight: 600;
  color: #3d3580;
  text-decoration: none;
}

.thumbnail-card__link:hover {
  text-decoration: underline;
}

.thumbnail-card__link:focus-visible {
  outline: 3px solid #3d3580;
  outline-offset: 2px;
  border-radius: 2px;
}

.thumbnail-card__image {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* About page */

.about {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 24px;
}

.about__heading {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #3d3580;
}

.about__card {
  background: #ece9ff;
  border-radius: 16px;
  padding: 36px 40px;
  color: #05071f;
}

.about__name {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.about__tagline {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #3d3580;
}

.about__body {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a2e;
}

.about__body:last-child {
  margin-bottom: 0;
}

/* Site-wide footer */

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #3d3580;
}
