:root {
  --ink: #0f172a;
  --muted: #5b677a;
  --line: #e2e8f0;
  --card: rgba(255, 255, 255, 0.86);
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --wash: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.12), transparent 45%),
    linear-gradient(120deg, #f8fafc 0%, #edf2ff 45%, #fdf2f8 100%);
  min-height: 100vh;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand .logo {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand .tagline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.status {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.icon-row {
  display: flex;
  gap: 8px;
}

.icon-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.05);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0 30px;
  font-size: 15px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  animation: reveal 0.45s ease both;
}

.headline {
  margin: 0 0 8px;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.blurb {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.story:nth-child(1) { animation-delay: 0.05s; }
.story:nth-child(2) { animation-delay: 0.1s; }
.story:nth-child(3) { animation-delay: 0.15s; }
.story:nth-child(4) { animation-delay: 0.2s; }
.story:nth-child(5) { animation-delay: 0.25s; }
.story:nth-child(6) { animation-delay: 0.3s; }
.story:nth-child(7) { animation-delay: 0.35s; }
.story:nth-child(8) { animation-delay: 0.4s; }
.story:nth-child(9) { animation-delay: 0.45s; }
.story:nth-child(10) { animation-delay: 0.5s; }

.footer {
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .status {
    width: 100%;
    justify-content: space-between;
  }

  .primary-nav {
    gap: 12px;
  }

  .page {
    padding: 28px 18px 48px;
  }
}
