@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff2?v=2') format('woff2'), url('../fonts/Gilroy-Regular.woff?v=2') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Medium.woff2?v=2') format('woff2'), url('../fonts/Gilroy-Medium.woff?v=2') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-SemiBold.woff2?v=2') format('woff2'), url('../fonts/Gilroy-SemiBold.woff?v=2') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #181818;
  --border: #262626;
  --border-strong: #3a3a3a;
  --text: #ececec;
  --muted: #b4b4b4;
  --dim: #8f8f8f;
  --red: #cf000f;
  --red-hover: #e3111f;
  --wrap: 1180px;
  --font: 'Gilroy', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: #fff; }

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

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .05em .35em;
  overflow-wrap: anywhere;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { display: block; width: 109px; height: 23px; }
.brand-tag {
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.category-bar { position: relative; border-bottom: 1px solid var(--border); background: var(--bg); }
.category-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(10, 10, 10, 0), var(--bg) 85%);
  pointer-events: none;
  transition: opacity .2s;
}
.category-bar[data-scroll-end]::after { opacity: 0; }
.category-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 4px;
  padding-bottom: 6px;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.category-nav a:hover { color: #fff; }
.category-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.header-cta { min-height: 38px; padding: 8px 16px; }
.cta-verb { margin-right: .4em; }

/* Page head */
.site-main { min-height: 60vh; }
.page-head { padding-top: 36px; padding-bottom: 8px; }
.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.page-number { color: var(--dim); font-size: .55em; font-weight: 500; margin-left: 8px; }
.page-lead { margin: 0; max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.page-count { color: var(--dim); }
.page-lead a { color: #fff; }
.section-title { font-size: 1.1rem; font-weight: 600; margin: 32px 0 8px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--dim); font-size: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 64px;
}
.side-col { display: flex; flex-direction: column; gap: 20px; }

@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .side-col { position: sticky; top: 132px; align-self: start; }
  .layout--article .side-col { position: static; }
}

/* Stories */
.tag {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(207, 0, 15, .7);
  background: rgba(207, 0, 15, .12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.tag::after { content: ''; position: absolute; inset: -9px -6px; }
.tag:hover { background: rgba(207, 0, 15, .28); }

.story { padding: 22px 0; border-bottom: 1px solid var(--border); }
.story-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.story-title a { text-decoration: none; }
.story-title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.story-summary { margin: 0 0 10px; color: var(--muted); }
.story-meta { margin: 0; color: var(--dim); font-size: 14px; }

.story--lead {
  padding: 28px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 8px;
}
.story--lead .story-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; }
.story--lead .story-summary { font-size: 1.05rem; color: var(--text); }

.story-grid { display: grid; gap: 0 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 64px; }
@media (min-width: 760px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.empty { color: var(--muted); padding: 40px 0; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 28px; }
.pagination-status { color: var(--dim); font-size: 14px; }

/* Side column */
.cta-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cta-card--quiet { background: transparent; }
.cta-kicker {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cta-title { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.cta-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.cta-card .cta-kicker { margin-bottom: 8px; color: var(--dim); font-size: 12px; }

.side-categories h2, .related-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.side-categories ul { list-style: none; margin: 0; padding: 0; }
.side-categories li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.side-categories a { text-decoration: none; }
.side-categories a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.side-categories span { color: var(--dim); font-size: 14px; }

.related .story { padding: 16px 0; }
.related .story-title { font-size: 1rem; }
.related .story-summary { display: none; }
.related-more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Article */
.article { max-width: 760px; }
.article-header { margin-bottom: 18px; }
.article-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 1.25rem + 2.2vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.article-meta { margin: 0; color: var(--dim); font-size: 15px; }
.article-meta a { color: var(--muted); }
.article-lead {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f5f5f5;
}
.article-body { font-size: 1.075rem; line-height: 1.75; }
.article-body h2 {
  position: relative;
  margin: 36px 0 12px;
  padding-top: 14px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.article-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--red);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; padding-left: 4px; }
.article-body ul > li::marker { color: var(--red); }
.article-body li ul { margin: 10px 0 0; }
.article-body li li { margin-bottom: 6px; color: var(--muted); }
.article-body strong { color: #fff; font-weight: 600; }

.source-box {
  margin: 36px 0 24px;
  padding: 20px 22px;
  background: var(--surface);
  border-left: 3px solid var(--red);
}
.source-label {
  margin: 0 0 6px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.source-link { font-size: 1.1rem; font-weight: 600; }
.source-link span { margin-left: 6px; color: var(--dim); font-size: .85rem; font-weight: 400; }
.disclosure { margin: 12px 0 0; color: var(--dim); font-size: 14px; line-height: 1.6; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.share-label { margin-right: 6px; color: var(--dim); font-size: 14px; }
.share-link {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.share-link:hover { color: #fff; border-color: #fff; }

.cta-inline { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .cta-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta-inline .cta-card { display: flex; flex-direction: column; }
.cta-inline .cta-card p:last-of-type { flex: 1; }
.cta-inline .btn { align-self: flex-start; }

/* About */
.prose { max-width: 760px; font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin: 32px 0 10px; font-size: 1.3rem; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose a { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #070707; color: var(--muted); font-size: 15px; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 48px;
  padding-bottom: 32px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 16px 0 0; max-width: 340px; color: var(--dim); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (min-width: 960px) {
  .site-header { border-bottom: 0; }
  .category-bar {
    position: sticky;
    top: 64px;
    z-index: 19;
    background: rgba(10, 10, 10, .94);
    backdrop-filter: saturate(140%) blur(8px);
  }
  .category-bar::after { display: none; }
}

@media (max-width: 959px), (pointer: coarse) {
  .category-nav a { padding: 12px 10px; }
  .header-cta { min-height: 44px; }
  .breadcrumb a, .related-more, .source-link, .footer-bottom a { display: inline-block; padding: 11px 0; margin: -11px 0; }
  .related-more { margin-top: 3px; }
  .side-categories li { padding: 0; align-items: center; }
  .side-categories a { flex: 1; padding: 10px 0; }
  .share-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; }
  .footer-links { gap: 0; }
  .footer-links h2 { margin-bottom: 6px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 959px) {
  .layout { gap: 32px; }
}

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-row { min-height: 56px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 92px; height: auto; }
  .brand-tag { font-size: 12px; padding-left: 10px; letter-spacing: .14em; }
  .header-cta { padding: 8px 12px; letter-spacing: .05em; }
  .page-head { padding-top: 24px; }
  .story--lead { padding: 20px; }
  .article-lead { font-size: 1.1rem; }
  .article-body { font-size: 1.03rem; }
  .share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .share-label { grid-column: 1 / -1; }
  .share-link { padding: 10px 4px; }
}

@media (max-width: 400px) {
  .cta-verb { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
