@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}

header .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

header .brand:visited {
  color: #fff;
}

header .brand:hover {
  color: #ccc;
}

/* Nav */
nav {
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav a {
  color: #666;
  text-decoration: none;
  margin: 0 14px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* Main */
main {
  padding: 40px 0;
  min-height: 60vh;
}

/* Article Cards */
.article-card {
  border-bottom: 1px solid #1a1a1a;
  padding: 28px 0;
}

.article-card:first-child {
  padding-top: 0;
}

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

.article-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card h2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h2 a:hover {
  color: #888;
}

.article-card .excerpt {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-card .meta {
  color: #444;
  font-size: 12px;
  font-weight: 500;
}

/* Article Page */
article {
  padding: 20px 0;
}

article h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.15;
}

article .subtitle {
  font-size: 17px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

article .meta {
  color: #444;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 12px;
  font-weight: 500;
}

article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-top: 42px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

article h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #ccc;
}

article p {
  color: #999;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
}

article ul, article ol {
  margin-bottom: 18px;
  padding-left: 20px;
  color: #999;
}

article li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

article strong {
  color: #fff;
  font-weight: 600;
}

article code {
  background: #141414;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 13px;
  color: #0ea5e9;
}

article blockquote {
  border-left: 2px solid #222;
  padding-left: 20px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}

/* Product/Affiliate Box */
.product-box {
  margin-top: 42px;
  padding: 24px;
  background: linear-gradient(135deg, #0f1a0f 0%, #0a0f0a 100%);
  border: 1px solid #1a2a1a;
  border-radius: 6px;
}

.product-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #4ade80;
}

.product-box p {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.product-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-box li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
}

.product-box a {
  color: #4ade80;
  text-decoration: none;
  font-weight: 500;
}

.product-box a:hover {
  text-decoration: underline;
}

/* Related Articles */
.related-articles {
  margin-top: 42px;
  padding: 24px;
  background: #0f0f0f;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
}

.related-articles h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 8px;
}

.related-articles a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.related-articles a:hover {
  color: #fff;
}

.back-link {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
}

.back-link a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.back-link a:hover {
  color: #fff;
}

/* CTA */
.subscribe-box {
  margin-top: 36px;
  padding: 32px;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  text-align: center;
  background: #0f0f0f;
}

.subscribe-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.subscribe-box p {
  color: #555;
  font-size: 13px;
  margin: 0;
}

/* Page Header */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1a1a1a;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header .page-desc {
  color: #666;
  font-size: 15px;
  margin: 0;
}

/* Footer */
footer {
  border-top: 1px solid #1a1a1a;
  padding: 28px 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

footer p {
  margin: 0;
  color: #333;
  font-size: 12px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  nav a {
    margin: 0 10px;
    font-size: 12px;
  }
  
  article h1 {
    font-size: 26px;
  }
  
  .article-card h2 {
    font-size: 18px;
  }
  
  .container {
    padding: 0 16px;
  }
}
