:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #e8edf1;
  --text: #12161d;
  --muted: #5a6472;
  --line: #d7dde4;
  --brand: #156de8;
  --brand-strong: #0b55bf;
  --accent: #1f8cff;
  --header: #07090c;
  --header-text: #ffffff;
  --shadow: 0 18px 45px rgba(20, 28, 40, 0.12);
  --radius: 8px;
  --content: min(1440px, calc(100vw - 96px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418;
  --surface: #181d23;
  --surface-soft: #222933;
  --text: #f1f5f9;
  --muted: #b2bdc9;
  --line: #2c3440;
  --brand: #2f95ff;
  --brand-strong: #0b4da2;
  --accent: #58c7ff;
  --header: #080a0d;
  --header-text: #f8fafc;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.sr-only,
.skip-link {
  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:focus {
  z-index: 50;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--header);
  color: var(--header-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar {
  position: relative;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: clamp(196px, 17vw, 252px);
  height: auto;
  object-fit: contain;
}

.search svg,
.social-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-nav svg {
  fill: currentColor;
  stroke: none;
}

.search {
  display: grid;
  width: 42px;
  grid-template-columns: 42px 0fr;
  align-items: center;
  gap: 0;
  padding: 0;
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: width 220ms ease, grid-template-columns 220ms ease, background 180ms ease, border-color 180ms ease;
}

.search.is-open {
  width: min(320px, 34vw);
  grid-template-columns: 42px 1fr;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.search-trigger {
  display: grid;
  width: 42px;
  height: 40px;
  place-items: center;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.search input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.search.is-open input {
  opacity: 1;
  pointer-events: auto;
}

.search input::placeholder {
  color: #aab3bf;
}

.social-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.social-nav a,
.menu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-nav a:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: 14px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.theme-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-toggle .moon,
[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  border: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.category-nav {
  min-width: 0;
}

.nav-row {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-row {
  width: var(--content);
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 54px);
  padding: 16px 0 15px;
}

.category-nav a {
  position: relative;
  color: #b9c0ca;
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav a.is-active {
  color: #fff;
}

.category-nav a::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--brand);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.category-nav a:hover::after,
.category-nav a:focus-visible::after,
.category-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  padding: 24px 0 48px;
}

.hero-grid {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
  padding-bottom: 50px;
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  isolation: isolate;
  background: #0a0d11;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: box-shadow 220ms ease, transform 220ms ease, filter 220ms ease;
}

.story-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: radial-gradient(circle at 50% 45%, rgba(6, 17, 31, 0) 34%, rgba(6, 17, 31, 0.34) 100%);
  box-shadow: inset 0 0 46px rgba(5, 18, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.story-card > a {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
}

.story-card img,
.news-card img {
  transform-origin: center;
  transition: transform 360ms ease, filter 360ms ease;
  will-change: transform;
}

.story-card img {
  position: absolute;
  inset: 0;
}

.story-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 12%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
  transition: background 260ms ease;
}

.story-card:hover,
.story-card:focus-within {
  filter: drop-shadow(0 2px 0 rgba(88, 199, 255, 0.18));
  box-shadow: 0 12px 32px rgba(5, 18, 42, 0.34);
  transform: translateY(4px) scale(0.986);
}

.story-card:hover::before,
.story-card:focus-within::before {
  opacity: 1;
}

.story-card:hover::after,
.story-card:focus-within::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.story-card:hover img,
.story-card:focus-within img {
  filter: saturate(1.12) contrast(1.1) brightness(0.84);
  transform: scale(1.23) translateY(11px);
}

.lead-card {
  min-height: clamp(360px, 48vw, 520px);
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-stack .mini-card {
  min-height: calc((clamp(360px, 48vw, 520px) - 16px) / 2);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.hero-arrow svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-overlay {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: #fff;
  transform-origin: left bottom;
  transition: transform 260ms ease;
}

.story-card:hover .story-overlay,
.story-card:focus-within .story-overlay {
  transform: translateY(5px) scale(1.025);
}

.tag,
.category,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 9px;
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px rgba(88, 199, 255, 0.18);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lead-card h2 {
  max-width: 780px;
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead-card p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.mini-card h2 {
  margin: 10px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.25;
  letter-spacing: 0;
}

.content-columns {
  width: var(--content);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  align-items: start;
  gap: 30px;
}

.latest-section,
.popular-section {
  min-width: 0;
}

.popular-section {
  position: sticky;
  top: 150px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(31, 140, 255, 0.08), rgba(31, 140, 255, 0.02)),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(5, 18, 42, 0.08);
}

.popular-section .section-heading {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.popular-section .section-heading::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 76px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
}

.popular-section h2 {
  font-size: clamp(22px, 2vw, 28px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-context {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-link {
  color: var(--brand-strong);
  font-weight: 900;
}

[data-theme="dark"] .section-link {
  color: var(--accent);
}

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

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
  border-radius: var(--radius);
  transition: transform 220ms ease, filter 220ms ease;
}

.news-card img {
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.news-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  transition: box-shadow 220ms ease;
}

.news-image-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(47, 149, 255, 0) 30%, rgba(6, 17, 31, 0.16) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.news-image-link::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  box-shadow: inset 0 0 34px rgba(5, 18, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.news-card:hover,
.news-card:focus-within {
  filter: drop-shadow(0 2px 0 rgba(88, 199, 255, 0.14));
  transform: translateY(4px) scale(0.986);
}

.news-card:hover .news-image-link,
.news-card:focus-within .news-image-link {
  box-shadow: 0 22px 46px rgba(5, 18, 42, 0.26);
}

.news-card:hover .news-image-link::after,
.news-card:focus-within .news-image-link::after {
  opacity: 1;
}

.news-card:hover .news-image-link::before,
.news-card:focus-within .news-image-link::before {
  opacity: 1;
}

.news-card:hover img,
.news-card:focus-within img {
  filter: saturate(1.12) contrast(1.1) brightness(0.86);
  transform: scale(1.22) translateY(10px);
}

.news-card h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  transform-origin: left center;
  transition: color 200ms ease, transform 220ms ease;
}

.news-card:hover h3,
.news-card:focus-within h3 {
  color: var(--brand);
  transform: scale(1.025);
}

.news-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.popular-list {
  display: grid;
  gap: 14px;
}

.popular-card {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent));
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.popular-card:hover,
.popular-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: 0 14px 28px rgba(5, 18, 42, 0.12);
  transform: translateX(3px);
}

.popular-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 8px;
  font-size: 14px;
  font-weight: 950;
}

.popular-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: var(--surface-soft);
}

.popular-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.popular-card:hover .popular-image-link img,
.popular-card:focus-within .popular-image-link img {
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.08);
}

.popular-card h3 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: 0;
}

.reader-strip {
  width: var(--content);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reader-strip h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}

.reader-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.article-page {
  padding: 28px 0 54px;
}

.article-shell {
  width: var(--content);
  margin: 0 auto;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(31, 140, 255, 0.1), rgba(88, 199, 255, 0.03)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.article-hero h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-hero figure {
  margin: 0;
}

.article-hero figure img {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-hero figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 42px;
}

.article-aside {
  position: sticky;
  top: 156px;
  align-self: start;
}

.article-aside > div {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-aside h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.article-aside a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.article-content {
  min-width: 0;
}

.article-content .article-lead {
  margin-top: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 700;
}

.article-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-content p {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 18px;
  line-height: 1.78;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-content blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 900;
}

.article-related {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.related-grid a {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.related-grid a:hover {
  border-color: var(--accent);
}

.site-footer {
  margin-top: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 199, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(21, 109, 232, 0.24), transparent 30%),
    linear-gradient(135deg, #06152f 0%, #0b2f71 45%, #08214d 100%);
}

.footer-inner {
  width: min(1000px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-bottom: 34px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-brand img {
  width: 230px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(34px, 7vw, 96px);
  padding: 38px 0 30px;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-grid a,
.footer-bottom a {
  color: #fff;
  font-weight: 700;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 16px;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-grid svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .social-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .mini-card {
    min-height: 210px;
  }

  .side-stack .mini-card {
    min-height: 230px;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .popular-section {
    position: static;
  }

  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 24px, 1440px);
  }

  .topbar {
    min-height: 68px;
    grid-template-columns: 1fr auto auto;
    justify-content: space-between;
    gap: 10px;
  }

  .brand-logo {
    width: 176px;
  }

  .search {
    justify-self: end;
  }

  .search.is-open {
    width: 100%;
  }

  .nav-row {
    width: var(--content);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .theme-toggle {
    margin-left: 4px;
  }

  .menu-toggle {
    display: grid;
  }

  .category-nav {
    position: fixed;
    top: 128px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .category-nav a {
    color: var(--text);
    padding: 13px 12px;
    border-radius: 6px;
  }

  .category-nav a:hover,
  .category-nav a.is-active {
    color: var(--text);
    background: var(--surface-soft);
  }

  .category-nav a::after {
    display: none;
  }

  body.menu-open .category-nav {
    display: flex;
  }

  main {
    padding-top: 18px;
  }

  .lead-card {
    min-height: 430px;
  }

  .side-stack,
  .news-grid,
  .reader-strip {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 210px;
  }

  .side-stack .mini-card {
    min-height: 220px;
  }

  .story-overlay {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .lead-card h2 {
    font-size: 31px;
  }

  .lead-card p {
    font-size: 16px;
  }

  .news-card {
    grid-template-columns: 132px 1fr;
    grid-template-rows: auto;
  }

  .news-image-link {
    aspect-ratio: 1;
  }

  .news-card img {
    aspect-ratio: 1;
  }

  .footer-inner {
    width: min(100vw - 28px, 1000px);
    padding: 32px 0 30px;
  }

  .footer-brand {
    justify-items: start;
    text-align: left;
  }

  .footer-brand img {
    width: 205px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  .brand-logo {
    width: 158px;
  }

  .lead-card {
    min-height: 390px;
  }

  .lead-card h2 {
    font-size: 27px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .popular-card {
    grid-template-columns: auto 84px 1fr;
  }

  .popular-card h3 {
    font-size: 14px;
  }

  .news-image-link {
    aspect-ratio: 16 / 9;
  }

  .news-card img {
    aspect-ratio: 16 / 9;
  }

  .article-hero {
    padding: 20px;
  }

  .article-content .article-lead {
    font-size: 19px;
  }

  .article-content p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card,
  .story-card::before,
  .story-card img,
  .story-overlay,
  .news-card,
  .news-card h3,
  .news-card img,
  .news-image-link::before,
  .news-image-link::after,
  .news-image-link {
    transition: none;
  }

  .story-card:hover,
  .story-card:focus-within,
  .news-card:hover,
  .news-card:focus-within,
  .story-card:hover img,
  .story-card:focus-within img,
  .story-card:hover .story-overlay,
  .story-card:focus-within .story-overlay,
  .news-card:hover img,
  .news-card:focus-within img,
  .news-card:hover h3,
  .news-card:focus-within h3 {
    transform: none;
  }
}
