:root {
  --site-component-cream: #f7f3eb;
  --site-component-ink: #18191b;
  --site-component-purple: #8b3dff;
  --site-component-lilac: #d7c0ff;
}

[data-site-header],
[data-site-footer] { display: contents; }

#js-top-notice { display: none !important; }

#js-site-header.site-header-shell {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(18px, 3.2vw, 64px);
  background: var(--site-component-cream);
}

#js-site-header.site-header-shell .site-nav {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

#js-site-header.site-header-shell .site-nav > a:first-child {
  display: inline-flex !important;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#js-site-header.site-header-shell .site-nav > a:first-child:hover {
  background: transparent;
  transform: none;
}

#js-site-header.site-header-shell .site-nav > a:first-child img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#js-site-header.site-header-shell .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

#js-site-header.site-header-shell .nav-links a {
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#js-site-header.site-header-shell .nav-links a.active {
  color: var(--site-component-purple);
}

/* Neutralize the underline decoration supplied by legacy page themes. */
#js-site-header.site-header-shell .nav-links a::after {
  content: none !important;
}

#js-site-header.site-header-shell .nav-toggle {
  display: none;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
}

#js-site-header.site-header-shell .nav-toggle img {
  width: 24px;
  height: 24px;
}

#js-site-header.site-header-shell a.nav-subscribe-link {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 0 18px !important;
  border: 1px solid #18191b;
  border-radius: 999px !important;
  background: #18191b !important;
  color: #fff !important;
  box-shadow: 0 5px 0 #d7c0ff;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#js-site-header.site-header-shell a.nav-subscribe-link:hover,
#js-site-header.site-header-shell a.nav-subscribe-link:focus-visible {
  border-color: #18191b;
  background: #18191b !important;
  color: #fff !important;
  box-shadow: 0 2px 0 #d7c0ff;
  transform: translateY(3px);
}

#js-site-header.site-header-shell a.nav-subscribe-link:active {
  box-shadow: 0 0 0 transparent;
  transform: translateY(5px);
}

.story-shell {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.story-footer {
  --story-ink: #18191b;
  --story-lilac: #d7c0ff;
  padding: 72px 0 30px;
  background: var(--story-ink);
  color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.story-footer__top {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: end;
}

.story-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 820;
  text-decoration: none;
}

.story-footer__brand:hover,
.story-footer__brand:focus { color: #fff; }
.story-footer__brand img { width: 34px; height: 34px; filter: invert(1); }

.story-footer__line {
  max-width: 760px;
  margin: 32px 0 0;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 850;
  line-height: .92;
  letter-spacing: -.06em;
}

.story-footer__line span { color: var(--story-lilac); }

.story-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px 28px;
}

.story-footer__links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.story-footer__links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.story-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

@media (max-width: 991px) {
  #js-site-header.site-header-shell { padding-inline: 16px; }
  #js-site-header.site-header-shell .nav-toggle { display: inline-flex; }
  #js-site-header.site-header-shell .nav-links { display: none; }
  #js-site-header.site-header-shell .nav-links[data-open="true"] {
    position: absolute;
    z-index: 3000;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
  }
  #js-site-header.site-header-shell .nav-links[data-open="true"] a {
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
  }
  #js-site-header.site-header-shell .nav-links[data-open="true"] a:hover {
    background: rgba(0, 0, 0, .04);
  }
  #js-site-header.site-header-shell .nav-links[data-open="true"] a.nav-subscribe-link {
    width: 100%;
    min-height: 40px;
    padding: 0 16px !important;
    border-color: #18191b;
    text-align: center;
  }
  .story-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .story-shell { width: min(100% - 28px, 1320px); }
  .story-footer__links { margin-top: 10px; }
  .story-footer__bottom {
    flex-direction: column;
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-footer * { transition-duration: .01ms !important; }
}
