@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,600;6..72,700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Sans+Condensed:wght@400;500;600&display=swap");

:root {
  --ch-ink: #141413;
  --ch-paper: #f8f5ef;
  --ch-rule: #bdb5a8;
  --ch-muted: #5d574b;
  --ch-elevated: #fdfcf8;
}

.ch-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 90;
  background: rgba(20, 20, 19, 0.12);
  transform: translateZ(0);
}

.ch-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: var(--ch-ink);
  transition: transform 100ms linear;
}

.ch-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--ch-paper) 85%, white 15%);
  backdrop-filter: blur(2px);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ch-sticky-nav.is-scrolled {
  border-color: var(--ch-rule);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.ch-sticky-nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 26px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.ch-sticky-nav__links {
  display: inline-flex;
  gap: 14px;
}

.ch-sticky-nav__links a {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  text-decoration: none;
}

.ch-sticky-nav__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ch-sticky-nav__title-wrap {
  min-width: 0;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
}

.ch-sticky-nav__category {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.61rem;
  color: var(--ch-muted);
  white-space: nowrap;
}

.ch-sticky-nav__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.01rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-sticky-nav.is-condensed .ch-sticky-nav__category {
  display: none;
}

.ch-sticky-nav__date {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: var(--ch-muted);
}

.ch-article-shell {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.ch-article {
  border-top: 2px solid var(--ch-ink);
  border-bottom: 2px solid var(--ch-ink);
  background: var(--ch-elevated);
  padding: 28px clamp(18px, 3vw, 44px) 38px;
}

.ch-article-header {
  max-width: 76ch;
  margin: 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ch-rule);
}

.ch-article-header__category {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--ch-muted);
}

.ch-article-header__title {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.05rem, 3.45vw, 3.05rem);
  line-height: 0.99;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ch-article-header__dek {
  margin: 12px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.12rem, 2vw, 1.33rem);
  line-height: 1.3;
  max-width: 58ch;
  color: color-mix(in srgb, var(--ch-ink) 74%, var(--ch-muted));
}

.ch-article-header__meta {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.67rem;
  color: var(--ch-muted);
}

.ch-hero {
  margin: 22px auto 18px;
  max-width: min(1080px, 100%);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ch-rule);
}

.ch-hero img {
  width: 100%;
  height: min(46vw, 440px);
  min-height: 220px;
  object-fit: cover;
  display: block;
  border: 1px solid color-mix(in srgb, var(--ch-rule) 75%, white 25%);
}

.ch-hero figcaption {
  margin-top: 8px;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ch-muted);
}

.ch-article-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 52px);
}

.ch-article-rail {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.ch-article-rail__issue {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ch-rule);
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.62rem;
  color: var(--ch-muted);
}

.ch-article-rail a {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.63rem;
  text-decoration: none;
}

.ch-article-rail a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ch-article-body {
  max-width: 69ch;
}

.ch-article-body p {
  margin: 0 0 1.26rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.13rem, 1.72vw, 1.29rem);
  line-height: 1.48;
  letter-spacing: -0.002em;
  color: var(--ch-ink);
}

.ch-article-body .is-dropcap::first-letter {
  float: left;
  margin-right: 10px;
  margin-top: 2px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.82;
}

.ch-pullquote {
  margin: 1.9rem 0 2rem;
  padding: 0.65rem 1rem 0.7rem 1.15rem;
  border-left: 3px solid var(--ch-ink);
  background: color-mix(in srgb, var(--ch-paper) 58%, white 42%);
}

.ch-reveal-ready .ch-pullquote {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.ch-reveal-ready .ch-pullquote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ch-pullquote blockquote {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
  line-height: 1.17;
  letter-spacing: -0.01em;
}

.ch-pullquote cite {
  margin-top: 0.52rem;
  display: block;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ch-muted);
  font-style: normal;
}

.ch-sources,
.ch-related {
  max-width: 860px;
  margin: 30px auto 0;
  border-top: 1px solid var(--ch-rule);
  padding-top: 12px;
}

.ch-sources h2,
.ch-related h2 {
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ch-sources ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.ch-sources li {
  margin-bottom: 0.5rem;
}

.ch-sources a {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  line-height: 1.36;
  text-decoration-thickness: 1px;
}

.ch-related__grid {
  margin-top: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ch-related__card {
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--ch-rule) 80%, white 20%);
  background: #fff;
  padding: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ch-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.ch-related__card span {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.ch-related__card h3 {
  margin: 6px 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.12;
}

.ch-related__card p {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ch-ink) 78%, var(--ch-muted));
}

.ch-floating-actions {
  position: fixed;
  right: clamp(10px, 1.7vw, 20px);
  bottom: 20px;
  display: grid;
  gap: 7px;
  z-index: 75;
}

.ch-floating-actions button {
  border: 1px solid var(--ch-rule);
  background: rgba(253, 252, 248, 0.95);
  color: var(--ch-ink);
  padding: 8px 10px;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  min-width: 70px;
  cursor: pointer;
}

.ch-floating-actions button.is-active,
.ch-floating-actions button.is-visible {
  border-color: var(--ch-ink);
  background: #fff;
}

.ch-floating-actions .ch-top-action {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ch-floating-actions .ch-top-action.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ch-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease var(--reveal-delay, 0ms),
    transform 420ms ease var(--reveal-delay, 0ms);
}

.ch-reveal-ready [data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .ch-sticky-nav__inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 16px;
  }

  .ch-sticky-nav__date {
    display: none;
  }

  .ch-article-shell {
    width: min(1200px, calc(100vw - 1.2rem));
    padding-top: 14px;
  }

  .ch-article {
    padding: 20px 14px 30px;
  }

  .ch-article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ch-article-rail {
    position: static;
    border-top: 1px solid var(--ch-rule);
    border-bottom: 1px solid var(--ch-rule);
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .ch-article-rail__issue {
    border: none;
    padding: 0;
    flex: 1 1 100%;
  }

  .ch-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ch-sticky-nav__links {
    gap: 10px;
  }

  .ch-sticky-nav__title-wrap {
    justify-content: flex-start;
  }

  .ch-sticky-nav__title {
    font-size: 0.93rem;
  }

  .ch-article-header__title {
    line-height: 0.97;
  }

  .ch-article-body p {
    line-height: 1.42;
  }

  .ch-floating-actions {
    inset: auto 0 10px;
    right: auto;
    justify-content: center;
    display: flex;
    padding: 0 12px;
    gap: 8px;
  }

  .ch-floating-actions button {
    min-width: 86px;
    background: rgba(253, 252, 248, 0.98);
  }
}
