:root {
  color-scheme: light;
  --bg: #f6f5ff;
  --panel: white;
  --panel2: #eeeaff;
  --line: #d3cfe2;
  --text: #19162f;
  --muted: #49465c;
  --faint: #5c586e;
  --accent: #5133bf;
  --accent2: #d4ff55;
}
.topbar { background: #fffffff5; }
.search-box { background: #f5f3ff; }
.lang-toggle, .story-title a:hover, .source-item a:hover { color: var(--accent); }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 62px); margin-top: 22px; background: #f2eddf; color: #21271e; border-top: 4px solid #ff975b; align-items: center; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 65%; aspect-ratio: 1; right: -17%; top: 50%; transform: translateY(-50%); background: repeating-radial-gradient(circle, transparent 0 26px, #32412624 27px 28px); }
.hero h1, .story-title, .section-heading h2 { font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: -.045em; }
.hero { background: linear-gradient(112deg, #d6ff52, #99f9a6 65%, #83dfff); border-color: var(--text); }
.hero h1 { max-width: 13ch; font-size: clamp(44px, 6vw, 88px); }
.hero .eyebrow, .hero .meta-label, .hero-subtitle { color: #4c5648; }
.hero .live-dot { background: #cf5818; }
.hero-meta { padding: 16px; background: #ffffffbb; border-block: 1px solid #78816f; }
.hero .meta-item strong { color: #222921; }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: signal; }
.story-card { position: relative; padding: 19px; border-top: 2px solid var(--line); background: var(--panel); counter-increment: signal; }
.story-card::before { content: counter(signal, decimal-leading-zero); align-self: flex-end; color: var(--faint); font: 12px monospace; }
.story-card:first-child { grid-column: span 2; background: #e8e1ff; border-color: var(--accent); }
.story-category { color: var(--accent); font: 600 11px/1.5 monospace; letter-spacing: .12em; }
.story-title { display: block; overflow: visible; overflow-wrap: anywhere; margin: 8px 0 24px; font-size: clamp(21px, 2vw, 30px); line-height: 1.15; }
.story-card:first-child .story-title { font-size: clamp(28px, 3.7vw, 54px); }
.story-source, .story-date { font-size: 12px; }
.story-source { color: var(--text); }
.story-meta { padding-top: 14px; }
.story-card:hover, .story-card:focus-within { border-color: var(--accent); }
.story-summary:empty { display: none; }
.story-card .story-thumb { aspect-ratio: 16/9; max-height: 350px; border: 0; border-radius: 10px; margin: 8px 0 16px; }
.story-card .story-thumb:has(.thumb-placeholder) { height: 76px; aspect-ratio: auto; }
.story-source:hover { color: var(--accent); }
.thumb-placeholder { position: relative; overflow: hidden; align-items: center; }
.thumb-placeholder::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 85% 125%, transparent 0 11px, #ffffff24 12px 13px); }
.thumb-code { display: none; }
.thumb-symbol { font: 600 22px monospace; }
:focus-visible, .search-box:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 850px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { flex-wrap: wrap; } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; gap: 12px; } .story-card:first-child { grid-column: auto; } .hero-meta { flex-wrap: wrap; gap: 16px; padding: 10px 0; } .hero-subtitle { font-size: 15px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .5s ease-out both; }
  .story-card { transition: transform .18s ease, border-color .18s ease; }
  @media (hover: hover) { .story-card:hover { transform: translateY(-3px); } }
  @keyframes arrive { from { opacity: .2; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::after, *::before { animation: none !important; transition: none !important; } }
