/* The generic page shell already has its own gutter. The homepage supplies
 * one too, so remove the outer horizontal inset to align it with the header. */
body.home.page:not(.woocommerce) main.np-main {
  max-width: none;
  margin-inline: 0;
  padding-right: 0;
  padding-left: 0;
}

.np-home {
  width: min(calc(100% - 32px), var(--np-max));
  margin: 0 auto;
  padding: 0 0 72px;
}

/*
 * Homepage stage
 *
 * NPC owns the black/gold stage. Individual universes keep their own colours,
 * but use them as quiet accents instead of looking like an admin dashboard.
 */
.np-home-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(0, 1.45fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 155, 48, .72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 8%, rgba(213, 167, 56, .12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(213, 167, 56, .07), transparent 30%),
    linear-gradient(145deg, #11110f 0%, #090a0c 48%, #11100c 100%);
  box-shadow:
    0 18px 48px rgba(15, 12, 6, .12),
    inset 0 0 0 1px rgba(255, 224, 141, .04);
}

.np-home-stage::before,
.np-home-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.np-home-stage::before {
  width: 62%;
  height: 160%;
  right: -28%;
  top: -36%;
  opacity: .42;
  background:
    linear-gradient(112deg,
      transparent 0 34%,
      rgba(205, 154, 39, .03) 34.3% 35.2%,
      transparent 35.6% 43%,
      rgba(231, 186, 77, .11) 43.2% 43.8%,
      transparent 44.2% 49%,
      rgba(205, 154, 39, .035) 49.3% 50.2%,
      transparent 50.6% 100%);
  transform: rotate(-5deg);
}

.np-home-stage::after {
  inset: 0;
  opacity: .28;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 208, 92, .72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 17% 71%, rgba(255, 208, 92, .45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 14%, rgba(255, 208, 92, .38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 78%, rgba(255, 208, 92, .46) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 24%, rgba(255, 208, 92, .55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 93% 64%, rgba(255, 208, 92, .34) 0 1px, transparent 1.5px);
}

.np-home-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 42px) clamp(30px, 3.8vw, 50px);
  background:
    radial-gradient(circle at 4% 0%, rgba(225, 178, 67, .1), transparent 36%),
    linear-gradient(135deg, rgba(16, 16, 14, .72), rgba(7, 8, 10, .38));
}

.np-home-intro__copy,
.np-home-intro__shop-link {
  position: relative;
  z-index: 1;
}

.np-home-intro__copy {
  max-width: 620px;
}

.np-home h1 {
  max-width: 620px;
  margin: 0 0 14px;
  color: #fffaf0;
  font-size: clamp(36px, 3.35vw, 50px);
  line-height: 1.01;
  letter-spacing: -.045em;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.np-home-intro p {
  max-width: 540px;
  margin: 0;
  color: rgba(247, 241, 226, .68);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
}

.np-home-intro__shop-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 14px;
  border: 1px solid rgba(210, 164, 56, .74);
  border-radius: 999px;
  background: rgba(16, 15, 12, .7);
  color: #f3ca68;
  box-shadow: inset 0 0 0 1px rgba(255, 227, 154, .035);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.np-home-intro__shop-link:hover {
  transform: translateY(-1px);
  border-color: #e5b94f;
  background: rgba(211, 163, 49, .13);
  color: #ffe39b;
  text-decoration: none;
}

.np-kicker {
  color: #c99b30;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.np-home-universe-picker {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.7vw, 34px);
  border-left: 1px solid rgba(210, 164, 56, .23);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 30%),
    rgba(4, 5, 7, .30);
}

.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: rgba(244, 237, 220, .46);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.np-home-universe-group + .np-home-universe-group {
  margin-top: 11px;
}

.np-home-universe-secondary {
  margin-top: 20px;
}

.np-home-universe-secondary .np-universe-cards {
  grid-template-columns: repeat(var(--np-home-secondary-columns, 3), minmax(0, 1fr));
}

.np-home-universe-group > h3 {
  margin: 0 0 5px;
  color: rgba(245, 237, 218, .46);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.np-universe-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
}

.np-home-stage .np-universe-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 60px;
  overflow: hidden;
  padding: 8px 12px 8px 9px;
  border: 1px solid color-mix(in srgb, var(--np-universe-accent) 30%, #42413b);
  border-radius: 13px;
  background:
    radial-gradient(circle at 7% 18%, color-mix(in srgb, var(--np-universe-accent) 12%, transparent), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, .025), transparent 42%),
    rgba(17, 18, 21, .68);
  color: #f8f5ed;
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--np-universe-accent) 60%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .015);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.np-home-stage .np-universe-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--np-universe-accent) 58%, #716d62);
  background:
    radial-gradient(circle at 7% 18%, color-mix(in srgb, var(--np-universe-accent) 18%, transparent), transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, .035), transparent 46%),
    rgba(22, 23, 27, .9);
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--np-universe-accent) 84%, transparent),
    0 12px 26px rgba(0, 0, 0, .2),
    0 0 22px color-mix(in srgb, var(--np-universe-accent) 9%, transparent);
  text-decoration: none;
}

.np-home-stage .np-universe-card__visual {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 11px;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--np-universe-accent) 28%, transparent), transparent 54%),
    #15161a;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--np-universe-accent) 36%, transparent),
    0 0 16px color-mix(in srgb, var(--np-universe-accent) 8%, transparent);
}

.np-home-stage .np-universe-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: inherit;
}

.np-home-stage .np-universe-card__visual i {
  position: absolute;
  left: 14px;
  top: 9px;
  width: 17px;
  height: 25px;
  border: 1.5px solid color-mix(in srgb, var(--np-universe-accent) 86%, white);
  border-radius: 4px;
  transform: rotate(6deg);
  box-shadow:
    -5px 4px 0 -3px color-mix(in srgb, var(--np-universe-accent) 46%, transparent),
    0 0 10px color-mix(in srgb, var(--np-universe-accent) 20%, 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: visible;
  color: #f7f4ec;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-overflow: clip;
}

.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-accent) 58%, #c7c4bc);
  font-size: 9px;
  font-weight: 750;
  opacity: .9;
}

.np-home-products {
  margin-top: clamp(26px, 3.2vw, 38px);
  padding-top: 0;
}

.np-home-products .np-kicker {
  color: #8c6718;
}

.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-home-stage .np-home-empty h2,
.np-home-stage .np-home-empty p {
  color: #f8f3e7;
}

.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(310px, .9fr) minmax(0, 1.25fr);
  }

  .np-home-intro {
    padding-inline: 34px;
  }

  .np-home h1 {
    font-size: clamp(34px, 3.7vw, 46px);
  }

  .np-home-products .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .np-home-stage {
    grid-template-columns: 1fr;
  }

  .np-home-universe-picker {
    border-top: 1px solid rgba(210, 164, 56, .23);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .np-home {
    width: min(calc(100% - 22px), var(--np-max));
    padding-top: 0;
  }

  .np-home-stage {
    border-radius: 20px;
  }

  .np-home-stage::before {
    width: 96%;
    right: -58%;
  }

  .np-home-intro {
    gap: 14px;
    padding: 22px 20px 20px;
  }

  .np-home h1 {
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }

  .np-home-intro p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.45;
  }

  .np-home-intro__shop-link {
    margin-top: 2px;
    padding: 9px 13px;
  }

  .np-home-universe-picker {
    padding: 18px 18px 22px;
  }

  .np-section-heading--row {
    align-items: start;
  }

  .np-home-products .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .np-section-heading--row {
    align-items: flex-start;
  }

  .np-home-stage .np-universe-cards {
    grid-template-columns: 1fr;
  }

  .np-home-stage .np-universe-card {
    min-height: 58px;
  }

  .np-home-stage .np-universe-card__visual {
    width: 42px;
    height: 42px;
  }

  .np-home-stage .np-universe-card__visual i {
    left: 13px;
    top: 8px;
  }
}

@media (max-width: 380px) {
  .np-home h1 {
    font-size: 28px;
  }

  .np-home-products .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
