:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #11141b;
  --line: #292e38;
  --text: #f5f6f8;
  --muted: #aab1be;
  --accent: #ff4057;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 64, 87, 0.11), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.intro {
  max-width: 680px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.news-list {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 5rem;
}

.news-card {
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 20, 27, 0.94);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-meta span { color: var(--accent); }

.news-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.news-content {
  color: #d5d9e0;
  line-height: 1.75;
}

.empty-state,
.error-state {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.error-state { color: #ff7b8b; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 620px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
