@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --ink:      #1a1a1a;
  --paper:    #faf8f4;
  --cream:    #f2efe8;
  --rule:     #d0c9bc;
  --accent:   #c0392b;
  --accent2:  #2c6e8a;
  --muted:    #6b6560;
  --tag-bg:   #1a1a1a;
  --header-h: #0d1117;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

/* ── TICKER ─────────────────────────────────────── */
.ticker-bar {
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  display: flex;
  overflow: hidden;
  height: 30px;
  align-items: center;
}
.ticker-label {
  background: #8b1a10;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; position: relative; }
.ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-inner span {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.25);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MASTHEAD ────────────────────────────────────── */
.masthead {
  background: var(--header-h);
  color: #fff;
  padding: 0 24px;
}
.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  border-bottom: 1px solid #2a3340;
}
.masthead-brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
  color: #fff;
}
.masthead-brand .tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8899aa;
  margin-top: 3px;
}
.masthead-meta {
  text-align: right;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #8899aa;
  line-height: 1.8;
}
.masthead-meta .edition {
  font-size: 11px;
  color: #556;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── NAV ─────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 2px;
  padding: 0;
  overflow-x: auto;
}
.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aab;
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { border-bottom: 2px solid var(--accent); }

/* ── LAYOUT WRAPPER ──────────────────────────────── */
.site-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* ── HERO STRIP ──────────────────────────────────── */
.hero-strip {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}
.hero-strip > * { background: var(--paper); }
.hero-main { padding: 28px 32px 28px 28px; position: relative; }
.hero-main .kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-main h2 a { color: inherit; text-decoration: none; }
.hero-main h2 a:hover { color: var(--accent2); }
.hero-main .lead {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.byline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
  align-items: center;
}
.byline .author { color: var(--ink); font-weight: 500; }
.byline::before { content: ''; display: block; width: 24px; height: 1px; background: var(--rule); }

.hero-sidebar { display: flex; flex-direction: column; gap: 1px; background: var(--rule); }
.hero-sidebar > * { background: var(--paper); padding: 18px 20px; flex: 1; }
.hero-sidebar .mini-hed {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.hero-sidebar .mini-hed a { color: inherit; text-decoration: none; }
.hero-sidebar .mini-hed a:hover { color: var(--accent2); }
.hero-sidebar .mini-dek { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-sidebar .mini-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

/* ── SECTION LABEL ───────────────────────────────── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 2px solid var(--ink);
  padding-top: 7px;
  margin-bottom: 20px;
}

/* ── CARD GRID ───────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.card { border-top: 1px solid var(--rule); padding-top: 16px; }
.card .card-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── INLINE CHART ────────────────────────────────── */
.chart-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 20px 24px;
  margin: 28px 0;
}
.chart-block .chart-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.chart-block svg { display: block; width: 100%; }

/* ── LIST ITEMS ──────────────────────────────────── */
.list-articles { list-style: none; }
.list-articles li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.list-articles li:last-child { border-bottom: none; }
.list-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.list-articles .item-hed {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.list-articles .item-hed a { color: inherit; text-decoration: none; }
.list-articles .item-hed a:hover { color: var(--accent2); }
.list-articles .item-dek { font-size: 13px; color: var(--muted); }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar { padding-top: 0; }
.sidebar-widget { margin-bottom: 36px; }
.sidebar-widget .section-label { margin-bottom: 14px; }

.market-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 13px; }
.market-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--rule);
}
.market-table td {
  padding: 7px 0;
  border-bottom: 1px solid #eee;
  color: var(--ink);
}
.market-table td:last-child { text-align: right; }
.up { color: #1a7a3c; font-weight: 600; }
.dn { color: var(--accent); font-weight: 600; }

.weather-box {
  background: var(--header-h);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 2px;
}
.weather-icon { font-size: 2.2rem; }
.weather-info { font-family: 'DM Sans', sans-serif; }
.weather-info .city { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #99aacc; }
.weather-info .temp { font-size: 1.8rem; font-weight: 300; line-height: 1.1; }
.weather-info .desc { font-size: 12px; color: #aabbdd; margin-top: 2px; }

.newsletter-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 18px;
}
.newsletter-box p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.newsletter-box .nl-form { display: flex; gap: 6px; }
.newsletter-box input[type=email] {
  flex: 1;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 8px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.newsletter-box input[type=email]:focus { border-color: var(--accent2); }
.newsletter-box button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .15s;
}
.newsletter-box button:hover { background: var(--accent2); }

.opinion-item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.opinion-item:last-child { border-bottom: none; }
.opinion-item .author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--header-h);
  color: #aabbcc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.opinion-item .author-name { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; }
.opinion-item .author-title { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--muted); }
.opinion-item .quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.opinion-item .quote a { color: var(--accent2); text-decoration: none; }

/* ── TAG ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 8px;
  vertical-align: middle;
}
.tag.tech  { background: var(--accent2); }
.tag.eco   { background: #2e6b32; }
.tag.sci   { background: #5a3d8a; }

/* ── DIVIDER ─────────────────────────────────────── */
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 28px 0; }

/* ── FOOTER ──────────────────────────────────────── */
footer.site-footer {
  background: var(--header-h);
  color: #8899aa;
  margin-top: 60px;
  padding: 40px 24px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e2a36;
}
.footer-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand p { line-height: 1.6; color: #6677889; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #6688aa; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1160px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #445566;
}
.footer-bottom a { color: #556; text-decoration: none; }
.footer-bottom a:hover { color: #99aacc; }

/* ── ARTICLE PAGE ────────────────────────────────── */
.article-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
}
.article-body .art-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-body h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}
.article-body .dek {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
  font-style: italic;
}
.art-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #999;
}
.art-meta .author { color: var(--ink); font-weight: 600; }
.art-meta .dot { color: var(--rule); }
.article-body p { margin-bottom: 20px; font-size: 17px; line-height: 1.72; }
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 14px;
}
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--accent2);
  border-top: 2px solid var(--accent2);
  border-bottom: 2px solid var(--accent2);
  padding: 20px 0;
  margin: 32px 0;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .masthead-brand h1 { font-size: 1.9rem; }
  .masthead-meta { display: none; }
  .hero-main h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
