.home-store {
  --home-store-ink: #1d1d1f;
  --home-store-muted: #515154;
  --home-store-surface: #fff;
  --home-store-border: #dedee3;
  --home-store-accent: #0057ad;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  background: #f5f5f7;
  color: var(--home-store-ink);
}

body.dark-theme .home-store {
  --home-store-ink: #f5f5f7;
  --home-store-muted: #c3c3ca;
  --home-store-surface: #202024;
  --home-store-border: #36363c;
  --home-store-accent: #83c0ff;
  background: #151518;
}

.home-store-inner {
  max-width: 76rem;
  margin-inline: auto;
}

.home-store-heading {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.home-store-heading h2 {
  margin: 0;
  color: var(--home-store-ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.home-store .home-store-heading p {
  margin: 0.875rem 0 0;
  color: var(--home-store-muted);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.55;
}

.home-store-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(0.875rem, 2vw, 1.5rem);
}

.home-store-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--home-store-border);
  border-radius: 1.25rem;
  background: var(--home-store-surface);
}

.home-store-card > img,
.home-store-document {
  display: block;
  width: 100%;
  height: clamp(14rem, 31vw, 25rem);
}

.home-store-card > img {
  object-fit: cover;
  object-position: center 44%;
}

.home-store-document {
  box-sizing: border-box;
  padding: 0.875rem;
  background: #eceef1;
}

.home-store-document img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-store-card figcaption {
  padding: 1rem 1.125rem 1.25rem;
  color: var(--home-store-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.home-store .home-store-link {
  display: block;
  width: fit-content;
  margin-top: 0.375rem;
  color: var(--home-store-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.home-store a:focus-visible {
  outline: 2px solid var(--home-store-accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .home-store-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-store-card--team {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .home-store-card--team > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
  .home-store-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-store-card--event > img,
  .home-store-document {
    height: clamp(18rem, 100vw, 25rem);
  }
}
