:root {
  --bg: #0f0f11;
  --bg-elevated: #1a1a1d;
  --bg-card-hover: #1f1f23;
  --text: #f2f2f2;
  --text-muted: #9a9a9e;
  --teal: #4ca9a6;
  --teal-soft: rgba(76, 169, 166, 0.14);
  --green: #61ce70;
  --gold: #fec42d;
  --border: #26262a;
  --max-width: 760px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(76, 169, 166, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(97, 206, 112, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #0f0f11;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Header ---- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-accent { color: var(--teal); font-weight: 600; }

.rss-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.rss-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Layout ---- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.hero {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
  max-width: 56ch;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(97, 206, 112, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(97, 206, 112, 0.25);
}

/* ---- Article cards (index) ---- */

.article-card {
  border-bottom: 1px solid var(--border);
  padding: 26px 20px;
  margin: 0 -20px;
  border-radius: 10px;
  transition: background 0.18s;
}

.article-card:hover { background: var(--bg-card-hover); }

.article-card:last-child { border-bottom: none; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.source-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 5px;
  padding: 3px 9px;
}

.card-date, .meta-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.article-card h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.2s;
}
.article-card h2 a:hover {
  color: var(--teal);
  background-size: 100% 2px;
}

.lede {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0 0 10px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

.empty-state {
  color: var(--text-muted);
  padding: 40px 0;
  text-align: center;
}

/* ---- Article full page ---- */

article.article-full .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

article.article-full h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede-block {
  background: var(--bg-elevated);
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: 1.02rem;
}

article.article-full p { font-size: 1.03rem; }

.cover {
  width: 100%;
  border-radius: 10px;
  margin: 4px 0 24px;
  display: block;
}

.source-attribution {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.source-attribution a { color: var(--teal); font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--teal); }

a { color: var(--green); }

/* ---- Footer ---- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

footer.site-footer .wrap { max-width: var(--max-width); margin: 0 auto; }

footer.site-footer p { margin: 0 0 6px; }
footer.site-footer a { color: var(--teal); }
.footer-note { color: #6d6d71; font-size: 0.8rem; }

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  article.article-full h1 { font-size: 1.5rem; }
  .article-card { padding: 22px 16px; margin: 0 -16px; }
}
