:root {
  --pm-storefront-graphite: #11191f;
  --pm-storefront-deep: #0b1317;
  --pm-storefront-paper: #fbf6ec;
  --pm-storefront-silver: #dce6e8;
  --pm-storefront-muted: #aab9bd;
  --pm-storefront-teal: #147d7a;
  --pm-storefront-copper: #d47742;
  --pm-storefront-green: #86a96f;
}

.pm-storefront-maker-board {
  position: relative;
  z-index: 1;
}

body.home .pm-storefront-maker-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(.9rem, 2vw, 1.2rem);
  overflow: hidden;
  color: #fff;
  background: var(--pm-storefront-deep) !important;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(5, 10, 14, .24);
  text-decoration: none;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.home .pm-storefront-maker-tile:hover {
  border-color: rgba(255, 255, 255, .46);
  box-shadow: 0 20px 42px rgba(5, 10, 14, .34);
  transform: translateY(-2px);
}

body.home .pm-storefront-maker-tile:focus-visible,
.pm-storefront-category-card a:focus-visible,
.pm-storefront-shop-links a:focus-visible {
  outline: 3px solid var(--pm-aqua, #75beb5);
  outline-offset: 4px;
}

body.home .pm-storefront-maker-tile::before {
  display: none !important;
}

.pm-storefront-maker-picture,
.pm-storefront-maker-image,
.pm-storefront-maker-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-storefront-maker-picture {
  z-index: -2;
}

.pm-storefront-maker-image {
  object-fit: cover;
  object-position: center;
}

.pm-storefront-maker-scrim {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 9, 12, .05) 24%, rgba(5, 9, 12, .9) 100%),
    linear-gradient(135deg, rgba(20, 125, 122, .08), rgba(212, 119, 66, .12));
}

body.home .pm-storefront-maker-tile strong,
body.home .pm-storefront-maker-copy {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

body.home .pm-storefront-maker-tile strong {
  margin-top: auto;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.08;
}

body.home .pm-storefront-maker-copy {
  margin-top: .28rem;
  color: rgba(255, 255, 255, .88);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}

.pm-storefront-categories {
  position: relative;
}

.pm-storefront-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: 1.8rem;
}

.pm-storefront-category-card[data-pm-category] {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--pm-card, #fffdf8);
  border: 1px solid var(--pm-line, rgba(29, 36, 36, .13));
  border-radius: 16px;
  box-shadow: var(--pm-shadow-soft, 0 10px 30px rgba(29, 36, 36, .08));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pm-storefront-category-card:hover {
  border-color: color-mix(in srgb, var(--pm-storefront-teal) 48%, transparent);
  box-shadow: var(--pm-shadow, 0 18px 44px rgba(29, 36, 36, .12));
  transform: translateY(-3px);
}

.pm-storefront-category-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pm-storefront-graphite);
}

.pm-storefront-category-image,
.pm-storefront-category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-storefront-category-image {
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.pm-storefront-category-card:hover .pm-storefront-category-image {
  transform: scale(1.025);
}

.pm-storefront-category-shade {
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(8, 14, 18, .34));
}

.pm-storefront-category-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.pm-storefront-category-body h3 {
  margin: 0 0 .55rem;
  font-family: var(--pm-serif, Georgia, serif);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.pm-storefront-category-body h3 a {
  color: var(--pm-ink, #1d2424);
  text-decoration: none;
}

.pm-storefront-category-body > p:not(:last-child) {
  flex: 1;
  margin: 0;
  color: var(--pm-ink-soft, #3d4948);
  line-height: 1.55;
}

.pm-storefront-category-body > p:last-child {
  margin: 1rem 0 0;
}

.pm-storefront-shop-intro {
  margin: 0 0 clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.15rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 96% 8%, rgba(117, 190, 181, .18), transparent 34%),
    var(--pm-card, #fffdf8);
  border: 1px solid var(--pm-line, rgba(29, 36, 36, .13));
  border-top: 4px solid var(--pm-storefront-teal);
  border-radius: 18px;
  box-shadow: var(--pm-shadow-soft, 0 10px 30px rgba(29, 36, 36, .08));
}

.pm-storefront-shop-intro h2 {
  max-width: 24ch;
  margin: .15rem 0 .6rem;
  font-family: var(--pm-serif, Georgia, serif);
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
  line-height: 1.06;
}

.pm-storefront-shop-intro > p:not(.pm-section__eyebrow) {
  max-width: 68ch;
  color: var(--pm-ink-soft, #3d4948);
}

.pm-storefront-shop-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .72rem;
  margin-top: 1.25rem;
}

.pm-storefront-shop-links a {
  min-width: 0;
  overflow: hidden;
  color: var(--pm-ink, #1d2424);
  background: var(--pm-paper-warm, #fffaf2);
  border: 1px solid var(--pm-line, rgba(29, 36, 36, .13));
  border-radius: 11px;
  text-decoration: none;
}

.pm-storefront-shop-link-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pm-storefront-shop-links a > span:last-child {
  display: block;
  padding: .62rem .7rem .72rem;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
}

.pm-storefront-archive-hero {
  position: relative;
  min-height: clamp(19rem, 40vw, 31rem);
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  color: #fff;
  background: var(--pm-storefront-deep);
  border: 1px solid rgba(220, 230, 232, .2);
  border-top: 4px solid var(--pm-storefront-copper);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(8, 15, 19, .24);
  isolation: isolate;
}

.pm-storefront-archive-image,
.pm-storefront-archive-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-storefront-archive-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.pm-storefront-archive-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 17, .94) 0%, rgba(8, 15, 19, .84) 38%, rgba(8, 15, 19, .42) 63%, rgba(8, 15, 19, .08) 100%),
    linear-gradient(180deg, rgba(8, 15, 19, .05), rgba(8, 15, 19, .35));
}

.pm-storefront-archive-copy {
  display: flex;
  min-height: inherit;
  max-width: min(48rem, 58%);
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 5vw, 4.5rem);
}

body.pm-storefront-visuals .pm-storefront-archive-copy h2 {
  max-width: 15ch;
  margin: .2rem 0 .8rem;
  color: #fff;
  font-family: var(--pm-serif, Georgia, serif);
  font-size: clamp(2rem, 5vw, 4.3rem);
  letter-spacing: -.035em;
  line-height: .98;
}

.pm-storefront-archive-copy p:not(.pm-section__eyebrow) {
  max-width: 54ch;
  margin: 0;
  color: var(--pm-storefront-silver);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

.pm-storefront-archive-copy .pm-section__eyebrow {
  color: color-mix(in srgb, var(--pm-storefront-copper) 70%, #fff);
}

.pm-storefront-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(circle at 75% 18%, rgba(117, 190, 181, .28), transparent 35%),
    linear-gradient(145deg, #152229, #0d151a);
  font-weight: 800;
  text-align: center;
}

:root[data-theme="dark"] .pm-storefront-category-card,
:root[data-theme="dark"] .pm-storefront-shop-intro,
:root[data-theme="dark"] .pm-storefront-shop-links a {
  border-color: rgba(139, 162, 255, .2);
}

@media (max-width: 1020px) {
  .pm-storefront-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-storefront-shop-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.home .pm-storefront-maker-board {
    grid-template-columns: 1fr;
  }

  body.home .pm-storefront-maker-tile {
    aspect-ratio: 16 / 9;
  }

  .pm-storefront-category-grid {
    grid-template-columns: 1fr;
  }

  .pm-storefront-shop-links {
    display: flex;
    margin-right: calc(50% - 50vw);
    padding: .15rem calc(50vw - 50%) .75rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .pm-storefront-shop-links a {
    flex: 0 0 min(72vw, 15rem);
    scroll-snap-align: start;
  }

  .pm-storefront-archive-hero {
    min-height: 31rem;
  }

  .pm-storefront-archive-image {
    object-position: 68% center;
  }

  .pm-storefront-archive-scrim {
    background: linear-gradient(180deg, rgba(7, 13, 17, .16) 12%, rgba(7, 13, 17, .82) 58%, rgba(7, 13, 17, .96) 100%);
  }

  .pm-storefront-archive-copy {
    min-height: inherit;
    max-width: none;
    justify-content: flex-end;
    padding: 1.25rem;
  }

  .pm-storefront-archive-copy h2 {
    max-width: 17ch;
    font-size: clamp(2rem, 11vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-storefront-maker-tile,
  .pm-storefront-category-card,
  .pm-storefront-category-image {
    transition: none !important;
  }
}

