.home-gateway,
.home-featured,
.home-latest {
  --home-ink: #01513a;
  --home-text: #4a5568;
  --home-muted: #5f6f83;
  --home-accent: #028760;
  --home-pale: #e6f3ef;
  --home-line: #9acfbf;
}

.home-gateway {
  max-width: 44rem;
  padding: 0.75rem 0 2rem;
}

.home-gateway h1,
.home-featured h2,
.home-featured h3,
.home-latest h2,
.home-gateway p,
.home-featured p {
  margin: 0;
}

.home-gateway h1 {
  max-width: 17ch;
  margin-top: 0.45rem;
  color: var(--home-ink);
  font-family: "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.home-kicker,
.home-feature-label {
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-intro {
  max-width: 58ch;
  margin-top: 1rem !important;
  color: var(--home-text);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--home-accent);
  border-radius: 0.25rem;
  background: var(--home-accent);
  background-image: none !important;
  color: #fff !important;
  font-weight: 700;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.home-primary:hover,
.home-primary:focus-visible {
  border-color: var(--home-ink);
  background: var(--home-ink);
  transform: translateY(-1px);
}

.home-gateway a:focus-visible,
.home-featured a:focus-visible {
  outline: 3px solid #2c726e;
  outline-offset: 3px;
}

.home-featured {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--home-line);
}

.home-section-title {
  margin-bottom: 1rem !important;
  color: var(--home-ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-feature-card:first-child {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(11rem, 0.85fr) minmax(0, 1.15fr);
}

.home-feature-card:first-child .home-feature-image {
  height: 100%;
  min-height: 10.5rem;
}

.home-feature-card {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.58);
}

.home-feature-image {
  display: block;
  height: 7rem;
  overflow: hidden;
  background: var(--home-pale);
  background-image: none !important;
}

.home-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-feature-copy {
  padding: 1rem;
}

.home-feature-copy h3 {
  margin-top: 0.35rem;
  color: var(--home-ink);
  font-family: "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.2;
  text-wrap: balance;
}

.home-feature-copy h3 a {
  color: inherit;
}

.home-feature-copy > p:last-child {
  margin-top: 0.65rem;
  color: var(--home-text);
  font-size: 0.9rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.home-latest {
  padding-top: 1.5rem;
  border-top: 1px solid var(--home-line);
}

@media (max-width: 679px) {
  .home-gateway {
    padding-top: 1.5rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .home-feature-card:first-child {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .home-feature-image,
  .home-feature-card:first-child .home-feature-image {
    height: 100%;
    min-height: 9.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-primary {
    transition: none;
  }
}
