:root {
  --ink: #0b1220;
  --ink-2: #1d2939;
  --body: #273244;
  --muted: #667085;
  --muted-2: #98a2b3;
  --paper: #ffffff;
  --soft: #f2f4f7;
  --line: #e4e7ec;
  --accent: #f0442e;
  --accent-dark: #c92f1c;
  --accent-soft: #fff0ed;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.07);
  --shadow-lift: 0 22px 55px rgba(16, 24, 40, 0.12);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12rem, rgba(240, 68, 46, 0.09), transparent 34rem),
    var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(240, 68, 46, 0.4);
  text-underline-offset: 0.18em;
}

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

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

:focus-visible {
  outline: 3px solid rgba(240, 68, 46, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-links a {
  color: #fff;
  text-decoration: none;
}

.topbar-links a:hover {
  color: #ff8b79;
}

.topbar-tagline {
  color: #8d99aa;
  letter-spacing: 0.04em;
  text-transform: none;
}

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: linear-gradient(140deg, var(--accent), #ff8a3d);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(240, 68, 46, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-tagline {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(420px, 42vw);
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 0.58rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  outline: 0;
}

.header-search button {
  padding: 0.58rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--accent);
}

.mainnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(14px);
}

.mainnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.nav-toggle:hover {
  background: var(--soft);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--accent);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
  flex-shrink: 0;
  padding: 0.95rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.home-link {
  padding-left: 0;
}

.site-main {
  padding-block: 2rem 4.5rem;
}

/* Trending strip */
.trending-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.035);
}

.trending-label {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trending-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.trending-links::-webkit-scrollbar {
  display: none;
}

.trending-links a {
  position: relative;
  flex-shrink: 0;
  max-width: 28rem;
  overflow: hidden;
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-links a::after {
  position: absolute;
  top: 50%;
  right: -0.8rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7cdd6;
  content: "";
}

.trending-links a:last-child::after {
  display: none;
}

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

.trending-links span {
  margin-right: 0.4rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Covers */
.cover {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.cover.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.story-card:hover .cover.has-image img,
.hero-lead:hover .cover.has-image img {
  transform: scale(1.035);
}

.cover.hero {
  aspect-ratio: 16 / 9;
}

.cover.card {
  aspect-ratio: 16 / 10;
}

.cover.thumb {
  height: 100%;
  min-height: 152px;
}

.cover.article {
  aspect-ratio: 16 / 8;
  border-radius: 18px;
}

.cover-orbit,
.cover-grid,
.cover-glyph,
.cover-caption {
  position: absolute;
  pointer-events: none;
}

.cover-orbit {
  top: -35%;
  right: -18%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 70px rgba(255, 255, 255, 0.025);
}

.cover-grid {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(130deg, transparent 20%, #000 100%);
}

.cover-glyph {
  left: 6%;
  bottom: 4%;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-shadow: 0 9px 36px rgba(0, 0, 0, 0.22);
}

.cover.thumb .cover-glyph {
  font-size: 2.2rem;
}

.cover-caption {
  top: 1rem;
  left: 1rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.28);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Tone palette */
.tone-blue {
  --tone: #2f6bff;
  --tone-dark: #173ea5;
  --tone-soft: #eef3ff;
  --tone-ink: #173ea5;
}

.tone-teal {
  --tone: #0d9488;
  --tone-dark: #0f5f5a;
  --tone-soft: #e6f7f5;
  --tone-ink: #0b5f5a;
}

.tone-violet {
  --tone: #7c3aed;
  --tone-dark: #4c1d95;
  --tone-soft: #f3edff;
  --tone-ink: #5b21b6;
}

.tone-amber {
  --tone: #f59e0b;
  --tone-dark: #92400e;
  --tone-soft: #fff6e5;
  --tone-ink: #92400e;
}

.tone-rose {
  --tone: #e11d48;
  --tone-dark: #881337;
  --tone-soft: #ffeef2;
  --tone-ink: #9f1239;
}

.tone-slate {
  --tone: #64748b;
  --tone-dark: #1e293b;
  --tone-soft: #f1f5f9;
  --tone-ink: #334155;
}

.cover.tone-blue,
.cover.tone-teal,
.cover.tone-violet,
.cover.tone-amber,
.cover.tone-rose,
.cover.tone-slate {
  background: linear-gradient(135deg, #0b1220 0%, var(--tone-dark) 58%, var(--tone) 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--tone-soft, #f1f5f9);
  color: var(--tone-ink, #334155);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.chip:hover {
  color: var(--tone-ink, #334155);
  filter: brightness(0.96);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.button-ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: #c7cdd6;
  color: var(--ink);
}

/* Hero mosaic */
.hero-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 1.25rem;
  margin-bottom: 2.7rem;
}

.hero-lead {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media {
  display: block;
  text-decoration: none;
}

.hero-copy {
  padding: 1.35rem 1.5rem 1.5rem;
}

.hero-copy h2 {
  margin: 0.6rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero-copy h2 a {
  text-decoration: none;
}

.hero-copy h2 a:hover {
  color: var(--accent);
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-side-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
}

.hero-side-media {
  display: block;
  text-decoration: none;
}

.hero-side-media .cover.thumb {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 8;
}

.hero-side-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.1rem 1.15rem;
}

.hero-side-copy h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.hero-side-copy h3 a {
  text-decoration: none;
}

.hero-side-copy h3 a:hover {
  color: var(--accent);
}

.hero-side-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 120% -30%, rgba(240, 68, 46, 0.4), transparent 18rem),
    var(--ink);
  color: #fff;
}

.hero-side-note .kicker {
  color: #ff8b79;
}

.hero-side-note h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
}

.hero-side-note a {
  color: #ffb4a7;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Meta, section headings */
.story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dot {
  color: #c7cdd6;
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-page {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-count {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Main content grid */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 2rem;
  align-items: start;
}

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

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.story-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.story-card-media {
  display: block;
  text-decoration: none;
}

.story-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.05rem 1.15rem 1.15rem;
}

.story-card-body h3 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.17;
}

.story-card-body h3 a {
  text-decoration: none;
}

.story-card-body h3 a:hover {
  color: var(--accent);
}

.story-card-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-card-body .story-meta {
  margin-top: auto;
  padding-top: 0.85rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.side-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.side-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.side-head span,
.side-head a {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.most-read {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.most-read li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f2f5;
}

.most-read li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rank {
  color: #c2c9d2;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.most-read-title {
  display: block;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.most-read-title:hover {
  color: var(--accent);
}

.most-read-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafbfc;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.tag span {
  color: #aeb6c2;
  font-size: 0.6rem;
}

.tag:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.side-feature {
  background:
    radial-gradient(circle at 115% -12%, rgba(240, 68, 46, 0.45), transparent 16rem),
    var(--ink);
  color: #fff;
}

.side-feature h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.side-feature p:not(.kicker) {
  margin: 0 0 1rem;
  color: #b9c2cf;
  font-size: 0.83rem;
  line-height: 1.55;
}

.side-feature .kicker {
  color: #ff8b79;
}

.side-feature .button-primary {
  width: 100%;
}

.side-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Topic tiles */
.topic-strip {
  margin-top: 3rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.topic-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  overflow: hidden;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b1220 0%, var(--tone-dark) 70%, var(--tone) 100%);
  color: #fff;
  text-decoration: none;
}

.topic-tile::after {
  position: absolute;
  top: -55%;
  right: -25%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.04), 0 0 0 55px rgba(255, 255, 255, 0.025);
  content: "";
}

.topic-tile:hover {
  color: #fff;
  transform: translateY(-2px);
}

.topic-tile-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-tile strong {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.topic-tile > span:last-child {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-numbers {
  display: flex;
  gap: 0.2rem;
}

.page-number,
.page-prev,
.page-next {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding-inline: 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.page-number:hover,
.page-prev:hover,
.page-next:hover {
  background: var(--paper);
  color: var(--ink);
}

.page-number.is-current {
  background: var(--ink);
  color: #fff;
}

.is-disabled {
  opacity: 0.35;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 2rem;
  align-items: start;
}

.article {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.article-head h1 {
  margin: 0.65rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.article-lede {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 850;
}

.article-byline strong {
  display: block;
  font-size: 0.86rem;
}

.article-byline span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.article-media {
  margin: 1.6rem 0 2rem;
}

.prose {
  color: var(--body);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.8em 0 0.55em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.prose h2 {
  font-size: 1.75em;
}

.prose h3 {
  font-size: 1.4em;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--accent);
  color: #3b475a;
  font-size: 1.08em;
  font-style: italic;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  background: #eef0f3;
  color: #b42318;
  font-family: var(--mono);
  font-size: 0.84em;
}

.prose pre {
  margin: 1.7em 0;
  padding: 1.15rem 1.3rem;
  overflow-x: auto;
  border-radius: 14px;
  background: #0e1626;
  color: #e6edf7;
  box-shadow: var(--shadow);
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.65;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.article-footer .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.related-section {
  margin-top: 3rem;
}

/* Page heroes */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 68, 46, 0.35), transparent 28rem),
    linear-gradient(135deg, #0b1220, #17243a);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero::after {
  position: absolute;
  top: -55%;
  right: -8%;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 105px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.page-hero .kicker {
  color: #ff8b79;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.page-lede {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0.9rem 0 0;
  color: #c4cdda;
  font-size: 1rem;
}

.page-count {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.33rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #dce3ed;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.search-form-large {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  width: min(720px, 100%);
  margin-top: 1.5rem;
}

.search-form-large input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.search-form-large input::placeholder {
  color: #9eabba;
}

.search-form-large input:focus {
  outline: 2px solid #ff8b79;
  outline-offset: 2px;
}

.search-suggestions {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.search-suggestions .tag-cloud {
  margin-top: 0.8rem;
}

/* Empty/error states */
.empty-state {
  padding: 4.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state.compact {
  padding: 3rem 1rem;
  box-shadow: none;
}

.empty-state h1,
.empty-state h2 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.empty-state p {
  color: var(--muted);
}

.empty-state .button {
  margin-top: 0.8rem;
}

.error-page {
  max-width: 820px;
  margin: 3rem auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.error-page h1 {
  margin: 0.3rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.error-page > p:not(.kicker) {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.4rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 68, 46, 0.18), transparent 28rem),
    var(--ink);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 340px;
  margin: 1rem 0;
  color: #98a2b3;
  font-size: 0.84rem;
  line-height: 1.6;
}

.brand-inverse {
  color: #fff;
}

.brand-inverse:hover {
  color: #fff;
}

.brand-inverse .brand-tagline {
  color: #98a2b3;
}

.footer-rss {
  color: #ff8b79;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-col h3 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.25rem 0;
  color: #98a2b3;
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-col > a:hover {
  color: #fff;
}

.footer-col > a span {
  color: #667085;
  font-size: 0.65rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-tags a {
  padding: 0.27rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #98a2b3;
  font-size: 0.66rem;
  text-decoration: none;
}

.footer-tags a:hover {
  border-color: rgba(255, 139, 121, 0.4);
  color: #fff;
}

.footer-muted {
  color: #667085;
  font-size: 0.78rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #667085;
  font-size: 0.7rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero-mosaic {
    grid-template-columns: 1fr;
  }

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

  .hero-side-note {
    grid-column: span 2;
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-feature {
    grid-column: span 2;
  }

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

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

@media (max-width: 760px) {
  .wrap {
    width: min(1240px, calc(100% - 1.5rem));
  }

  .topbar-tagline {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }

  .masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  html.js .nav-toggle {
    display: inline-grid;
  }

  html.js .mainnav {
    display: none;
  }

  html.js .mainnav.is-open {
    display: block;
  }

  html.js .mainnav-inner {
    display: block;
  }

  html.js .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.45rem;
    overflow-x: visible;
  }

  html.js .nav-links .nav-link {
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line);
  }

  html.js .nav-links .nav-link.is-active {
    border-bottom-color: var(--accent);
  }

  .site-main {
    padding-block: 1.25rem 3rem;
  }

  .trending-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }

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

  .hero-side-note {
    grid-column: auto;
  }

  .story-grid,
  .story-grid-three {
    grid-template-columns: 1fr;
  }

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

  .side-feature {
    grid-column: auto;
  }

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

  .topic-tile {
    min-height: 130px;
  }

  .article {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .article-head h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .search-form-large {
    flex-direction: column;
  }

  .search-form-large .button {
    width: 100%;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

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

  .footer-brand {
    grid-column: auto;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .hero-copy {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }
}
