@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #66758a;
  --red: #e92f4f;
  --line: #e6eaf0;
  --paper: #f4f6f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner, .page-shell, .footer-inner { width: min(1180px, calc(100% - 40px)); margin: auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: white; font-size: 20px; }
.brand-accent { color: var(--red); }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a { color: #536176; font-size: 14px; font-weight: 700; transition: color .18s ease; }
.main-nav a:hover, .search-shortcut:hover { color: var(--red); }
.search-shortcut { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: 29px; }

.ticker { min-height: 50px; display: flex; align-items: center; gap: 14px; overflow: hidden; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ticker-label, .eyebrow { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.ticker a { overflow: hidden; color: #576579; font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
.ticker-dot { margin-left: auto; color: var(--red); font-size: 8px; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 26px 0; }
.featured-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 16px; background: #24354b; color: white; }
.featured-image { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,17,32,.96), rgba(6,17,32,.35) 58%, rgba(6,17,32,.05)); }
.featured-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 32px; }
.image-category { display: inline-block; border-radius: 100px; background: var(--red); padding: 6px 11px; color: white; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.featured-copy h1 { max-width: 720px; margin: 16px 0 10px; font-family: Manrope, sans-serif; font-size: clamp(28px, 4vw, 43px); letter-spacing: -1.5px; line-height: 1.13; }
.featured-copy p { max-width: 620px; margin: 0; color: #d7dce4; font-size: 15px; line-height: 1.65; }
.byline-light { display: inline-block; margin-top: 17px; color: #d8dfe8; font-size: 12px; }
.byline-light span { padding: 0 5px; }
.popular-panel, .latest-panel { border-radius: 15px; background: white; box-shadow: 0 7px 28px rgba(16,35,63,.045); }
.popular-panel { padding: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--red); padding-bottom: 12px; }
.section-heading h2, .latest-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; }
.heading-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.popular-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-number { color: #d9e0e8; font-family: Manrope, sans-serif; font-size: 22px; font-weight: 800; }
.popular-item .eyebrow { font-size: 9px; }
.popular-item h3 { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.popular-item h3 a:hover, .article-card h3 a:hover { color: var(--red); }

.latest-panel { padding: 26px; }
.latest-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.latest-heading h2 { margin-top: 4px; font-size: 25px; }
.search-box { width: 230px; height: 40px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe4eb; border-radius: 30px; padding: 0 13px; color: #8290a1; }
.search-box span { font-size: 21px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 19px 0; }
.filter-button { flex: 0 0 auto; border: 0; border-radius: 30px; background: #f0f2f5; padding: 9px 16px; color: #5d6a7c; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-button.active { background: var(--ink); color: white; }
.sample-notice { margin: 0 0 19px; border: 1px solid #f3d28a; border-radius: 9px; background: #fff8e7; padding: 11px 14px; color: #765414; font-size: 12px; line-height: 1.55; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.article-card { min-width: 0; }
.card-image { position: relative; display: block; height: 190px; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, #cdd9e7, #536a84); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-image:hover img { transform: scale(1.04); }
.card-image .image-category { position: absolute; bottom: 10px; left: 10px; }
.image-note { position: absolute; right: 9px; bottom: 10px; border-radius: 4px; background: rgba(16,35,63,.72); padding: 5px 7px; color: white; font-size: 9px; }
.card-body { padding-top: 11px; }
.sample-tag { display: inline-block; border-radius: 4px; background: #fff1d2; padding: 3px 6px; color: #805a11; font-size: 8px; font-weight: 800; letter-spacing: .7px; vertical-align: 2px; }
.light-tag { margin-left: 7px; background: rgba(255,255,255,.18); color: white; }
.source-name { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.card-body h3 { margin: 7px 0 6px; font-family: Manrope, sans-serif; font-size: 16px; line-height: 1.4; }
.card-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-inline { display: inline-block; margin-top: 9px; color: var(--red); font-size: 10px; font-weight: 700; }
.source-inline:hover { text-decoration: underline; }
.article-time { display: inline-block; margin-top: 10px; color: #8793a3; font-size: 10px; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.detail-page { max-width: 850px; margin: 35px auto 70px; border-radius: 15px; background: white; padding: clamp(22px, 5vw, 55px); box-shadow: 0 7px 28px rgba(16,35,63,.045); }
.back-link { display: inline-block; margin-bottom: 27px; color: var(--muted); font-size: 13px; font-weight: 700; }
.detail-page h1 { margin: 10px 0 15px; font-family: Manrope, sans-serif; font-size: clamp(30px, 5vw, 48px); letter-spacing: -1.2px; line-height: 1.15; }
.detail-excerpt { color: var(--muted); font-size: 17px; line-height: 1.7; }
.byline { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 12px; }
.byline strong { color: var(--ink); }
.detail-image { width: 100%; max-height: 480px; margin: 25px 0; border-radius: 12px; object-fit: cover; }
.image-caption { margin: -19px 0 24px; color: var(--muted); font-size: 10px; }
.source-note { border-left: 4px solid var(--red); border-radius: 5px; background: #f5f7fa; padding: 16px; color: #536176; font-size: 13px; line-height: 1.7; }
.article-copy { color: #4f5e72; font-size: 16px; line-height: 1.8; }
.source-link { display: inline-block; margin-top: 12px; border-radius: 7px; background: var(--ink); padding: 12px 16px; color: white; font-size: 13px; font-weight: 700; }
.source-link:hover { background: var(--red); }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); font-size: 18px; }
.footer-brand .brand-mark { width: 29px; height: 29px; font-size: 16px; }

@media (max-width: 900px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 12px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
  .featured-card { min-height: 410px; }
  .popular-panel { padding: 16px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 28px, 520px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand { gap: 7px; font-size: 20px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .main-nav { max-width: calc(100vw - 120px); overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; font-size: 11px; }
  .search-shortcut { width: 30px; }
  .ticker { min-height: 44px; gap: 9px; }
  .ticker-label { font-size: 8px; }
  .ticker a { font-size: 11px; }
  .lead-grid { grid-template-columns: 1fr; padding: 17px 0; }
  .featured-card { min-height: 390px; }
  .featured-copy { padding: 22px; }
  .featured-copy h1 { font-size: 30px; }
  .featured-copy p { font-size: 13px; }
  .popular-panel { padding: 18px; }
  .popular-item { grid-template-columns: 28px 1fr; padding: 12px 0; }
  .latest-panel { padding: 19px 15px; }
  .latest-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .article-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-image { height: 220px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
