@font-face {
  font-family: 'Scorekard';
  src: url('/fonts/scorekard-semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Scorekard';
  src: url('/fonts/scorekard-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --s8-ink: #101011;
  --s8-purple: #7138c7;
  --s8-icon: #1505c9;
  --s8-peach: #fae3d0;
  --s8-lilac: #ece7fc;
  --s8-brand-gradient: linear-gradient(147deg, #ddd9ff -64.07%, #7138c7 67.77%);
  --s8-footer-gradient: linear-gradient(to top, #cfe8f7 0%, rgb(207 232 247 / 55%) 42%, rgb(207 232 247 / 0%) 100%);
}

body {
  background: #f7f7f3 !important;
  color: var(--s8-ink);
}

h1,
h2,
h3,
.editorial-story h2,
.editorial-body-grid .prose-segment8 h2,
.editorial-aside > span,
.s8-site-footer__proposition h2 {
  font-family: 'Scorekard', 'Ubuntu', sans-serif !important;
}

/* Main-site navbar */
.s8-navbar {
  background: #05070b !important;
  border-bottom-color: rgb(255 255 255 / 15%) !important;
}

.s8-nav-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.s8-nav-lockup img {
  display: block;
  height: 26px;
  width: 105px;
}

.s8-nav-link {
  border-bottom-color: transparent !important;
  color: rgb(255 255 255 / 70%) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding-left: .75rem !important;
  padding-right: .75rem !important;
}

.s8-nav-link:hover {
  border-bottom-color: rgb(255 255 255 / 30%) !important;
  color: #fff !important;
}

.s8-nav-cta {
  background: #ff6b2d !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 16px !important;
  min-height: 44px !important;
  padding: .7rem 1.4rem !important;
}

.s8-nav-cta:hover { background: #e95b21 !important; }
#s8-mobile-toggle { color: #fff !important; }
.s8-mobile-menu { background: #05070b !important; border-bottom-color: rgb(255 255 255 / 15%) !important; }
.s8-mobile-menu > a { color: #fff !important; border-color: rgb(255 255 255 / 12%) !important; }

.blog-topic-nav {
  background: rgb(247 247 243 / 94%) !important;
  border-bottom-color: rgb(8 7 7 / 10%) !important;
}

.blog-topic-nav a { font-size: 13px !important; }
.blog-topic-nav a:hover { background: var(--s8-lilac) !important; color: #300266 !important; }

/* Journal and article mastheads */
.editorial-index-masthead,
.editorial-masthead,
.category-masthead,
.editorial-directory-masthead {
  background: var(--s8-brand-gradient) !important;
  border-bottom: 0 !important;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.editorial-index-masthead,
.editorial-masthead { padding-bottom: 118px !important; padding-top: 82px !important; }

.editorial-index-masthead::after,
.editorial-masthead::after,
.category-masthead::after,
.editorial-directory-masthead::after {
  background: #f7f7f3;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  bottom: -64px;
  content: '';
  height: 92px;
  left: -4%;
  position: absolute;
  width: 108%;
  z-index: 1;
}

.editorial-index-masthead h1,
.editorial-index-masthead h1 span,
.editorial-index-masthead p,
.editorial-masthead h1,
.editorial-dek,
.editorial-kicker,
.editorial-byline span,
.editorial-byline strong,
.category-masthead h1,
.category-masthead p,
.editorial-directory-masthead h1,
.editorial-directory-masthead p {
  color: #fff !important;
}

.editorial-index-masthead h1,
.editorial-masthead h1 {
  font-family: 'Scorekard', 'Ubuntu', sans-serif !important;
  letter-spacing: -.045em !important;
}

.editorial-byline { border-top-color: rgb(255 255 255 / 28%) !important; }
.editorial-byline-author img { border-color: rgb(255 255 255 / 50%) !important; }

.editorial-cover {
  border: 8px solid #fff !important;
  border-radius: 40px !important;
  box-shadow: 0 26px 70px rgb(22 5 47 / 28%);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.editorial-cover img { border-radius: 32px; }
.editorial-body-section { background: #fff !important; }

/* Editorial cards */
.blog-section { background: #f7f7f3; padding-bottom: 7rem; }
.editorial-story-grid { gap: 1.5rem !important; }
.editorial-story {
  background: #fff;
  border: 1px solid rgb(16 16 17 / 8%) !important;
  border-radius: 40px;
  box-shadow: 0 18px 48px rgb(16 16 17 / 8%);
  overflow: hidden;
  padding: 0 !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.editorial-story:hover {
  box-shadow: 0 24px 62px rgb(16 16 17 / 12%);
  transform: translateY(-4px);
}

.editorial-story__media { border-radius: 0; }
.editorial-story__body { border-top: 0 !important; padding: 1.5rem 1.6rem 1.8rem !important; }
.editorial-story__meta span,
.editorial-story__read span { color: var(--s8-icon) !important; }
.editorial-story:hover h2,
.editorial-story:hover .editorial-story__read { color: var(--s8-icon) !important; }
.editorial-story--lead .editorial-story__body { max-width: none !important; padding: 1.9rem 2rem 2.1rem !important; }

.author-card,
.related-posts,
.featured-snippet-answer,
.editorial-directory-card,
.editorial-topic-card {
  border-radius: 40px !important;
}

.author-card { background: var(--s8-peach) !important; border: 0 !important; }
.related-posts { background: var(--s8-lilac) !important; padding: 2rem !important; }

/* Branded error page */
.not-found-page { background: var(--s8-brand-gradient); overflow: hidden; position: relative; }
.not-found-hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 660px;
  padding: 7rem 1.5rem 9rem;
  position: relative;
}
.not-found-hero::after {
  background: #f7f7f3;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  bottom: -58px;
  content: '';
  height: 92px;
  left: -4%;
  position: absolute;
  width: 108%;
}
.not-found-card {
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 28px 80px rgb(22 5 47 / 30%);
  max-width: 660px;
  padding: 4rem;
  position: relative;
  transform: rotate(-1.5deg);
  z-index: 1;
}
.not-found-card > span { color: var(--s8-icon); font: 700 14px/1 'Ubuntu', sans-serif; letter-spacing: .08em; }
.not-found-card h1 { font-size: 54px; letter-spacing: -.045em; line-height: 1; margin: 1rem 0 0; }
.not-found-card p { color: #56545c; font: 400 17px/1.65 'Ubuntu', sans-serif; margin: 1.5rem 0 0; }
.not-found-card a { color: var(--s8-icon); display: inline-flex; font: 700 15px/1.2 'Ubuntu', sans-serif; gap: .5rem; margin-top: 2rem; text-decoration: none; }

/* Current marketing footer */
.s8-site-footer {
  background: var(--s8-footer-gradient) !important;
  border-top: 0 !important;
  overflow: hidden;
}

.s8-site-footer__container { max-width: 1600px !important; }
.s8-site-footer__hero {
  background: var(--s8-brand-gradient);
  color: #fff;
  left: 50%;
  margin-left: -50vw;
  padding: 5rem 0 !important;
  position: relative;
  width: 100vw;
}

.s8-site-footer__hero-grid {
  display: grid;
  gap: 1.5rem 3rem;
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 3rem;
}

.s8-site-footer__proposition { grid-column: 1 / 6; }
.s8-site-footer__visual { grid-column: 6 / 13; grid-row: 1 / 3; align-self: center; }
.s8-site-footer__visual img { border-radius: 40px; box-shadow: 0 24px 70px rgb(22 5 47 / 28%); width: 100%; }
.s8-site-footer__proposition h2 { color: #fff !important; font-size: 48px !important; line-height: 1.02 !important; max-width: 650px !important; }
.s8-site-footer__value-points { display: grid; gap: .7rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.s8-site-footer__value-points li { color: #fff; display: grid; font: 600 15px/1.45 'Ubuntu', sans-serif; gap: .7rem; grid-template-columns: 22px 1fr; }
.s8-site-footer__value-points span { color: #fff; }
.s8-site-footer__primary { background: #ff6b2d !important; border-radius: 8px !important; }
.s8-site-footer__primary:hover { background: #e95b21 !important; }
.s8-site-footer__secondary { border-bottom-color: rgb(255 255 255 / 70%) !important; color: #fff !important; }

.s8-site-footer__nav {
  background: rgb(16 16 17 / 8%);
  border: 1px solid rgb(16 16 17 / 8%) !important;
  border-radius: 40px;
  box-shadow: 0 24px 70px rgb(16 16 17 / 10%);
  gap: 1px;
  margin-top: 6rem;
  overflow: hidden;
}

.s8-site-footer__column {
  background: #fff;
  border: 0 !important;
  min-height: 380px;
  padding: 2.25rem !important;
}

.s8-site-footer__column-title { color: var(--s8-icon) !important; font-weight: 700 !important; }
.s8-site-footer__column a:hover,
.s8-site-footer__legal a:hover { color: var(--s8-icon) !important; }
.s8-site-footer__legal-meta > a { align-items: center; background: var(--s8-icon); border-radius: 50%; color: #fff !important; height: 36px; justify-content: center; width: 36px; }

@media (max-width: 1023px) {
  .s8-site-footer__hero-grid { padding: 0 2rem; }
  .s8-site-footer__proposition,
  .s8-site-footer__visual { grid-column: 1 / -1 !important; grid-row: auto; }
  .s8-site-footer__visual { margin-top: 1.5rem; }
  .s8-site-footer__proposition h2 { font-size: 42px !important; }
}

@media (max-width: 580px) {
  .editorial-index-masthead,
  .editorial-masthead { padding-bottom: 92px !important; padding-top: 56px !important; }
  .editorial-index-masthead h1,
  .editorial-masthead h1 { font-size: 42px !important; }
  .editorial-story { border-radius: 32px; }
  .not-found-hero { min-height: 560px; padding-left: 1.25rem; padding-right: 1.25rem; }
  .not-found-card { border-radius: 32px; padding: 2.5rem 2rem; }
  .not-found-card h1 { font-size: 42px; }
  .s8-site-footer__hero-grid { padding: 0 1.25rem; }
  .s8-site-footer__proposition h2 { font-size: 36px !important; }
  .s8-site-footer__nav { border-radius: 32px; margin-top: 4rem; }
  .s8-site-footer__column { min-height: 0; }
}
