:root {
  --accent: #224dd9;
  --ink: #16181d;
  --soft: #5b616e;
  --line: #e4e6eb;
  --paper: #ffffff;
  --tint: #f6f7f9;
  --heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.masthead { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { font: 700 30px/1.1 var(--heading); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { height: 36px; width: auto; }
.tagline { margin: 0; color: var(--soft); font-size: 14px; }
.menu { border-top: 1px solid var(--line); }
.menu-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu-links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.search-link { display: inline-flex; padding: 4px; margin-left: auto; }

main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
.kicker { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.crumbs > a:first-child { color: var(--soft); }
.section-title { font: 700 22px/1.2 var(--heading); margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.empty { text-align: center; color: var(--soft); padding: 80px 0; }
.empty a { color: var(--accent); text-decoration: underline; }

.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card h2 { font: 700 20px/1.25 var(--heading); margin: 6px 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0 0 8px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.card .card-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 0; color: var(--soft); font-size: 13px; }
.card-meta span::before { content: "·"; margin-right: 14px; }
.card-image { display: block; margin-bottom: 12px; background: var(--tint); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.card-lead .card-image { margin: 0; }
.card-lead h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.02em; }
.card-lead p { font-size: 17px; }
.card-lead:not(:has(.card-image)) { grid-template-columns: 1fr; }
.feed-list { max-width: 760px; }
.feed-list .card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feed-list .card:not(:has(.card-image)) { grid-template-columns: 1fr; }
.feed-list .card-image { margin: 0; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.pager a { color: var(--ink); font-weight: 600; }

.story { max-width: 720px; margin: 0 auto; }
.story-head h1 { font: 700 42px/1.1 var(--heading); letter-spacing: -0.02em; margin: 8px 0 14px; }
.standfirst { font-size: 20px; line-height: 1.45; color: var(--soft); margin: 0 0 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.byline span:first-child { color: var(--ink); font-weight: 600; }
.story-image { margin: 26px 0 0; }
.story-image img { width: 100%; border-radius: 4px; }
.story-image figcaption { margin-top: 6px; color: var(--soft); font-size: 13px; }
.story-body { font-size: 19px; line-height: 1.7; margin-top: 26px; overflow-wrap: break-word; }
.story-body p { margin: 0 0 1.2em; }
.story-body h2 { font: 700 26px/1.25 var(--heading); margin: 1.8em 0 0.6em; }
.story-body h3 { font: 700 21px/1.3 var(--heading); margin: 1.6em 0 0.5em; }
.story-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.story-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--soft); }
.story-body ul, .story-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.story-body li { margin-bottom: 0.4em; }
.story-body table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.story-body th, .story-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.key-points { margin: 4px 0 28px; padding: 16px 20px 6px; background: var(--tint); border-left: 4px solid var(--accent); border-radius: 4px; }
.key-points h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.key-points ul { margin: 0; padding-left: 20px; }
.key-points li { margin-bottom: 10px; line-height: 1.5; }
.sources { margin-top: 32px; padding: 14px 16px; background: var(--tint); border-radius: 4px; color: var(--soft); font-size: 14px; }
.sources a { color: var(--ink); text-decoration: underline; }
.more { margin-top: 64px; }

.footer { border-top: 1px solid var(--line); background: var(--tint); color: var(--soft); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-lead { grid-template-columns: 1fr; gap: 16px; }
  .card-lead h2 { font-size: 28px; }
  .story-head h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feed-grid { grid-template-columns: 1fr; gap: 28px; }
  .feed-list .card { grid-template-columns: 1fr; }
  .brand { font-size: 25px; }
  .story-body { font-size: 18px; }
  .standfirst { font-size: 18px; }
}

/* Top bar, trending, footer, sharing, editor box, most read, search */
.icon { display: block; flex: none; }
.topbar { background: var(--tint); border-bottom: 1px solid var(--line); color: var(--soft); font-size: 12.5px; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar-links { display: flex; gap: 14px; align-items: center; }
.topbar-links a:hover { color: var(--accent); }
.trending { border-top: 1px solid var(--line); background: var(--paper); }
.trending-row { display: flex; gap: 18px; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; }
.trending strong { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.trending a { flex: none; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.trending strong { flex: none; }
@media (max-width: 560px) { .trending a { max-width: 260px; } }
.trending a + a::before { content: "•"; color: var(--line); margin-right: 18px; }
.masthead { position: relative; }
.menu { position: sticky; top: 0; z-index: 5; background: var(--paper); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.section-title a:hover { color: var(--accent); }
.section-block { margin-top: 56px; }
.section-block .section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-more { font: 600 13px/1 var(--body); color: var(--accent); white-space: nowrap; }
.feed-compact { gap: 28px; }
.feed-compact .card h2 { font-size: 18px; }

.most-read { margin: 0; }
.most-read ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.most-read li { counter-increment: rank; display: grid; grid-template-columns: 38px 1fr; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.most-read li::before { content: counter(rank); font: 700 28px/1 var(--heading); color: var(--accent); }
.most-read .kicker { display: block; margin-bottom: 3px; font-size: 11px; }
.most-read-title { font: 700 16px/1.3 var(--heading); }
.most-read-band { margin: 40px 0; padding: 22px 24px 8px; background: var(--tint); border-radius: 6px; }
.most-read-band ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; }
.most-read-band li { border-bottom: 0; grid-template-columns: 1fr; }

.story-layout { display: block; }
.story-side { display: none; }
@media (min-width: 1100px) {
  .story-layout:has(.story-side) { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; justify-content: center; }
  .story-layout:has(.story-side) .story { margin: 0; }
  .story-side { display: block; }
  .story-side .most-read { position: sticky; top: 70px; }
}
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share .copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.share-end .share { margin: 0; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.author-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font: 700 22px/1 var(--heading); }
.author-box p { margin: 0; }
.author-name { font-weight: 700; }
.author-bio { color: var(--soft); font-size: 15px; margin-top: 4px !important; }
.author-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px !important; font-size: 13.5px; }
.author-links a { color: var(--accent); }

.search-page { max-width: 760px; margin: 0 auto; }
.search-form input { width: 100%; font: inherit; font-size: 19px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-count { color: var(--soft); font-size: 14px; }
.search-results .card { grid-template-columns: 1fr; }

.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand { font: 700 22px/1.2 var(--heading); color: var(--ink); }
.footer-about p { margin: 10px 0 14px; max-width: 360px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col h2 { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / .2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; }
@media (max-width: 860px) {
  .most-read-band ol { grid-template-columns: 1fr; }
  .most-read-band li { grid-template-columns: 38px 1fr; border-bottom: 1px solid var(--line); }
  .most-read-band li:last-child { border-bottom: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .today { display: none; }
  .topbar-row { justify-content: flex-end; }
  .author-box { flex-direction: column; }
}
@media print {
  .topbar, .menu, .trending, .share, .share-end, .story-side, .more, .footer, .to-top, .progress { display: none !important; }
}

.masthead { background: var(--ink); color: #fff; border-top: 0; border-bottom: 4px solid var(--accent); }
.masthead .tagline { color: rgb(255 255 255 / .7); }
.brand { text-transform: uppercase; font-size: 34px; letter-spacing: 0; }
.brand:hover, .menu a:hover { color: #fff; }
.menu { border-top: 1px solid rgb(255 255 255 / .15); }
.menu-row { text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.kicker, a.kicker:hover { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 2px; }
.card-image, .story-image img { border-radius: 0; }
.card h2 { font-size: 22px; font-weight: 800; }
.card-lead { grid-template-columns: 1fr; position: relative; padding-bottom: 0; border-bottom: 0; }
.card-lead .card-image { aspect-ratio: 21 / 9; }
.card-lead .card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 32px 28px; background: linear-gradient(transparent, rgb(0 0 0 / .85)); color: #fff; }
.card-lead .card-text p, .card-lead .card-text time { color: rgb(255 255 255 / .85); }
.card-lead h2 { font-size: 40px; }
.card-lead h2 a:hover { color: #fff; text-decoration: underline; }
.card-lead:not(:has(.card-image)) .card-text { position: static; background: var(--ink); padding: 32px; }
.section-title { border-bottom: 0; border-left: 6px solid var(--accent); padding: 2px 0 2px 12px; text-transform: uppercase; }
.story-head h1 { font-weight: 800; font-size: 46px; }
.footer { background: var(--ink); color: rgb(255 255 255 / .75); border-top: 4px solid var(--accent); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand, .footer-col h2 { color: #fff; }
.footer-social a, .footer-bottom { border-color: rgb(255 255 255 / .15); }
.topbar { background: #000; color: rgb(255 255 255 / .7); border-bottom: 0; }
.menu { background: var(--ink); }
.trending { background: var(--ink); border-top: 1px solid rgb(255 255 255 / .15); }
.trending strong { color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 2px; }
.trending a + a::before { color: rgb(255 255 255 / .3); }
.trending a:hover { color: #fff; text-decoration: underline; }
.most-read .kicker { background: none; color: var(--accent); padding: 0; }
@media (max-width: 860px) {
  .card-lead .card-image { aspect-ratio: 4 / 3; }
  .card-lead .card-text { padding: 70px 18px 18px; }
  .card-lead .card-text p { display: none; }
  .card-lead h2 { font-size: 26px; }
  .story-head h1 { font-size: 32px; }
}
