/* MODUS 3.0 home. Keep the original layout in the accessibility themes. */
html:not([data-theme="readable"], [data-theme="contrast"]) .modus-home[data-nordic-preview] {
  --m3-home-ink: #f4f0e5;
  --m3-home-gold: #efd37d;
}

.modus-home[data-nordic-preview] .home-subjects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.45rem, 2vw, 1.5rem);
  margin: 0 auto 1.25rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-wrap: balance;
}

.modus-home[data-nordic-preview] .home-subjects::before,
.modus-home[data-nordic-preview] .home-subjects::after {
  content: "";
  flex: 1 1 3rem;
  max-width: 5rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.modus-home[data-nordic-preview] .hero.home-hero {
  justify-content: center;
  min-height: clamp(230px, 24vw, 360px) !important;
  padding: clamp(32px, 5vw, 70px) var(--nordic-gutter) !important;
  text-align: center;
}

.modus-home[data-nordic-preview] .home-hero .hero-content {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
}

.modus-home[data-nordic-preview] .home-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.modus-home[data-nordic-preview] .home-hero .home-lead {
  margin: .65rem auto 1.25rem;
}

.modus-home[data-nordic-preview] .home-hero .hero-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.modus-home[data-nordic-preview] .home-hero .home-hero-wave {
  display: none;
}

html:not([data-theme="readable"], [data-theme="contrast"]) .modus-home[data-nordic-preview] .home-hero .landscape::after {
  background: linear-gradient(180deg, #061e23db, #061e2352 48%, #041f24c4 90%, #061e1e) !important;
}

html:not([data-theme="readable"], [data-theme="contrast"]) .modus-home[data-nordic-preview] .home-hero :is(h1, .home-lead, .home-subjects) {
  color: var(--m3-home-ink);
}

.modus-home[data-nordic-preview] .illustrated-portals .home-portal {
  min-height: clamp(145px, 13vw, 205px);
  padding-block: 2rem .9rem !important;
}

.modus-home[data-nordic-preview] .illustrated-portals .portal-number {
  display: none;
}

.modus-home[data-nordic-preview] .new-philosophy :is(.eyebrow, svg) {
  color: var(--m3-home-gold, currentColor);
}

.modus-home[data-nordic-preview] .new-philosophy h2 {
  font-family: Georgia, serif;
}

@media (max-width: 360px) {
  .modus-home[data-nordic-preview] .home-subjects {
    letter-spacing: .08em;
  }
}
