:root {
  --base-color-brand--orange: #ef7a54;
  --base-color-brand--green: #055346;
  --base-color-background--light: #f9efe6;

  --text-color-primary: var(--base-color-brand--green);
  --text-color-secondary: var(--base-color-brand--orange);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text-color-primary);
  background-color: var(--base-color-background--light);
  /* allow the page to grow on small devices */
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* on narrower viewports we don't want to lock the height or hide overflow */
@media (max-width: 768px) {
  body {
    height: auto;
    max-height: none;
    overflow: auto;
  }
}

.open-sans-300 {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h1 {
  font-size: 4.5rem;
  margin: 0;
}

p {
  font-size: 1.5rem;
  margin: 0;
}

.socials {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.social-link {
  color: var(--text-color-secondary);
  text-decoration: none;
}

.social-link svg {
  height: 3rem;
  fill: var(--text-color-secondary);
}

.hero {
  display: grid;
  grid-template-rows: 50% 50%;
  width: 100%;
  height: 100vh;
}

@media (max-width: 768px) {
  .hero {
    /* make the image area a bit smaller so the text has room */
    grid-template-rows: 40% 60%;
  }
}

.overlay {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  grid-row: 2;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 1rem;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;

  overflow: hidden;
  border-radius: 0.5rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc((100% - 4.5rem) / 4);
  width: calc((100% - 4.5rem) / 4);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  scroll-snap-align: start;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  grid-row: 1;
  z-index: 1;
  pointer-events: auto;
  padding-bottom: 2rem;
}

/* smaller typography and spacing for narrow screens */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  p {
    font-size: 1.25rem;
  }

  .social-link svg {
    height: 2.5rem;
  }

  .carousel-item {
    flex: 0 0 calc((100% - 3rem) / 2);
    width: calc((100% - 3rem) / 2);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1rem;
  }

  .social-link svg {
    height: 2rem;
  }

  .carousel-container {
    padding: 0.5rem;
  }

  .carousel-item {
    flex: 0 0 calc(100% - 1.5rem);
    width: calc(100% - 1.5rem);
  }
}
