@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,700;1,6..72,300;1,6..72,400&family=DM+Sans:wght@300;400;500&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg:        #090908;
  --bg-2:      #111110;
  --bg-3:      #191917;
  --text:      #ddd9cf;
  --text-dim:  #7a766d;
  --text-faint: #3a3830;
  --accent:    #c0281e;
  --accent-dim: #7a1810;
  --border:    #222220;
  --border-2:  #2e2e2b;
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Courier Prime', monospace;
}

html { scroll-behavior: smooth; }

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

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

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

/* ─── MASTHEAD ─────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.logo span {
  color: var(--accent);
}

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.5;
}

.masthead-nav {
  display: flex;
  gap: 0;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 18px 12px 0;
  margin-right: 18px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* ─── TICKER ────────────────────────────────── */

.ticker {
  background: var(--accent);
  padding: 6px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 80px;
  animation: scroll-ticker 35s linear infinite;
  white-space: nowrap;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-right: 20px;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ticker-item::after {
  content: '//';
  color: rgba(255,255,255,0.3);
}

@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── LAYOUT ─────────────────────────────────── */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-wrapper {
  min-height: 100vh;
}

/* ─── INDEX HERO ──────────────────────────────── */

.hero {
  border-bottom: 1px solid var(--border);
  padding: 48px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: start;
}

.hero-main {
  padding-right: 48px;
  border-right: 1px solid var(--border);
  padding-bottom: 48px;
}

.hero-sidebar {
  padding-left: 40px;
  padding-bottom: 48px;
}

.hero-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-deck {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-byline .author { color: var(--text); }

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(9,9,8,0.6));
  pointer-events: none;
}

.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s;
}

.hero-img:hover {
  filter: grayscale(0%) contrast(1.05);
}

/* sidebar stories */
.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.sidebar-story {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-story:last-child { border-bottom: none; }

.sidebar-story:hover .ss-title { color: var(--accent); }

.ss-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.ss-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.15s;
}

.ss-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* ─── SECTION HEADER ─────────────────────────── */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-more {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s;
}
.section-more:hover { color: var(--accent); }

/* ─── NEWS GRID ──────────────────────────────── */

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

.news-card {
  padding: 0 32px 40px 0;
  border-right: 1px solid var(--border);
}

.news-card:last-child,
.news-card:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.news-card:nth-child(3n+2) {
  padding-left: 32px;
}

.news-card:nth-child(3n) {
  padding-left: 32px;
}

.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.35s, transform 0.35s;
}

.news-card:hover .card-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.card-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.news-card:hover .card-title { color: var(--accent); }

.card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

/* ─── WIDE CARD (featured) ──────────────────── */

.news-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-right: 32px;
  border-right: 1px solid var(--border);
  padding-bottom: 40px;
}

.news-wide:nth-child(3n) { border-right: none; padding-right: 0; }

.wide-content { display: flex; flex-direction: column; justify-content: center; }

.wide-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.news-wide:hover .wide-title { color: var(--accent); }

/* ─── DIVIDER SECTION ───────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ─── OPINION / ANALYSIS STRIP ──────────────── */

.opinion-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin-bottom: 48px;
}

.opinion-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.opinion-label {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1;
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.opinion-item {
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.opinion-item:last-child {
  border-right: none;
  padding-right: 0;
}

.op-author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.op-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.15s;
  cursor: pointer;
}

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

/* ─── FOOTER ──────────────────────────────── */

footer {
  border-top: 1px solid var(--border-2);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

/* ─── ARTICLE PAGE ──────────────────────────── */

.article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

.article-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.article-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.article-deck {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 28px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 36px;
}

.article-meta strong { color: var(--text); }

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(10%);
  margin-bottom: 12px;
}

.article-img-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 40px;
  padding-left: 2px;
}

.article-body {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text);
}

.article-body p { margin-bottom: 28px; }

.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin: 48px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
}

.article-body blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
}

.article-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  padding: 5px 10px;
  transition: border-color 0.15s, color 0.15s;
}

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

/* ─── RELATED ARTICLES ──────────────────────── */

.related {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.related-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

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

.related-card .rc-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.related-card .rc-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.related-card:hover .rc-title { color: var(--accent); }

.related-card .rc-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* ─── BACK LINK ─────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

/* ─── SCROLL INDICATOR ─────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── PLACEHOLDER IMAGES (CSS art) ─────────── */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); }
  .hero-sidebar { padding-left: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-wide { grid-column: span 2; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .opinion-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .masthead-top { padding: 14px 20px; }
  .masthead-nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-wrapper { padding: 32px 20px 60px; }
  .back-link { padding: 14px 20px; }
}

/* ─── FADE IN ─────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.15s; opacity: 0; }
.fade-up-3 { animation-delay: 0.25s; opacity: 0; }
.fade-up-4 { animation-delay: 0.35s; opacity: 0; }
