:root {
  --ink: #0a0908;
  --cream: #faf8f4;
  --parchment: #f3efe7;
  --rouge: #b92b27;
  --rouge-light: #d63031;
  --gold: #c9a84c;
  --muted: #6b6560;
  --border: #ddd8ce;
  --dark-bg: #111008;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

/* ── READING PROGRESS ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--rouge);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── TYPOGRAPHY ── */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-serif {
  font-family: 'Source Serif 4', Georgia, serif;
}

.font-sans {
  font-family: 'DM Sans', sans-serif;
}

/* ── TICKER ── */
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 38s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── CARD HOVER ── */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.news-card img {
  transition: transform 0.5s ease;
}

.news-card:hover img {
  transform: scale(1.04);
}

/* ── HERO OVERLAY ── */
.hero-overlay {
  background: linear-gradient(to top, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.5) 55%, transparent 100%);
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CATEGORY BADGE ── */
.badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--rouge);
  color: #fff;
  display: inline-block;
}

.badge-gold {
  background: var(--gold);
  color: #fff;
}

.badge-dark {
  background: var(--ink);
  color: #fff;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--rouge);
  color: var(--rouge);
}

/* ── RULE ── */
.rule-gold {
  border: none;
  border-top: 2px solid var(--gold);
}

.rule-ink {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── NAV UNDERLINE ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rouge);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── SCROLL REVEAL ── */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CATEGORY TABS ── */
.tab-btn {
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--rouge);
  color: #fff;
}

.tab-btn:not(.active):hover {
  background: var(--parchment);
}

/* ── PULLQUOTE ── */
.pullquote {
  border-left: 4px solid var(--rouge);
  padding-left: 1.5rem;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
}

/* ── DIVIDER WITH TEXT ── */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── OPINION CARD ── */
.opinion-card {
  border-top: 3px solid var(--ink);
}

/* ── MARKET TICKER ── */
.market-up {
  color: #16a34a;
}

.market-down {
  color: var(--rouge);
}

/* ── FOOTER ── */
footer a:hover {
  color: var(--gold);
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--parchment);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ── AD PLACEHOLDER ── */
.ad-slot {
  background: repeating-linear-gradient(45deg, var(--parchment), var(--parchment) 4px,
      var(--border) 4px, var(--border) 8px);
}

/* ── STAGGER DELAY ── */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ── WEATHER WIDGET ── */
.weather-widget {
  background: linear-gradient(135deg, #1a3a5c, #0a1929);
}

/* ── POPUPS & OVERLAYS ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.popup-card {
  background: var(--cream);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.overlay.active .popup-card {
  transform: translateY(0);
}

.search-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--rouge);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  width: 100%;
  outline: none;
  padding: 1rem 0;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--parchment);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── UTILS ── */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
