:root {
  --ease-news: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

::selection {
  background: #f05127;
  color: #fafafa;
}

.headline-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 0.075em;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease-news), color 0.25s ease;
}
.group:hover .headline-link,
.headline-link:hover {
  background-size: 100% 0.075em;
}

.kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-news),
    transform 0.7s var(--ease-news),
    filter 0.7s var(--ease-news);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.ticker-mask {
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.art-zoom svg {
  transition: transform 0.8s var(--ease-news);
}
.group:hover .art-zoom svg {
  transform: scale(1.045);
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #4d4d4a;
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0a0a0a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto;
  border-radius: 10px;
}
.article-body figure {
  margin: 1.75rem 0;
}
.article-body figure img {
  margin: 0 auto;
}
.article-body > p:first-of-type::first-letter {
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 0.8;
  float: left;
  margin-right: 0.75rem;
  margin-top: 0.375rem;
  color: #0a0a0a;
}
/* Don't drop-cap a paragraph that starts with an image */
.article-body > p:first-of-type:has(img)::first-letter {
  font-size: inherit;
  font-weight: inherit;
  float: none;
  margin: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 36s linear infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .animate-marquee {
    animation: none;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
