:root {
  --accent: #f36c21;
  --ink: #101010;
  --muted: #666;
  --line: #e5e5e5;
  --soft: #f6f6f4;
  --paper: #fff;
  --dark: #161616;
  --container: 1220px;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease), opacity 160ms var(--ease);
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-130%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 80;
}

.has-sticky-header .site-header {
  position: sticky;
  top: 0;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.masthead {
  border-bottom: 1px solid var(--line);
  transition: padding 180ms var(--ease);
}

.masthead__inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header.is-scrolled .masthead__inner {
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.brand img {
  max-height: 48px;
  width: auto;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #fff;
  border-left: 6px solid var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.brand--footer {
  font-size: 24px;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.share-block a,
.share-block button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), opacity 100ms var(--ease);
}

.button:active,
.share-block a:active,
.share-block button:active,
.icon-button:active {
  opacity: .82;
}

.button--accent {
  background: var(--accent);
  color: #fff;
}

.button--accent:hover {
  background: #d95710;
  color: #fff;
}

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--dark:hover {
  background: #333;
  color: #fff;
}

.button--outline {
  border-color: var(--ink);
}

.button--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), opacity 100ms var(--ease);
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.icon-lines,
.icon-lines::before,
.icon-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.icon-lines {
  position: relative;
}

.icon-lines::before,
.icon-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.icon-lines::before {
  top: -6px;
}

.icon-lines::after {
  top: 6px;
}

.menu-toggle {
  display: none;
}

.primary-nav {
  background: #fff;
}

.primary-nav__inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav__inner::-webkit-scrollbar {
  display: none;
}

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 750;
  color: #222;
}

.primary-nav__link:hover {
  border-bottom-color: var(--accent);
}

.search-panel {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.search-panel[hidden] {
  display: none;
}

.search-form {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 0 16px;
}

.search-suggestions {
  width: min(var(--container), calc(100% - 40px));
  margin: -4px auto 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.search-suggestions a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-suggestions a:last-child {
  border-bottom: 0;
}

.search-suggestions img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  background: var(--soft);
}

.breaking-strip {
  background: var(--dark);
  color: #fff;
}

.breaking-strip__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breaking-strip a {
  color: #fff;
}

.breaking-strip a:hover {
  color: #ffd4bd;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(243, 108, 33, .6);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(243, 108, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 108, 33, 0); }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .78fr) minmax(260px, .66fr);
  gap: 28px;
  padding: 34px 0 42px;
}

.lead-story {
  min-width: 0;
}

.lead-story__image,
.news-card__image,
.related-card__image,
.compact-card__image,
.news-preview__image {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.lead-story__image {
  aspect-ratio: 16 / 9;
  border-bottom: 5px solid var(--accent);
}

.lead-story__image img,
.news-card__image img,
.related-card__image img,
.compact-card__image img,
.news-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}

.lead-story:hover img,
.news-card:hover img,
.compact-card:hover img,
.news-preview:hover img,
.news-strip__item:hover img {
  transform: scale(1.025);
  opacity: .92;
}

.lead-story__body {
  padding-top: 16px;
}

.lead-story h1,
.lead-story h2 {
  margin: 8px 0 0;
  max-width: 920px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-story h2 {
  font-size: 38px;
}

.lead-story p,
.article-lead {
  margin: 12px 0 0;
  color: #3d3d3d;
  font-size: 18px;
  line-height: 1.48;
}

.secondary-stack {
  display: grid;
  gap: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compact-card__image {
  aspect-ratio: 4 / 3;
}

.compact-card h2 {
  margin: 5px 0 6px;
  font-size: 18px;
  line-height: 1.16;
}

.compact-card time {
  color: var(--muted);
  font-size: 12px;
}

.rail {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.rail__title,
.section-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
}

.rail__title {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranked-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.ranked-list li::before {
  content: counter(rank);
  color: var(--accent);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.ranked-list a {
  display: block;
  font-weight: 760;
  line-height: 1.18;
}

.ranked-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.news-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.news-card__category,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.news-card__category:hover {
  color: #c64d0d;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 4px solid var(--ink);
}

.section-header a {
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.news-block {
  padding: 34px 0;
}

.news-block__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  min-width: 0;
}

.news-card__image {
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
}

.news-card__title {
  margin: 7px 0 0;
  font-size: 22px;
  line-height: 1.14;
}

.news-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-card__title a:hover,
.compact-card h2 a:hover,
.lead-story h1 a:hover,
.lead-story h2 a:hover,
.news-preview h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 8px 0 0;
  color: #4b4b4b;
  font-size: 15px;
}

.news-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.news-strip__item {
  display: block;
  font-weight: 750;
  line-height: 1.18;
}

.news-strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 8px;
  background: var(--soft);
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-block: 16px;
  padding: 16px;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
  color: var(--muted);
  overflow: hidden;
}

.ad-slot--square {
  min-height: 250px;
}

.page-heading {
  padding: 42px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
}

.page-heading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.category-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 40px;
  padding: 36px 0;
}

.category-main,
.article-main {
  min-width: 0;
}

.preview-list {
  display: grid;
  gap: 0;
}

.news-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-preview__image {
  aspect-ratio: 4 / 3;
}

.news-preview h3 {
  margin: 7px 0;
  font-size: 24px;
  line-height: 1.16;
}

.news-preview p {
  margin: 0;
  color: #4f4f4f;
}

.text-list {
  display: grid;
}

.text-list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 730;
  line-height: 1.18;
}

.text-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.article-layout {
  align-items: start;
}

.article-main {
  max-width: 760px;
}

.article-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.03;
}

.article-meta {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.article-figure {
  margin: 28px 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.article-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-body {
  color: #202020;
  font-size: 18px;
  line-height: 1.62;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.25em;
}

.article-body h2,
.article-body h3 {
  margin: 1.4em 0 .55em;
  line-height: 1.18;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  padding-left: 20px;
  border-left: 4px solid var(--accent);
  color: #3d3d3d;
  font-size: 21px;
  line-height: 1.45;
}

.tts-block,
.share-block {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tts-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.tts-block[hidden] {
  display: none;
}

.tts-block h2 {
  margin: 0;
  font-size: 16px;
}

.tts-block__status {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tts-block__controls {
  display: flex;
  gap: 8px;
}

.tts-block.is-playing {
  border-color: rgba(243, 108, 33, .45);
  box-shadow: inset 4px 0 0 var(--accent);
}

.share-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.share-block span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.share-block a,
.share-block button {
  min-height: 32px;
  border-color: var(--line);
  font-size: 13px;
}

.share-block button {
  font: inherit;
}

.source-link {
  margin-top: 28px;
  font-weight: 750;
}

.search-form--page {
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
}

.static-page,
.error-page {
  max-width: 820px;
  padding: 48px 0 70px;
}

.static-page h1,
.error-page h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
}

.static-page__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 22px 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.contact-form label {
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
}

.contact-form textarea {
  min-height: 130px;
}

.form-success {
  padding: 10px 12px;
  border: 1px solid rgba(52, 143, 76, .35);
  background: #eef8f0;
  color: #1d6d34;
}

.error-page__actions,
.load-more {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.load-more__sentinel {
  width: 100%;
  height: 1px;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: #f4f4f2;
}

.site-footer__inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
  gap: 28px;
  padding: 42px 0 32px;
}

.site-footer__brand p {
  max-width: 330px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 3px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-links a {
  color: #333;
  font-size: 14px;
}

.site-footer__legal {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid #d9d9d7;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .home-hero,
  .category-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .home-hero .rail--top {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
  }

  .news-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-strip,
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .masthead__inner,
  .primary-nav__inner,
  .search-form,
  .search-suggestions,
  .site-footer__inner,
  .site-footer__legal {
    width: min(100% - 32px, var(--container));
  }

  .masthead__inner {
    min-height: 62px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .brand {
    font-size: 24px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .masthead__actions .button {
    display: none;
  }

  .primary-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms var(--ease);
  }

  .primary-nav.is-open {
    max-height: 420px;
  }

  .primary-nav__inner {
    display: grid;
    gap: 0;
    padding: 8px 0 12px;
  }

  .primary-nav__link {
    min-height: 38px;
    border-bottom: 1px solid var(--line);
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero,
  .category-layout,
  .article-layout,
  .news-block__grid,
  .news-strip,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 22px;
    padding-top: 24px;
  }

  .lead-story h1,
  .lead-story h2,
  .article-header h1 {
    font-size: 32px;
  }

  .secondary-stack {
    gap: 0;
  }

  .compact-card,
  .news-preview {
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .compact-card h2,
  .news-preview h3 {
    font-size: 17px;
  }

  .compact-card__image,
  .news-preview__image {
    aspect-ratio: 1 / 1;
  }

  .rail,
  .article-rail {
    border-left: 0;
    padding-left: 0;
  }

  .news-card__title a,
  .news-card__summary {
    -webkit-line-clamp: unset;
  }

  .article-body {
    font-size: 17px;
  }

  .tts-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .compact-card,
  .news-preview {
    grid-template-columns: 1fr;
  }

  .compact-card__image,
  .news-preview__image {
    aspect-ratio: 16 / 10;
  }

  .news-card__image {
    aspect-ratio: 16 / 10;
  }

  .breaking-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }
}
