:root {
  --bg: #FFFFFF;
  --bg-elevated: #F7F7F8;
  --bg-dark: #0B0E14;
  --bg-dark-2: #12161F;
  --text: #14181F;
  --text-muted: #667085;
  --text-on-dark: #F5F6F8;
  --text-muted-on-dark: #9AA3B2;
  --accent: #D6242A;
  --accent-dark: #A81820;
  --accent-soft-bg: #FDECEC;
  --border: #E7E8EC;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 16px 32px rgba(16, 24, 40, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .card, .card img, .site-nav a, .latest-item, .hero-card { transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.15s ease; }
}

/* ---------- Utility bar ---------- */
.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark);
  color: var(--text-muted-on-dark);
  font-size: 12.5px;
  padding: 8px 32px;
}
.utility-nav { display: flex; gap: 18px; }
.utility-nav a { color: var(--text-muted-on-dark); font-weight: 500; }
.utility-nav a:hover { color: var(--text-on-dark); text-decoration: none; }

/* ---------- Brand block ---------- */
.brand-block { text-align: center; padding: 28px 16px 20px; background: var(--bg); }
.brand-block .logo {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-block .logo:hover { text-decoration: none; }
.brand-block .tagline {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.tagline-dash { color: var(--accent); }

/* ---------- Category nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--accent);
  padding: 0 16px;
}
.site-nav a {
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  display: inline-block;
}
.site-nav a:hover { background: var(--accent-dark); text-decoration: none; }
.site-nav a.nav-home { font-weight: 800; }

/* ---------- Ticker ---------- */
.ticker-bar {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 16px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse-dot 1.8s ease-in-out infinite; }
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-content { display: inline-flex; align-items: center; padding-left: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-content { animation: ticker-scroll 32s linear infinite; }
  .ticker-content:hover { animation-play-state: paused; }
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ticker-content a { color: var(--text); font-size: 13.5px; font-weight: 600; }
.ticker-content a:hover { color: var(--accent); text-decoration: none; }
.ticker-sep { margin: 0 20px; color: var(--border); }

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; }
main.main-narrow { max-width: 800px; }

/* ---------- Homepage hero row ---------- */
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 48px; align-items: stretch; }

.hero-card {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,0.05) 0%, rgba(11,14,20,0.55) 60%, rgba(11,14,20,0.92) 100%);
}
.hero-card:hover { text-decoration: none; }
.hero-badge.hero-badge { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--accent); color: #fff; }
.hero-card-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 28px 32px;
}
.hero-card-text h1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}
.hero-card-text p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
}

.latest-list {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.latest-list h3 {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.latest-items { display: flex; flex-direction: column; }
.latest-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.latest-item:last-child { border-bottom: none; padding-bottom: 0; }
.latest-item:first-child { padding-top: 0; }
.latest-item img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.latest-item-body { min-width: 0; }
.latest-item-tag { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 2px; }
.latest-item h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.latest-item:hover h4 { color: var(--accent); }
.latest-item:hover { text-decoration: none; }
.latest-item-date { font-size: 11.5px; color: var(--text-muted); }

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

/* ---------- Home sections ---------- */
.home-section { margin-bottom: 44px; }
.home-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 8px; color: var(--border); }
.breadcrumb-current { color: var(--text-muted); }

/* ---------- Article page ---------- */
.article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  margin: 22px 0 10px;
  color: var(--text);
}
.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.article-meta a { color: var(--text-muted); font-weight: 600; }
.article-meta a:hover { color: var(--accent); }

.article-body { font-size: 17px; color: var(--text); }
.article-body p { margin: 0 0 20px; }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 34px 0 14px;
  color: var(--text);
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body .related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.article-body .related-links li {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.article-body .related-links a { color: var(--text); font-weight: 600; }
.article-body .related-links a:hover { color: var(--accent); text-decoration: none; }

.author-article-list { list-style: none; padding: 0; margin: 8px 0 0; }
.author-article-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.author-article-list a { color: var(--text); font-weight: 600; }
.author-article-list a:hover { color: var(--accent); }
.author-article-cat { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

.category-badge {
  display: inline-block;
  background: var(--accent-soft-bg);
  color: var(--accent);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
}
.card-body p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  padding: 40px 24px;
  color: var(--text-muted-on-dark);
  font-size: 13px;
  text-align: center;
}
.site-footer nav { margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.site-footer a { color: var(--text-muted-on-dark); font-weight: 600; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer p { margin: 4px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .utility-bar { padding: 8px 16px; font-size: 11px; }
  .utility-nav { gap: 10px; }
  .brand-block .logo { font-size: 32px; }
  .site-nav a { padding: 12px 10px; font-size: 12px; }
  main { padding: 20px 16px 48px; }
  .article-hero { height: 220px; }
  .article-title { font-size: 25px; }
  .hero-card { min-height: 320px; }
  .hero-card-text h1 { font-size: 22px; }
}
