@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --maroon: #7A1632;
  --maroon-dark: #591024;
  --maroon-bright: #A8264A;
  --ink: #17121A;
  --paper: #F5F1EC;
  --paper-dim: #E9E2D8;
  --gold: #C89B3C;
  --line: rgba(23,18,26,0.12);
  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--maroon);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-text span { color: var(--gold); }

.datetime {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- Ticker ---------- */
.ticker-wrap {
  background: var(--maroon);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 2px solid var(--maroon-dark);
}

.ticker-label {
  flex: 0 0 auto;
  background: var(--maroon-dark);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 32s linear infinite;
  padding-left: 100%;
}

.ticker-track span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 40px 9px 0;
  border-right: 1px solid rgba(255,255,255,0.25);
  margin-right: 40px;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Nav tabs ---------- */
.tab-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  padding: 0 28px;
  overflow-x: auto;
}

.tab-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 18px 13px;
  border: none;
  background: none;
  color: var(--ink);
  opacity: 0.55;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { opacity: 0.85; }

.tab-btn.active {
  opacity: 1;
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

/* ---------- Layout ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.section-heading {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--ink);
  display: inline-block;
}

.empty-state {
  font-family: 'Oswald', sans-serif;
  color: rgba(23,18,26,0.5);
  padding: 60px 0;
  text-align: center;
  font-size: 1.05rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

@media (max-width: 780px) {
  .story-grid { grid-template-columns: 1fr; }
}

.story-grid-solo {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.story-grid-solo .feature-card h2 {
  font-size: 2.2rem;
}

.feature-card {
  cursor: pointer;
}

.feature-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-dim) center/cover no-repeat;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.feature-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.feature-card p {
  color: rgba(23,18,26,0.72);
  line-height: 1.55;
  margin: 0 0 10px;
}

.byline {
  font-size: 0.78rem;
  color: rgba(23,18,26,0.5);
  font-weight: 600;
}

.side-list {
  display: flex;
  flex-direction: column;
}

.side-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.side-item:first-child { padding-top: 0; }

.side-item .thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  background: var(--paper-dim) center/cover no-repeat;
  border-radius: var(--radius);
}

.side-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  margin: 0 0 6px;
  line-height: 1.25;
}

/* ---------- Article view ---------- */
.article-view {
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 22px;
  cursor: pointer;
}

.article-view h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 10px 0 14px;
}

.article-view .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-dim) center/cover no-repeat;
  border-radius: var(--radius);
  margin: 18px 0;
}

.article-view .body-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(23,18,26,0.88);
  white-space: pre-wrap;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 26px;
  font-size: 0.82rem;
}

footer a { color: var(--gold); }
