:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--site-color-bg);
  color: var(--site-color-text);
  font-family: var(--site-font-body), system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--site-color-link);
  text-underline-offset: 0.15em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--site-color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 5;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  background: var(--site-color-header);
  color: var(--site-color-text);
}

.site-footer {
  background: var(--site-color-footer);
}

.site-header__inner,
.site-footer__inner,
main {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.site-header a {
  color: var(--site-color-header-link);
  text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
  text-decoration: underline;
}

.brand {
  display: block;
  min-width: 0;
}

.logo,
.brand img {
  display: block;
  width: auto;
  max-width: min(100%, 16rem);
  height: auto;
}

.site-name {
  font-family: var(--site-font-heading), system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}

nav ul,
.card-list,
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

main {
  background: var(--site-color-surface);
  color: var(--site-color-text);
  padding: 1.25rem;
  margin-block: 1.25rem 2rem;
}

h1,
h2,
h3 {
  font-family: var(--site-font-heading), system-ui, sans-serif;
  line-height: 1.2;
}

.lede,
.article-teaser {
  font-size: 1.15rem;
}

.article-dates {
  margin-top: 0;
}

.article-updated {
  margin-left: 0.75rem;
}

.card-list li,
.related li {
  padding: 0.8rem 0;
  border-top: 1px solid color-mix(in srgb, var(--site-color-text) 18%, transparent);
}

.hero-figure,
.article-image,
.article-video {
  margin: 1rem 0;
}

.video-title {
  margin: 0 0 0.5rem;
}

.hero,
.listicle img,
.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.review-score {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  font-family: var(--site-font-heading), system-ui, sans-serif;
}

.pros,
.cons,
.listicle {
  padding-left: 1.2rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, calc(var(--ad-w) * 1px));
  height: calc(var(--ad-h) * 1px);
  min-height: calc(var(--ad-h) * 1px);
  margin: 1rem auto;
  overflow: hidden;
  background: var(--site-color-header);
  color: var(--site-color-muted);
}

.ad-slot__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 700px) {
  .ad-slot {
    width: min(100%, 300px);
    height: 250px;
    min-height: 250px;
  }

  .ad-slot--desktop-only {
    display: none;
  }
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--site-color-header);
  overflow: hidden;
}

.video-play {
  display: none;
}

.js .video-play {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--site-color-on-accent);
}

.video-frame img,
.video-frame iframe,
.video-frame__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
}

.video-play__icon {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--site-color-accent);
}

.video-play__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--site-color-on-accent);
}

.video-fallback {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  padding: 0.4rem 0.7rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer__inner {
  padding-top: 1.5rem;
}

.site-footer__name,
.site-footer a {
  color: var(--site-color-text);
}

.site-footer small {
  display: block;
  color: var(--site-color-muted);
}

.paywall-notice {
  padding: 1rem;
  border: 1px solid var(--site-color-accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
