/* A restrained, article-first presentation for the preserved election stories. */

:root {
  --nyt-black: #121212;
  --nyt-gray: #666;
  --nyt-rule: #d9d9d9;
  --nyt-blue: #326891;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: var(--nyt-black);
  font-family: nyt-cheltenham-small, georgia, serif;
}

a {
  color: inherit;
}

.nyt-site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--nyt-black);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nyt-site-header a {
  text-decoration: none;
}

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

.nyt-site-header-left {
  justify-self: start;
}

.nyt-site-header-right {
  justify-self: end;
}

.nyt-wordmark {
  font-family: nyt-cheltenham, georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nyt-article-shell {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 58px 0 88px;
}

.nyt-article,
.nyt-analysis-index {
  width: min(100%, 680px);
  margin: 0 auto;
}

.nyt-article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--nyt-rule);
}

.nyt-kicker {
  margin: 0 0 13px;
  color: var(--nyt-blue);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nyt-article-title {
  margin: 0;
  font-family: nyt-cheltenham, georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.nyt-article-dek {
  margin: 20px 0 0;
  color: #444;
  font-size: 21px;
  line-height: 1.35;
}

.nyt-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
  color: var(--nyt-gray);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.nyt-byline {
  color: var(--nyt-black);
  font-weight: 700;
}

.nyt-article-body {
  padding-top: 30px;
  font-size: 19px;
  line-height: 1.55;
}

.nyt-article-body p {
  margin: 0 0 25px;
}

.nyt-article-body h2 {
  margin: 45px 0 10px;
  font-family: nyt-cheltenham, georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.nyt-article-body h2 + p {
  margin-top: 0;
}

.nyt-article-note {
  color: var(--nyt-gray);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.nyt-article-footer {
  margin-top: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--nyt-rule);
  color: var(--nyt-gray);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.nyt-analysis-index {
  width: min(100%, 820px);
}

.nyt-analysis-index .nyt-index-intro {
  max-width: 650px;
  margin: 0 0 36px;
  color: #444;
  font-size: 21px;
  line-height: 1.4;
}

.nyt-analysis-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--nyt-black);
  list-style: none;
}

.nyt-analysis-list-item {
  border-bottom: 1px solid var(--nyt-rule);
}

.nyt-analysis-list-item a {
  display: block;
  padding: 25px 0 27px;
  text-decoration: none;
}

.nyt-analysis-list-item a:hover .nyt-analysis-list-title,
.nyt-analysis-list-item a:focus-visible .nyt-analysis-list-title {
  text-decoration: underline;
}

.nyt-analysis-list-title {
  margin: 0;
  font-family: nyt-cheltenham, georgia, serif;
  font-size: 28px;
  line-height: 1.12;
}

.nyt-analysis-list-dek {
  max-width: 690px;
  margin: 10px 0 14px;
  color: #444;
  font-size: 17px;
  line-height: 1.4;
}

.nyt-analysis-list-meta {
  margin: 0;
  color: var(--nyt-gray);
  font-family: nyt-franklin, helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .nyt-site-header {
    padding: 0 16px;
  }

  .nyt-wordmark {
    font-size: 17px;
  }

  .nyt-article-shell {
    width: min(100% - 32px, 680px);
    padding-top: 40px;
  }

  .nyt-article-title {
    font-size: 36px;
  }

  .nyt-article-dek,
  .nyt-analysis-index .nyt-index-intro {
    font-size: 19px;
  }

  .nyt-article-body {
    font-size: 18px;
  }

  .nyt-analysis-list-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
