.np-home {
  width: min(calc(100% - 32px), var(--np-max));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) 0 72px;
}

/* The intro and the universe chooser are deliberately one visual unit. */
.np-home-stage {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.6fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #e1dfda;
  border-radius: 24px;
  background: #f7f6f3;
  box-shadow: 0 1px 2px rgba(16, 18, 22, .025);
}

.np-home-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 40px);
  background:
    radial-gradient(circle at 15% 8%, rgba(82, 91, 110, .08), transparent 35%),
    linear-gradient(145deg, #f8f7f4, #f3f2ee);
}

.np-home-intro__copy {
  max-width: 520px;
}

.np-home h1 {
  max-width: 560px;
  margin: 7px 0 12px;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

.np-home-intro p {
  max-width: 520px;
  margin: 0;
  color: #666a72;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.5;
}

.np-home-intro__shop-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 13px;
  border: 1px solid #d4d1ca;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.np-home-intro__shop-link:hover {
  border-color: #a9a59d;
  background: #fff;
  text-decoration: none;
}

.np-kicker {
  color: #6b6f78;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.np-home-universe-picker {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-left: 1px solid #e1dfda;
  background: rgba(255, 255, 255, .72);
}

.np-home-universe-picker__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.np-home-universe-picker__heading h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  letter-spacing: -.035em;
}

.np-section-heading {
  margin-bottom: 20px;
}

.np-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(25px, 3.5vw, 38px);
  letter-spacing: -.035em;
}

.np-section-heading--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.np-section-heading--row > a {
  font-size: 13px;
  font-weight: 750;
  color: #4f535c;
}

.np-section-heading__note {
  color: #858991;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.np-home-universe-group + .np-home-universe-group {
  margin-top: 17px;
}

.np-home-universe-group > h3 {
  margin: 0 0 7px;
  color: #777b84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.np-universe-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Compact cards make the universe chooser part of the hero instead of a second hero. */
.np-home-stage .np-universe-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  overflow: hidden;
  padding: 9px 11px 9px 9px;
  border: 1px solid color-mix(in srgb, var(--np-universe-accent) 22%, #deddd9);
  border-radius: 13px;
  background: color-mix(in srgb, var(--np-universe-soft) 84%, #fff);
  color: var(--np-universe-ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.np-home-stage .np-universe-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--np-universe-accent) 48%, #d7d5cf);
  box-shadow: 0 8px 18px rgba(24, 25, 28, .07);
  text-decoration: none;
}

.np-home-stage .np-universe-card__visual {
  position: relative;
  display: block;
  width: 40px;
  height: 46px;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--np-universe-accent) 30%, transparent), transparent 72%),
    color-mix(in srgb, var(--np-universe-soft) 78%, #fff);
  background-position: center;
  background-size: cover;
}

.np-home-stage .np-universe-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--np-universe-accent) 34%, transparent);
  border-radius: inherit;
}

.np-home-stage .np-universe-card__visual i {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 26px;
  border: 1.5px solid color-mix(in srgb, var(--np-universe-accent) 72%, white);
  border-radius: 4px;
  transform: rotate(7deg);
  box-shadow: -5px 4px 0 -2px color-mix(in srgb, var(--np-universe-accent) 32%, transparent);
}

.np-home-stage .np-universe-card__content {
  display: block;
  min-width: 0;
  padding: 0;
}

.np-home-stage .np-universe-card__name {
  display: block;
  overflow: hidden;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
}

.np-home-stage .np-universe-card__description {
  display: none;
}

.np-home-stage .np-universe-card__action {
  display: block;
  margin-top: 3px;
  padding: 0;
  color: color-mix(in srgb, var(--np-universe-ink) 68%, transparent);
  font-size: 9px;
  font-weight: 750;
}

.np-home-products {
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: 0;
}

.np-home-products .products {
  margin-bottom: 0;
}

.np-home-products .woocommerce ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np-home-empty {
  text-align: left;
}

.np-button {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 10px;
  background: #17191f;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .np-home-stage {
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  }

  .np-universe-cards,
  .np-home-products .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .np-home-stage .np-universe-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .np-home {
    width: min(calc(100% - 22px), var(--np-max));
    padding-top: 14px;
  }

  .np-home-stage {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .np-home-intro {
    gap: 18px;
    padding: 26px 24px;
  }

  .np-home-universe-picker {
    border-top: 1px solid #e1dfda;
    border-left: 0;
    padding: 22px 20px 24px;
  }

  .np-section-heading--row {
    align-items: start;
  }

  .np-home-products .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .np-home-universe-picker__heading,
  .np-section-heading--row {
    align-items: flex-start;
  }

  .np-home-stage .np-universe-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .np-home-stage .np-universe-cards,
  .np-home-products .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
