
/* ── Variables ──────────────────────────────────────────── */
:root {
 font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg:        #0c0e14;
  --bg-2:      #12151e;
  --bg-3:      #181c28;
  --bg-card:   #161921;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.12);

  --accent:    #e84b4b;
  --accent-2:  #e84b4b;
  --red:       #e74c3c;
  --blue:      #3b82f6;
  --green:     #10b981;

  --text:      #e8e8e0;
  --text-2:    #a8a89e;
  --text-3:    #6e6e66;
  --text-inv:  #0c0e14;

  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'Source Serif 4', Georgia, serif;
  --ff-mono:   'Space Mono', monospace;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.7);

  --nav-h:     64px;
  --ticker-h:  40px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-head); font-weight: 700; line-height: 1.25; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1em; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.font-mono   { font-family: var(--ff-mono); }
.uppercase   { text-transform: uppercase; letter-spacing: .1em; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.gap-2       { gap: .5rem; }
.gap-4       { gap: 1rem; }
.mt-4        { margin-top: 1rem; }
.mt-8        { margin-top: 2rem; }
.mb-4        { margin-bottom: 1rem; }
.w-full      { width: 100%; }

/* ── Breaking Ticker ────────────────────────────────────── */
.ticker {
  height: var(--ticker-h);
  background: var(--accent);
  color: var(--text-inv);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 700;
  position: relative;
  z-index: 100;
}
.ticker__label {
  flex-shrink: 0;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .12em;
  font-size: .7rem;
}
.ticker__label::after {
  content: '';
  position: absolute;
  left: calc(var(--ticker-label-w, 100px));
  top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.ticker__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker__inner {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker__inner:hover { animation-play-state: paused; }
.ticker__item { padding: 0 48px; }
.ticker__item a { color: inherit; }
.ticker__item a:hover { text-decoration: underline; }
.ticker__dot { opacity: .4; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  height: var(--nav-h);
  background: rgba(12, 14, 20, .95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 32px; height: 100%; width: 100%; }
.navbar__logo {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -.02em;
  flex-shrink: 0;
  position: relative;
}
.navbar__logo span { color: var(--accent); }
.navbar__logo::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.navbar__logo:hover::after { transform: scaleX(1); }

.navbar__nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.navbar__nav a {
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  position: relative;
}
.navbar__nav a:hover, .navbar__nav a.active { color: #fff; }
.navbar__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Language switcher */
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  padding: 4px 8px;
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-radius: var(--radius);
  transition: all .2s;
  border: 1px solid transparent;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-2); }
.lang-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(232,184,75,.08); }

/* Search toggle */
.search-btn {
  padding: 8px;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color .2s;
}
.search-btn:hover { color: #fff; }
.search-btn svg { width: 18px; height: 18px; }

/* Theme toggle */
.theme-btn {
  padding: 8px;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color .2s;
}
.theme-btn:hover { color: var(--accent); }

/* Mobile menu */
.hamburger {
  display: none;
  padding: 8px;
  color: var(--text-2);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: all .3s ease;
  border-radius: 1px;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,14,20,.96);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay .container { width: 100%; }
.search-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  color: var(--text-2);
  transition: color .2s;
}
.search-close:hover { color: #fff; }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  color: #fff;
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 4vw, 3rem);
  padding: 16px 0;
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-3); }

/* ── Hero Carousel ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  height: clamp(500px, 72vh, 820px);
  background: var(--bg-2);
}
.hero__slides { height: 100%; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: flex-end;
}
.hero__slide.active { opacity: 1; z-index: 1; }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(.8);
  transition: transform 8s ease;
}
.hero__slide.active .hero__img { transform: scale(1.04); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,14,20,.95) 0%, rgba(12,14,20,.4) 50%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  width: 100%;
  max-width: 780px;
}
.hero__content .container { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero__title:hover { color: var(--accent); transition: color .2s; }
.hero__excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
  max-width: 580px;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}
.hero__meta .author { color: var(--accent); }

/* Hero controls */
.hero__controls {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
}
.hero__dot.active { background: var(--accent); width: 24px; }
.hero__arrow {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .2s;
  cursor: pointer;
}
.hero__arrow:hover { border-color: var(--accent); color: var(--accent); }
.hero__arrow svg { width: 16px; height: 16px; }

/* Hero thumbnails strip */
.hero__strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(12,14,20,.85));
}
.hero__thumb {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.hero__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s;
}
.hero__thumb.active::before { opacity: .08; }
.hero__thumb:hover::before  { opacity: .05; }
.hero__thumb-content { position: relative; z-index: 1; }
.hero__thumb-cat  { font-family: var(--ff-mono); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.hero__thumb-title { font-family: var(--ff-head); font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Section Layouts ────────────────────────────────────── */
.section { padding: 64px 0; }
.section--dense { padding: 40px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.section-header a  { font-family: var(--ff-mono); font-size: .75rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.section-header a:hover { text-decoration: underline; }

/* Main grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-grid--4 { grid-template-columns: repeat(4, 1fr); }
.news-grid--lead {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.news-grid--lead .card:first-child {
  grid-row: span 2;
  border-radius: 0;
}
.news-grid--lead .card {
  border-radius: 0;
  background: var(--bg-card);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img-wrap img { transform: scale(1.05); }

.card__img-wrap--tall { aspect-ratio: 4/5; }
.card__img-wrap--short { aspect-ratio: 21/9; }
.card__no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 3rem;
  color: var(--border-2);
  font-style: italic;
}

.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-inv);
  background: var(--accent);
}

.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card__body--lg { padding: 28px; }

.card__cat {
  font-family: var(--ff-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}
.card__title {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  flex: 1;
  color: #fff;
  transition: color .2s;
}
.card__title:hover { color: var(--accent); }
.card__title--sm { font-size: .95rem; }
.card__title--md { font-size: 1.15rem; }
.card__title--lg { font-size: 1.4rem; }
.card__title--xl { font-size: 1.75rem; }

.card__excerpt { font-size: .9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card__meta-dot { opacity: .3; }

/* Card variants */
.card--horizontal {
  flex-direction: row;
  gap: 0;
}
.card--horizontal .card__img-wrap {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.card--horizontal .card__body { padding: 16px; }

.card--minimal {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.card--minimal:hover { transform: none; }
.card--minimal .card__num {
  font-family: var(--ff-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--border-2);
  flex-shrink: 0;
  line-height: 1;
  width: 40px;
}
.card--minimal .card__title { margin-bottom: 6px; font-size: 1rem; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget { }
.sidebar-widget__title {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sidebar-widget__title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 30px; height: 1px;
  background: var(--accent);
}

/* Category list */
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .9rem;
  transition: all .2s;
}
.cat-list__item:hover { border-color: var(--accent); color: var(--accent); }
.cat-list__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── Article / Single Post ──────────────────────────────── */
.article-hero { position: relative; }
.article-hero__img {
  width: 100%;
  height: clamp(300px, 45vw, 560px);
  object-fit: cover;
  filter: brightness(.7);
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(12,14,20,.6) 50%, transparent 100%);
}
.article-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 0 40px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
}
.article-body h2, .article-body h3 { margin: 2em 0 .75em; }
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body p   { margin-bottom: 1.5em; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.article-body li  { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-2);
}
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 2em 0;
  border: 1px solid var(--border);
}
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: .85rem; color: var(--text-3); margin-top: 8px; font-style: italic; }
.article-body code {
  font-family: var(--ff-mono);
  font-size: .85em;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}
.article-body pre { background: var(--bg-3); padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 1.5em 0; }
.article-body pre code { background: none; padding: 0; }

/* Article meta bar */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--text-2);
}
.article-meta .author-name { color: var(--accent); font-weight: 700; }
.article-meta .views { margin-left: auto; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
}
.share-bar__label { font-family: var(--ff-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  transition: all .2s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn svg { width: 14px; height: 14px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag {
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .78rem;
  font-family: var(--ff-mono);
  color: var(--text-2);
  transition: all .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Blog ────────────────────────────────────────────────── */
.blog-hero {
  background: var(--bg-2);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: 'BLOG';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-head);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none;
  line-height: 1;
}
.blog-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  font-style: italic;
  color: #fff;
  position: relative;
}
.blog-hero__sub {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-top: 12px;
  position: relative;
}

/* Blog card variant */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__body { padding: 24px; }
.blog-card__title {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #fff;
  transition: color .2s;
}
.blog-card:hover .blog-card__title { color: var(--accent); }
.blog-card__excerpt { font-size: .9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: .7rem; color: var(--text-3); }
.blog-card__read-time {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

/* Featured blog post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.blog-featured__img { height: 100%; min-height: 400px; overflow: hidden; }
.blog-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-featured:hover .blog-featured__img img { transform: scale(1.04); }
.blog-featured__body { padding: 48px 40px; display: flex; flex-direction: column; }
.blog-featured__label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.blog-featured__title {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  transition: color .2s;
}
.blog-featured:hover .blog-featured__title { color: var(--accent); }
.blog-featured__excerpt { font-size: 1rem; color: var(--text-2); line-height: 1.7; flex: 1; margin-bottom: 24px; }
.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text-inv);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.blog-featured__cta:hover { background: var(--accent-2); transform: translateX(3px); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-family: var(--ff-mono);
  font-size: .78rem;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: var(--text-inv); font-weight: 700; }
.pagination .dots { border: none; color: var(--text-3); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--ff-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--accent); }
.footer-about { font-size: .9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: #fff;
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-3); }
.newsletter-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--text-inv);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
  flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--accent-2); }

.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all .2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.social-link svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--text-3);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--text-3);
  padding: 16px 0;
  letter-spacing: .04em;
}
.breadcrumb a { color: var(--text-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: .3; }

/* ── Loader / Skeleton ──────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  font-size: .875rem;
  color: #fff;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Progress bar ───────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1000;
  width: 0%;
  transition: width .1s;
}

/* ── Scroll to top ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--text-inv);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(232,184,75,.4);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--accent-2); transform: translateY(-2px); }
#scroll-top svg { width: 18px; height: 18px; }

/* ── Light theme ─────────────────────────────────────────── */
body.light {
  --bg:       #f5f4f0;
  --bg-2:     #eceae4;
  --bg-3:     #e0ddd6;
  --bg-card:  #ffffff;
  --border:   rgba(0,0,0,.08);
  --border-2: rgba(0,0,0,.15);
  --text:     #1a1a16;
  --text-2:   #555550;
  --text-3:   #999990;
  --text-inv: #ffffff;
}
body.light h1,body.light h2,body.light h3,
body.light h4,body.light h5,body.light h6 { color: #0a0a08; }
body.light .hero__title { color: #fff; }
body.light .hero__excerpt { color: rgba(255,255,255,.85); }
body.light .navbar { background: rgba(245,244,240,.95); }
body.light .ticker { color: #0c0e14; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__strip { display: none; }
}
@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .hamburger { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid--2 { grid-template-columns: 1fr; }
  .news-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img { min-height: 240px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .hero { height: 72vh; }
  .hero__content { padding: 24px 0; }
  .article-meta { gap: 12px; }
  .share-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .news-grid--4 { grid-template-columns: 1fr; }
  .pagination gap { gap: 4px; }
  .container { padding: 0 16px; }
}

/* ── Mobile menu overlay ─────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 14px 0;
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── Animations ─────────────────────────────────────────── */
.fade-in { animation: fadeIn .6s ease forwards; }
.slide-up { animation: slideUp .6s ease forwards; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.stagger-1 { animation-delay: .1s; opacity: 0; }
.stagger-2 { animation-delay: .2s; opacity: 0; }
.stagger-3 { animation-delay: .3s; opacity: 0; }
.stagger-4 { animation-delay: .4s; opacity: 0; }
