/* ============ TAURUS BLOG — shared styles ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #0b0e0c; --bg-2: #111512; --surface: #161b18; --surface-2: #1b211d;
  --line: #232a25; --line-2: #2e372f;
  --text: #e8ebe7; --text-dim: #9aa39c; --text-mute: #6b736d;
  --accent: #4a7a3a; --accent-2: #5d9647; --accent-glow: #4a7a3a33;
  --white: #f4f6f3;
  --radius: 4px; --radius-lg: 8px; --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--white); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent-2); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 14, 12, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-phone {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  color: var(--white); transition: all 0.2s ease;
}
.nav-phone:hover { border-color: var(--accent-2); color: var(--accent-2); }
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============ ARTICLE HEADER ============ */
.article-hero {
  padding-top: 140px; padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.05em; margin-bottom: 32px; display: flex; gap: 10px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span.sep { color: var(--line-2); }

.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.article-meta .tag {
  background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent-2); padding: 5px 12px; border-radius: 3px;
  font-weight: 700;
}
.article-hero h1 {
  font-size: clamp(32px, 5vw, 60px); color: var(--white);
  margin-bottom: 24px; line-height: 1.0;
}
.article-lead {
  font-size: clamp(17px, 2vw, 21px); color: var(--text-dim); line-height: 1.6; max-width: 680px;
}

/* ============ ARTICLE BODY ============ */
.article-body { padding: 56px 0 80px; }
.article-body h2 {
  font-size: clamp(24px, 3.5vw, 36px); color: var(--white);
  margin: 56px 0 20px; line-height: 1.1;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-body); font-weight: 800; text-transform: none;
  font-size: clamp(19px, 2.2vw, 24px); color: var(--white);
  margin: 36px 0 14px; letter-spacing: -0.01em;
}
.article-body p {
  font-size: 17px; color: var(--text-dim); line-height: 1.75; margin-bottom: 20px;
}
.article-body p strong, .article-body li strong { color: var(--white); font-weight: 600; }
.article-body a {
  color: var(--accent-2); border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.article-body a:hover { color: var(--white); border-color: var(--white); }
.article-body ul, .article-body ol {
  margin: 0 0 24px; padding-left: 4px; list-style: none;
}
.article-body ul li, .article-body ol li {
  font-size: 17px; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 12px; padding-left: 32px; position: relative;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 2px; background: var(--accent-2);
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--accent-2);
}

/* TL;DR / Quick answer box */
.tldr {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px; margin: 0 0 48px;
}
.tldr-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.tldr p { font-size: 17px; color: var(--text); line-height: 1.7; margin: 0; }
.tldr p strong { color: var(--white); }

/* Key takeaway callout */
.callout {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 32px 0;
}
.callout-title {
  font-family: var(--font-body); font-weight: 800; font-size: 17px;
  color: var(--white); margin-bottom: 10px; text-transform: none;
  display: flex; align-items: center; gap: 10px;
}
.callout-title svg { color: var(--accent-2); }
.callout p { margin-bottom: 0; }

/* Data table */
.data-table { margin: 32px 0; overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th {
  background: var(--surface-2); color: var(--white); text-align: left;
  padding: 14px 18px; font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  border-bottom: 1px solid var(--line-2);
}
.data-table td {
  padding: 14px 18px; color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--white); }

/* FAQ in article */
.article-faq { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 48px; }
.article-faq h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item h3 {
  margin: 0 0 12px; font-size: 19px; color: var(--white);
  display: flex; gap: 12px; align-items: flex-start;
}
.faq-item h3::before {
  content: "?"; font-family: var(--font-mono); color: var(--accent-2);
  font-weight: 700; flex-shrink: 0;
}
.faq-item p { margin: 0; font-size: 16px; }

/* CTA box */
.article-cta {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: 40px; margin: 56px 0 0; text-align: center;
}
.article-cta h2 { margin: 0 0 12px; color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.article-cta p { margin: 0 auto 28px; max-width: 480px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius);
  transition: all 0.2s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--accent-glow); }

/* Author box */
.author-box {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; margin-top: 48px;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2); flex-shrink: 0; font-family: var(--font-display); font-size: 20px;
}
.author-info .name { font-weight: 700; color: var(--white); font-size: 15px; }
.author-info .role { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.05em; margin-top: 2px; }

/* Related posts */
.related { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0; }
.related h2 { font-size: clamp(22px, 3vw, 30px); color: var(--white); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.post-card h3 {
  font-family: var(--font-body); font-weight: 800; text-transform: none;
  font-size: 18px; color: var(--white); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.01em;
}
.post-card p { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.post-card .read {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-2);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============ FOOTER ============ */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-inner .logo img { height: 24px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============ BLOG INDEX ============ */
.blog-hero { padding-top: 140px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(38px, 6vw, 72px); color: var(--white); margin: 18px 0 20px; }
.blog-hero p { font-size: clamp(16px, 1.8vw, 19px); color: var(--text-dim); max-width: 600px; }
.blog-grid { padding: 56px 0 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
