:root {
  --bg: #0f172a;
  --bg-soft: #172036;
  --panel: #ffffff;
  --panel-alt: #eef2ff;
  --text: #0f172a;
  --text-light: #dbe4ff;
  --muted: #64748b;
  --border: #dbe1ea;
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #f8fafc;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  background: #e2e8f0;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  background: var(--bg);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.brand-text { color: var(--text-light); }
.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-light);
  opacity: 0.92;
}
.main-nav a[aria-current="page"] { font-weight: 700; }
.hero {
  background: radial-gradient(circle at top left, #1d4ed8 0%, #0f172a 60%);
  color: white;
  padding: 4rem 0 3rem;
}
.hero-grid,
.two-col,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.hero-grid { grid-template-columns: 1.6fr 0.9fr; }
.two-col { grid-template-columns: 1.5fr 0.9fr; align-items: start; }
.footer-grid { grid-template-columns: repeat(2, 1fr); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #bfdbfe;
  margin: 0 0 0.85rem;
}
.hero h1,
.section h1,
.section h2 {
  line-height: 1.05;
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
.hero-copy,
.section-copy { font-size: 1.05rem; max-width: 66ch; }
.hero-panel,
.ad-card,
.story-card,
.feed-item,
.tip-form {
  background: rgba(255,255,255,0.97);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: 1.4rem;
  align-self: start;
}
.mini-list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}
.section { padding: 3rem 0; }
.section-alt { background: var(--panel-alt); }
.section-heading { margin-bottom: 1.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}
.button-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.story-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
}
.story-card h3 { margin-top: 0; margin-bottom: 0.65rem; font-size: 1.15rem; }
.story-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.badge {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.55rem;
}
.story-card p { color: #334155; }
.story-link {
  margin-top: 0.75rem;
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}
.ad-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  min-height: 240px;
}
.ad-card .sponsor-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.ad-card h3 { margin: 0.45rem 0 0.6rem; }
.ad-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.status { color: var(--muted); }
.feed-list {
  display: grid;
  gap: 0.9rem;
}
.feed-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.feed-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.feed-source {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.form-wrap { max-width: 760px; }
.tip-form {
  padding: 1.2rem;
  border: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}
.tip-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}
.tip-form input,
.tip-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
}
.site-footer {
  background: var(--bg);
  color: var(--text-light);
  padding: 1.5rem 0;
}

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
