/* A contour print and a halftone screen frame the existing field illustration. */
.hero {
  --cover-ink: var(--hot);
}
.hero:has(#tab-slices[aria-selected="true"]) { --cover-ink: #f3c477; }
.hero:has(#tab-projection[aria-selected="true"]) { --cover-ink: #8bd3c5; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: var(--cover-ink);
}
.hero::before {
  background: repeating-radial-gradient(ellipse 44rem 22rem at -5% 139%,
    transparent 0 .76rem, currentColor .81rem .85rem, transparent .9rem 1.18rem);
  mask-image: radial-gradient(ellipse 54% 88% at -4% 111%,
    #000 6%, #0008 39%, #0002 66%, transparent 91%);
  opacity: .54;
}
.hero::after {
  background: radial-gradient(circle, currentColor 1.05px, transparent 1.45px) 0 0 / 7px 7px;
  mask-image: radial-gradient(ellipse 26% 52% at 42% -6%, #000c, #0004 53%, transparent 95%),
              radial-gradient(ellipse 16% 60% at 103% 91%, #000c, transparent 90%);
  opacity: .48;
}
.hero .field { background-color: transparent; }
.hero .eyebrow > span,
.hero .hero-initial::after { background: var(--cover-ink); }
.hero-period { color: var(--cover-ink); }
.view-selector button[aria-selected="true"] {
  background: var(--cover-ink);
  color: var(--night);
}
.hero .button-hot,
.hero .button-hot:hover { background: var(--cover-ink); }

:is(.hero-actions, .path-actions) .button {
  --button-ink: var(--cover-ink, var(--hot));
  --button-wash: color-mix(in srgb, var(--button-ink) 65%, white);
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
:is(.hero-actions, .path-actions) .button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--button-wash);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-actions .button-ghost {
  --button-wash: color-mix(in srgb, var(--cover-ink) 19%, var(--night));
  background: var(--night);
}
:is(.hero-actions, .path-actions) .button:focus-visible {
  outline: 2px solid #fff2db;
  outline-offset: 4px;
}
:is(.hero-actions, .path-actions) .button:is(:focus-visible, :active)::before { transform: scaleX(1); }
.hero-actions .button-ghost:is(:focus-visible, :active) { border-color: var(--cover-ink); }
@media (hover: hover) {
  :is(.hero-actions, .path-actions) .button:hover::before { transform: scaleX(1); }
  .hero-actions .button-ghost:hover { border-color: var(--cover-ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .hero::after, .hero-period { transition: color .35s ease; }
  .hero .hero-initial::after, .hero .eyebrow > span, .view-selector button {
    transition: background-color .22s ease, color .22s ease;
  }
  :is(.hero-actions, .path-actions) .button {
    transition: transform .18s ease, background-color .25s ease, border-color .2s ease;
  }
  :is(.hero-actions, .path-actions) .button::before { transition: transform .23s cubic-bezier(.2,.7,.25,1); }
  @media (hover: hover) {
    :is(.hero-actions, .path-actions) .button:hover { transform: translateY(-2px); }
  }
  :is(.hero-actions, .path-actions) .button:active { transform: translateY(1px); }
}
@media (max-width: 640px) {
  .hero::before {
    inset-block-end: auto;
    height: clamp(21rem, 97vw, 28rem);
    background-image: repeating-radial-gradient(ellipse 24rem 14rem at -9% 130%,
      transparent 0 .55rem, currentColor .6rem .64rem, transparent .69rem .95rem);
    mask-image: radial-gradient(ellipse 77% 53% at -9% 100%, #000a 5%, #0004 54%, transparent 91%);
  }
  .hero::after {
    mask-image: radial-gradient(ellipse 58% 34% at 98% 0, #000c, #0005 44%, transparent 96%);
  }
}
@media print, (forced-colors: active) {
  .hero::before, .hero::after, :is(.hero-actions, .path-actions) .button::before { display: none; }
}
