:root {
  --bg: #ffffff;
  --fg: #121212;
  --muted: #5f6368;
  --line: #e4e4e4;
  --line-strong: #121212;
  --accent: #c8102e;
  --accent-fg: #ffffff;
  --btn-bg: #121212;
  --btn-fg: #ffffff;
  --surface: #f6f6f6;
  --footer-bg: #121212;
  --footer-fg: #f2f2f2;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --masthead: 'Pirata One', 'Old English Text MT', 'UnifrakturMaguntia', serif;
  --up: #15803d;
  --down: #c8102e;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body-serif: Georgia, 'Times New Roman', serif;
  --maxw: 1240px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --fg: #f1f1f1;
    --muted: #a3a7ad;
    --line: #2b2d31;
    --line-strong: #f1f1f1;
    --accent: #ff4d63;
    --btn-bg: #f1f1f1;
    --btn-fg: #121315;
    --surface: #1b1c1f;
    --footer-bg: #0a0b0c;
    --up: #4ade80;
    --down: #ff6b7a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.masthead-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 1.1rem;
  padding-bottom: .9rem;
  gap: 1rem;
}
.masthead-side { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.masthead-date { justify-content: flex-end; text-align: right; font-weight: 500; }
.masthead-weather .wx-icon { font-size: 1.5rem; line-height: 1; }
.masthead-weather .wx-text { display: flex; flex-direction: column; line-height: 1.15; }
.masthead-weather .wx-temp { font-weight: 700; color: var(--fg); font-size: .95rem; }
.masthead-weather .wx-city { font-size: .72rem; }
.brand { text-align: center; }
.brand-name {
  font-family: var(--masthead);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  letter-spacing: .01em;
  line-height: 1;
  display: inline-block;
}
.masthead-serif .brand-name { font-family: var(--serif); font-weight: 900; font-size: clamp(2.3rem, 6vw, 3.4rem); letter-spacing: -.01em; }
.masthead-serif .footer-brand { font-family: var(--serif); font-weight: 900; }

/* Markets marquee */
.ticker { display: flex; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); font-size: .78rem; height: 34px; }
.ticker-label { flex: none; padding: 0 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; gap: .4rem; background: var(--bg); }
.ticker-sub { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ticker-track { flex: 1; display: flex; overflow: hidden; white-space: nowrap; }
.ticker-items { display: flex; flex: none; gap: 2.2rem; padding: 0 1.1rem; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-items, .ticker:focus-within .ticker-items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
.tk-name { font-weight: 600; }
.tk-price { font-variant-numeric: tabular-nums; }
.tk-chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-chg.up { color: var(--up); }
.tk-chg.down { color: var(--down); }
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; }
  .ticker-items[aria-hidden] { display: none; }
  .ticker-track { overflow-x: auto; }
}
.brand-name:hover { text-decoration: none; }
.brand-tagline {
  margin-top: .45rem;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.topnav {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  padding: .8rem 0 .7rem;
  font-size: .86rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  color: var(--fg);
}
.topnav a:hover { text-decoration: none; color: var(--accent); }
.topnav a.active { border-bottom-color: var(--accent); }

/* Shared pieces */
.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.kicker:hover { text-decoration: none; opacity: .85; }
.byline, .meta { font-size: .78rem; color: var(--muted); }
.byline .sep { margin: 0 .35rem; opacity: .6; }
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: .65rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 3px;
}
.btn:hover { text-decoration: none; opacity: .9; }
.img-credit { display: block; font-size: .66rem; color: var(--muted); margin: -.45rem 0 .55rem; text-align: right; }
.hero-media + .img-credit { margin-top: .35rem; }
.article-figure .credit { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); margin-left: .35rem; }
.img-failed { background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 35%, var(--surface)) 100%); }
.article-figure.img-failed { display: none; }
.placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ph) 0%, color-mix(in srgb, var(--ph) 35%, var(--surface)) 100%); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.hero-lead { display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; margin-bottom: .9rem; }
.hero-dek { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.hero-lead .byline { margin-bottom: 1.1rem; }
.hero-lead .btn { align-self: flex-start; }
.hero-figure { display: flex; flex-direction: column; }
.hero-media { display: block; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-headlines h3 { font-family: var(--serif); font-size: 1.15rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line-strong); margin-bottom: .25rem; }
.hero-headlines ol { list-style: none; margin: 0; padding: 0; }
.hero-headlines li { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hero-headlines li:last-child { border-bottom: 0; }
.hero-headlines .num { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--muted); min-width: 1.6rem; line-height: 1.2; }
.hero-headlines li a { font-weight: 600; font-size: .92rem; line-height: 1.35; display: block; }
.hero-headlines time { display: block; font-size: .72rem; color: var(--muted); margin-top: .25rem; }

/* Sections and cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section-head h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.topic-section .section-head h2 { padding-left: .7rem; border-left: 4px solid var(--accent); }
.view-all { font-size: .8rem; font-weight: 600; color: var(--muted); }
.view-all:hover { color: var(--accent); text-decoration: none; }
.featured, .topic-section, .related { margin-bottom: 2.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); margin-bottom: .7rem; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card .kicker { margin-bottom: .3rem; }
.card-title { font-size: .98rem; font-weight: 700; line-height: 1.35; margin-bottom: .35rem; }
.card-lg .card-title { font-family: var(--serif); font-size: 1.6rem; }
.card-dek { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.topic-lead { margin-bottom: 2rem; }
.topic-lead .card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; }
.topic-lead .card-media { margin: 0; }

/* Topic and static pages */
.page-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.page-head h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; }
.page-desc { color: var(--muted); margin: .5rem 0 0; max-width: 60ch; }
.page-count { font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0; font-size: .85rem; font-weight: 600; }
.page-num { color: var(--muted); font-weight: 400; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty h1, .empty h2 { font-family: var(--serif); color: var(--fg); margin-bottom: .5rem; }

/* Article */
.article { max-width: 1000px; margin: 0 auto; }
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--accent); }
.article-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.12; margin-bottom: .9rem; }
.article-dek { font-size: 1.15rem; color: var(--muted); line-height: 1.5; }
.article-head .byline { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.article-head .author { color: var(--fg); font-weight: 600; }
.updated { font-style: italic; }
.article-figure { margin: 0 0 1.75rem; }
.article-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-figure figcaption { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.article-figure .credit { opacity: .8; }
.article-body { font-family: var(--body-serif); font-size: 1.2rem; line-height: 1.7; }
.article-body p { margin-bottom: 1.3em; }
.article-body h2 { font-family: var(--serif); font-size: 1.45rem; margin: 1.8em 0 .6em; }
.article-body h3 { font-family: var(--sans); font-size: 1.1rem; margin: 1.5em 0 .5em; }
.article-body a { text-decoration: underline; text-decoration-color: var(--accent); }
.article-body blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 4px solid var(--accent); color: var(--muted); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.article-body img { margin: 1.5em auto; }
.article-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); padding: .1em .35em; border-radius: 3px; }
.article-body pre { background: var(--surface); padding: 1em; overflow-x: auto; border-radius: 4px; }
.article-body pre code { background: none; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin-bottom: 1.3em; font-family: var(--sans); font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; }
.article-sources { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface); border-left: 4px solid var(--accent); }
.article-sources h2 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .6rem; }
.article-sources ol { margin: 0; padding-left: 1.3rem; font-size: .92rem; }
.article-sources li { margin-bottom: .4rem; }
.article-sources a { text-decoration: underline; text-decoration-color: var(--accent); }
.src-pub, .src-date { color: var(--muted); font-size: .82rem; margin-left: .35rem; }
.article-tags { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.article-foot { margin: 1.5rem 0 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.related { max-width: 1240px; margin: 0 auto 2.5rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 2rem; padding: 2.5rem 0 1.5rem; font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--masthead); font-size: 2.2rem; font-weight: 400; }
.footer-tagline { text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; opacity: .7; margin: .4rem 0 .9rem; }
.footer-text { opacity: .8; max-width: 48ch; }
.site-footer h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; opacity: .7; }

/* Responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr 1.2fr; }
  .hero-headlines { grid-column: 1 / -1; }
  .hero-headlines ol { columns: 2; column-gap: 2rem; }
  .hero-headlines li { break-inside: avoid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ticker-label .ticker-sub { display: none; }
  .masthead-top { grid-template-columns: 1fr 1fr; grid-template-areas: 'weather date' 'brand brand'; padding-top: .8rem; }
  .masthead-weather { grid-area: weather; }
  .masthead-date { grid-area: date; }
  .brand { grid-area: brand; margin-top: .4rem; }
  .topnav { justify-content: flex-start; gap: 1.2rem; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-media { order: -1; aspect-ratio: 3 / 2; }
  .hero-headlines ol { columns: 1; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .topic-lead .card { grid-template-columns: 1fr; }
  .topic-lead .card-media { margin-bottom: .7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 1.05rem; }
}
