/* ========================================
   The AI Wrangler — Blog Styles
   ======================================== */

:root {
  --bg:         #000000;
  --bg-card:    #0a0a0a;
  --bg-input:   #1a2235;
  --accent:     #10b981;
  --accent-dim: rgba(16, 185, 129, 0.15);
  --text:       #e2e8f0;
  --text-dim:   rgba(226, 232, 240, 0.5);
  --text-muted: rgba(226, 232, 240, 0.35);
  --border:     rgba(226, 232, 240, 0.08);
  --font-body:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-head:  'Instrument Serif', Georgia, serif;
  --font-mono:  'JetBrains Mono', monospace;
  --max-width:  720px;
  --max-wide:   1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

/* ---- NAV ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
}
.nav-logo:hover { opacity: 1; color: var(--text); }

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: #10b981;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.nav-cta:hover { opacity: 0.9 !important; }

/* ---- HERO ---- */

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-style: italic;
}
.hero-title span { color: var(--accent); font-style: italic; }

.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- POSTS LIST ---- */

.posts {
  padding: 48px 24px 64px;
}

.posts-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  transition: border-color 0.3s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-tag {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.post-card h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); opacity: 1; }

.post-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-read {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---- NEWSLETTER ---- */

.newsletter {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 100%);
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 12px;
  font-style: italic;
}

.newsletter p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.85; }

/* ---- FOOTER ---- */

.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.footer a { color: var(--accent); }

/* ---- ARTICLE PAGE ---- */

.article {
  padding: 64px 24px 80px;
}

.article-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.article-back:hover { color: var(--accent); opacity: 1; }

.article-header {
  margin-bottom: 48px;
}

.article-header .post-meta {
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-header .article-excerpt {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
}

.article-body h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.8;
}

.article-body strong {
  color: #fff;
  font-weight: 700;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(16, 185, 129, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-dim);
}

.article-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 8px;
  margin-top: 0;
  color: var(--text);
}

.article-cta p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

.article-cta a.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .post-card { padding: 24px 20px; }

  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    width: 100%;
  }
}
