/* Shared illustrated midnight masthead treatment. */

.dark-studio-experiment .tpls-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dark-studio-experiment .tpls-primary-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dark-studio-experiment .tpls-primary-nav a,
.dark-studio-experiment .tpls-nav-list a,
.dark-studio-experiment .tpls-search-toggle {
  color: #fff;
}

.dark-studio-experiment .tpls-nav-list a::after,
.dark-studio-experiment .tpls-search-toggle::after {
  background: #5ff9ee;
}

.dark-studio-experiment .tpls-menu-toggle {
  border-color: rgba(255, 255, 255, .75);
  background: rgba(3, 20, 45, .4);
}

.dark-studio-experiment .tpls-menu-toggle span:not(.screen-reader-text) {
  background: #fff;
}

/* The original page markup stays intact. Layer the illustrated environment
   and readable midnight wash directly onto each existing masthead. */
.dark-studio-experiment :is(
  .tpls-hero,
  .tpls-archive-hero,
  .tpls-post-hero
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: #03142d;
  background-image:
    linear-gradient(90deg, rgba(1, 13, 32, .92) 0%, rgba(1, 13, 32, .62) 40%, rgba(1, 13, 32, .14) 72%),
    url("../img/hero-dark-background-illustrated.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.dark-studio-experiment .tpls-hero {
  min-height: clamp(660px, 84vh, 840px);
}

.dark-studio-experiment :is(.tpls-archive-hero, .tpls-post-hero) {
  min-height: clamp(540px, 68vh, 700px);
  padding-top: clamp(7.5rem, 13vw, 10.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.dark-studio-experiment :is(
  .tpls-hero-grid,
  .tpls-archive-hero-inner,
  .tpls-post-hero-grid
) {
  position: relative;
  z-index: 2;
}

.dark-studio-experiment .tpls-hero-grid {
  min-height: inherit;
  padding-top: 88px;
}

.dark-studio-experiment :is(
  .tpls-hero-copy,
  .tpls-archive-hero-inner,
  .tpls-post-hero-copy
) :is(h1, h2, p, .tpls-post-meta, .tpls-post-meta span) {
  color: #fff;
}

.dark-studio-experiment :is(
  .tpls-hero-copy,
  .tpls-archive-hero-inner,
  .tpls-post-hero-copy
) > p {
  color: rgba(255, 255, 255, .88);
}

.dark-studio-experiment .tpls-archive-intro,
.dark-studio-experiment .tpls-archive-intro p {
  color: #fff;
}

.dark-studio-experiment .tpls-hero-copy > p strong {
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

.dark-studio-experiment .tpls-brush-title .accent {
  color: #176cff;
  -webkit-text-stroke: 0;
  text-shadow: 0 5px 24px rgba(23, 108, 255, .35);
}

.dark-studio-experiment .tpls-brush-title .accent::after {
  display: none;
}

.dark-studio-experiment :is(.tpls-hero-copy, .tpls-post-hero-copy) .tpls-button {
  border-color: #071426;
  box-shadow: 0 6px 0 #071426;
}

.dark-studio-experiment :is(.tpls-hero-copy, .tpls-post-hero-copy) .tpls-outline-button {
  color: #fff;
  border-color: #fff;
  background: rgba(3, 20, 45, .38);
}

.dark-studio-experiment .tpls-hero-art {
  z-index: 4;
}

/* Remove the former halftone, splatter, and floating icon layers. */
.dark-studio-experiment .tpls-hero::before,
.dark-studio-experiment .tpls-hero::after {
  content: none;
  display: none;
}

.dark-studio-experiment .tpls-hero-art::before {
  display: none;
}

.dark-studio-experiment .tpls-hero-art .tpls-doodle {
  display: none !important;
}

.dark-studio-experiment .tpls-hero-mascot-sprite,
.dark-studio-experiment .tpls-hero-bot-sprite {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .25));
  transform: translateY(22px);
}

.dark-studio-experiment .tpls-post-featured-image {
  background: rgba(255, 255, 255, .12);
  box-shadow: 14px 16px 0 rgba(23, 108, 255, .72);
}

.dark-studio-experiment .tpls-post-hero .tpls-post-meta span {
  color: #071426;
}

.dark-studio-experiment .tpls-press-kit-section .tpls-empty-state,
.dark-studio-experiment .tpls-press-kit-section .tpls-empty-state :is(h2, h3, p) {
  color: #071426;
}

@media (max-width: 820px) {
  .dark-studio-experiment .tpls-primary-nav {
    background: #fffaf2;
  }

  .dark-studio-experiment .tpls-primary-nav a,
  .dark-studio-experiment .tpls-nav-list a,
  .dark-studio-experiment .tpls-search-toggle {
    color: #071426;
  }

  .dark-studio-experiment :is(.tpls-hero, .tpls-archive-hero, .tpls-post-hero) {
    background-image:
      linear-gradient(0deg, rgba(1, 13, 32, .98) 0%, rgba(1, 13, 32, .82) 52%, rgba(1, 13, 32, .2) 88%),
      url("../img/hero-dark-background-illustrated.png");
    background-position: 64% center;
  }

  .dark-studio-experiment .tpls-hero {
    min-height: 820px;
  }

  .dark-studio-experiment .tpls-hero-mascot-sprite,
  .dark-studio-experiment .tpls-hero-bot-sprite {
    transform: translateY(14px);
  }

  .dark-studio-experiment :is(.tpls-archive-hero, .tpls-post-hero) {
    min-height: auto;
    padding-top: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dark-studio-experiment [data-sprite-animation] {
    animation: none !important;
  }
}
