.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 14 / 6;
  margin-bottom: 0;
  background-position: center;
}

.home-hero > .container {
  width: 100%;
}

.home-hero .site-heading {
  padding: 0;
  text-align: center;
}

.home-hero .site-heading h1 {
  font-size: clamp(46px, 6vw, 80px);
}

.home-main {
  padding-bottom: 30px;
}

.home-welcome {
  padding: 64px 0 58px;
  text-align: center;
}

.home-welcome h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
}

.home-welcome-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.home-welcome-links a {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  min-width: 150px;
  padding: 14px 20px;
  color: #404040;
  text-align: left;
  text-decoration: none;
  background: #f6f7f8;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-welcome-links a:hover,
.home-welcome-links a:focus {
  color: #0085a1;
  text-decoration: none;
  background: #eef6f7;
  outline: none;
  transform: translateY(-2px);
}

.home-welcome-links a > span {
  grid-row: 1 / 3;
  font-size: 26px;
}

.home-welcome-links strong {
  font-size: 16px;
  line-height: 1.2;
}

.home-welcome-links small {
  color: #999;
  font-size: 11px;
}

.home-showcase {
  padding: 58px 0 64px;
}

.home-section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.home-section-heading > p {
  margin: 0 0 10px;
  color: #7b8493;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
}

.home-showcase-carousel,
.home-post-carousel {
  position: relative;
}

.home-showcase-track,
.home-post-carousel-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-showcase-track::-webkit-scrollbar,
.home-post-carousel-track::-webkit-scrollbar {
  display: none;
}

.home-showcase-card {
  flex: 0 0 calc((100% - 64px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.home-showcase-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.home-showcase-card p {
  margin: 16px 0 5px;
  color: #7b8493;
  font-size: 14px;
  line-height: 1.4;
}

.home-showcase-card h3 {
  margin: 0;
  color: #20242a;
  font-size: 21px;
  line-height: 1.35;
}

.home-featured-posts {
  padding: 64px 0 74px;
}

.home-post-carousel-card {
  display: flex;
  flex: 0 0 calc((100% - 64px) / 3);
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 26px;
  overflow: hidden;
  color: #303640;
  text-decoration: none;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  scroll-snap-align: start;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-post-carousel-card:hover,
.home-post-carousel-card:focus {
  color: #0085a1;
  text-decoration: none;
  border-color: rgba(0, 133, 161, 0.28);
  outline: none;
  transform: translateY(-3px);
}

.home-post-carousel-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 133, 161, 0.22);
}

.home-post-carousel-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: #173028;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: #91ff73;
  border-radius: 50%;
}

.home-post-carousel-card h3 {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: inherit;
  font-size: 20px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-post-carousel-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #77808f;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-post-carousel-meta {
  margin: auto 0 0;
  padding-top: 14px;
  color: #8d96a3;
  font-family: Lora, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.home-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #404750;
  background: #fff;
  border: 1px solid #e5e8ec;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.14);
  transform: translateY(-50%);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-carousel-button:hover,
.home-carousel-button:focus {
  color: #0085a1;
  outline: none;
}

.home-carousel-button:disabled {
  cursor: default;
  opacity: 0.3;
}

.home-carousel-button span {
  margin-top: -3px;
  font-size: 30px;
  line-height: 1;
}

.home-carousel-button--previous {
  left: -21px;
}

.home-carousel-button--next {
  right: -21px;
}

@media only screen and (max-width: 991px) {
  .home-hero {
    min-height: 380px;
  }

  .home-showcase-track,
  .home-post-carousel-track {
    gap: 22px;
  }

  .home-showcase-card,
  .home-post-carousel-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .home-post-carousel-card {
    padding: 21px;
  }

  .home-post-carousel-card h3 {
    font-size: 17px;
  }

  .home-post-carousel-quote {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
  }

  .home-showcase-card h3 {
    font-size: 18px;
  }
}

@media only screen and (max-width: 767px) {
  .home-hero {
    min-height: 330px;
    aspect-ratio: auto;
  }

  .home-hero .site-heading h1 {
    font-size: 48px;
  }

  .home-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-welcome {
    padding: 48px 0 44px;
  }

  .home-welcome-links {
    flex-direction: column;
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-welcome-links a {
    width: 100%;
  }

  .home-showcase {
    padding: 46px 0 52px;
  }

  .home-section-heading {
    margin-bottom: 30px;
  }

  .home-showcase-card img {
    border-radius: 14px;
  }

  .home-showcase-card h3 {
    font-size: 20px;
  }

  .home-featured-posts {
    padding: 52px 0 58px;
  }

  .home-showcase-track,
  .home-post-carousel-track {
    gap: 18px;
  }

  .home-showcase-card,
  .home-post-carousel-card {
    flex-basis: 100%;
  }

  .home-post-carousel-card {
    padding: 24px;
  }

  .home-post-carousel-card h3 {
    font-size: 20px;
  }

  .home-carousel-button--previous {
    left: 8px;
  }

  .home-carousel-button--next {
    right: 8px;
  }
}
