
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #18181b;
  --muted: #66666f;
  --line: #dedee3;
  --primary: #d71920;
  --primary-soft: #fff0f1;
  --secondary: #4f46e5;
  --card: #ffffff;
  --max: 1248px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101014;
  --surface: #18181e;
  --text: #f7f7f8;
  --muted: #b4b4bd;
  --line: #33333c;
  --primary: #ff6268;
  --primary-soft: #2b1719;
  --secondary: #a5b4fc;
  --card: #15151a;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 10; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-row { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.logo { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; }
.logo img { width: 210px; max-height: 46px; object-fit: contain; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.top-links { display: flex; gap: 1rem; font-size: .86rem; color: var(--muted); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .35rem; }
.icon-button {
  width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-button:hover { background: var(--surface); }
.icon-button svg { width: 21px; height: 21px; }
.sun { display: none; }
[data-theme="dark"] .moon { display: none; }
[data-theme="dark"] .sun { display: block; }
.navbar { min-height: 49px; display: flex; justify-content: center; align-items: center; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem; margin: 0; padding: 0; justify-content: center; }
.nav-list a { display: block; padding: .65rem .82rem; font-size: .91rem; font-weight: 600; }
.nav-list a[aria-current="page"] { color: var(--primary); }
.mobile-toggle { display: none; }
.mobile-panel { display: none; border-top: 1px solid var(--line); }
.mobile-panel.is-open { display: block; }
.mobile-panel a { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; }
main { flex: 1; }
.headlines { padding-block: 2rem 1rem; display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 1.5rem; }
.main-story, .side-story, .news-card { position: relative; }
.main-story { display: flex; flex-direction: column-reverse; gap: 1rem; }
.story-image { aspect-ratio: 16/9; overflow: hidden; border-radius: 7px; background: var(--surface); }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.main-story h1 { font: 700 clamp(1.65rem, 3vw, 2.45rem)/1.08 Georgia, Cambria, "Times New Roman", serif; margin: 0; }
.main-story p { color: var(--muted); margin: .5rem 0 0; max-width: 58rem; }
.side-stack { display: grid; gap: 1rem; }
.side-story { display: grid; grid-template-columns: 145px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.side-story:last-child { border-bottom: 0; }
.side-story .story-image { aspect-ratio: 4/3; }
.side-story h2 { font: 650 1.12rem/1.15 Georgia, Cambria, "Times New Roman", serif; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); font-size: .78rem; margin-top: .55rem; }
.category-link { color: var(--primary); font-weight: 600; }
.section { padding-block: 2.6rem; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--text); padding-bottom: .55rem; margin-bottom: 1.4rem; }
.section-header h2 { font: 700 1.65rem/1 Georgia, Cambria, "Times New Roman", serif; margin: 0; }
.section-header a { color: var(--primary); font-size: .9rem; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; gap: .75rem; }
.news-card h3 { font: 650 1.25rem/1.15 Georgia, Cambria, "Times New Roman", serif; margin: 0; }
.news-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.category-tile { border: 1px solid var(--line); border-radius: 7px; padding: 1rem; background: var(--card); }
.category-tile strong { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 1.15rem; }
.category-tile span { display: block; color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.page-header { padding-block: 2.5rem 1.4rem; border-bottom: 1px solid var(--line); }
.page-header h1 { font: 750 clamp(2rem,5vw,3.4rem)/1.05 Georgia, Cambria, "Times New Roman", serif; margin: 0; }
.page-header p { color: var(--muted); max-width: 780px; margin: .65rem 0 0; }
.article-header { padding-top: 2rem; }
.article-header-inner { width: min(1050px, calc(100% - 2rem)); margin-inline: auto; }
.article-header h1 { font: 750 clamp(2rem,5vw,3.65rem)/1.04 Georgia, Cambria, "Times New Roman", serif; margin: 0 0 1rem; text-wrap: balance; }
.article-hero { width: min(1050px, calc(100% - 2rem)); margin: 1.5rem auto 0; aspect-ratio: 20/9; overflow: hidden; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { width: min(820px, calc(100% - 2rem)); margin: 0 auto; padding-block: 2.3rem 4rem; font-size: 1.08rem; }
.prose h2, .prose h3 { font-family: Georgia, Cambria, "Times New Roman", serif; line-height: 1.15; margin-top: 2.2rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.4rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-block: 1.1rem; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { margin: 1.5rem auto; border-radius: 7px; border: 1px solid var(--line); }
.prose blockquote { border-left: 4px solid var(--primary); margin-left: 0; padding-left: 1rem; color: var(--muted); }
.notice { border: 1px solid #ef4444; background: var(--primary-soft); padding: 1rem; border-radius: 7px; }
.list-page { padding-block: 2rem 4rem; }
.list-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font: 700 1.3rem Georgia, Cambria, "Times New Roman", serif; }
.footer-copy { color: var(--muted); max-width: 560px; }
.footer-links { display: grid; gap: .45rem; }
.copyright { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.search-box { display: flex; gap: .5rem; margin-block: 1.5rem; }
.search-box input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: .8rem 1rem; border-radius: 6px; }
.search-results { display: grid; gap: .9rem; }
.search-result { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.search-result h2 { margin: 0; font: 650 1.2rem Georgia, Cambria, "Times New Roman", serif; }
.search-result p { color: var(--muted); margin: .3rem 0 0; }
@media (max-width: 900px) {
  .headlines { grid-template-columns: 1fr; }
  .news-grid, .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-list { display: none; }
  .navbar { display: none; }
  .mobile-toggle { display: grid; }
  .top-links { display: none; }
  .topbar-row { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .news-grid, .list-grid, .category-grid { grid-template-columns: 1fr; }
  .side-story { grid-template-columns: 115px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { width: 170px; }
}
