/* ClawNews — Minimal, fast, readable */
:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #f0883e;
  --accent-hover: #d2691e;
  --link: #58a6ff;
  --border: #30363d;
  --max-width: 800px;
  --spacing: 1.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--accent); text-decoration: none; }
nav a { margin-left: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2rem; color: var(--accent); margin-bottom: 0.5rem; }
.hero p { color: var(--text-muted); font-size: 1.1rem; }

/* Content sections */
section { padding: 2rem 0; }
section h2 { font-size: 1.3rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }

/* Cards */
.brief-card, .article-card, .list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.brief-card time, .article-card time, .list-item time {
  font-size: 0.8rem; color: var(--text-muted);
}
.brief-card h3, .article-card h3, .list-item h2 {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}
.brief-card p, .article-card p, .list-item p {
  color: var(--text-muted); font-size: 0.95rem;
}
.view-all { display: inline-block; margin-top: 1rem; font-size: 0.9rem; }

/* Post */
.post header { padding: 2rem 0 1rem; }
.post header time { font-size: 0.85rem; color: var(--text-muted); }
.post header h1 { font-size: 1.8rem; margin: 0.5rem 0; }
.tags .tag {
  display: inline-block; background: var(--bg-surface); border: 1px solid var(--border);
  padding: 0.15rem 0.6rem; border-radius: 3px; font-size: 0.8rem; margin-right: 0.4rem; color: var(--text-muted);
}
.content { padding: 1rem 0; }
.content h2, .content h3 { margin: 1.5rem 0 0.5rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content code { background: var(--bg-surface); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
.content pre { background: var(--bg-surface); padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; }
.content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-muted); margin-bottom: 1rem; }
.content img { max-width: 100%; border-radius: 6px; }

/* Newsletter CTA */
.newsletter-cta {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: var(--max-width);
}
.newsletter-cta h2 { border: none; padding: 0; font-size: 1.3rem; margin-bottom: 0.5rem; }
.newsletter-cta p { color: var(--text-muted); margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); color: var(--text); font-size: 1rem; min-width: 250px;
}
.newsletter-form button {
  padding: 0.6rem 1.5rem; border: none; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; gap: 0.5rem; }
  nav a { margin-left: 0.8rem; }
  .hero h1 { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-form input { min-width: 100%; }
}

/* Footer layout */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.footer-section h3 {
  color: #f0883e;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 0.4rem;
}
.footer-section ul li a {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-section ul li a:hover {
  color: #e6edf3;
}
.footer-bottom {
  border-top: 1px solid #30363d;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-links {
  font-size: 0.85rem;
  color: #8b949e;
}
.footer-links a {
  color: #8b949e;
  text-decoration: none;
}
.footer-links a:hover {
  color: #e6edf3;
}

.hero-cta-row { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-primary, .btn-secondary { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-primary { background: #111827; color: #fff; }
.btn-secondary { border: 1px solid #cbd5e1; color: #111827; background: #fff; }
.hero-proof { margin-top: 0.7rem; color: #4b5563; font-size: 0.95rem; }
.quick-value { margin: 2rem 0; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 0.9rem; }
.value-grid article { border: 1px solid #e5e7eb; border-radius: 10px; padding: 0.9rem; background: #fff; }
.growth-links ul { margin: 0.5rem 0 0 1.2rem; }
.newsletter-trust { color: #4b5563; margin-top: -0.2rem; margin-bottom: 0.8rem; }

/* Accessibility + quality enhancements */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111827;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.post-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quality-box {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0 1.2rem;
}
.quality-box h2 {
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.05rem;
}

.related-articles {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-articles li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.related-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.not-found {
  padding: 2rem 0 3rem;
}
.not-found h1 {
  margin-bottom: 0.4rem;
}
.not-found ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}
