/* 0xWills blog — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080a0f;
  --deep: #0c0f18;
  --card: #111520;
  --border: rgba(255,255,255,0.07);
  --accent: #00e5a0;
  --accent2: #0af;
  --text: #e8eaf2;
  --muted: #5a607a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8,10,15,0.85);
  backdrop-filter: blur(20px);
}

#navLogo { height: 72px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

.page-wrap.wide { max-width: 1100px; }

.blog-hero {
  margin-bottom: 56px;
}

.blog-hero .section-tag,
.article-meta .section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero h1,
.article-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.blog-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card:hover {
  border-color: rgba(0,229,160,0.35);
  transform: translateY(-2px);
}

.post-card .tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.post-card .read-more {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.article-header { margin-bottom: 40px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.article-author {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-author a {
  color: var(--accent);
  text-decoration: none;
}

.article-author a:hover { text-decoration: underline; }

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
  color: rgba(232,234,242,0.92);
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: rgba(232,234,242,0.92);
}

.article-body li { margin-bottom: 8px; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body strong { color: var(--text); font-weight: 500; }

.callout {
  background: rgba(0,229,160,0.06);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}

.callout p:last-child { margin-bottom: 0; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p { margin: 0; }

.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  margin-bottom: 12px;
}

.related-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.related-list a:hover { text-decoration: underline; }

.article-disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}

.article-disclaimer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-box {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0,229,160,0.08), rgba(0,170,255,0.05));
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 8px;
  text-align: center;
}

.cta-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--black);
  background: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.9; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-note a { color: inherit; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(0,229,160,0.35);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .page-wrap { padding: 96px 20px 60px; }
  footer { flex-direction: column; text-align: center; padding: 24px 20px; }
}

@media (max-width: 600px) {
  nav { padding: 10px 16px; min-height: auto; }
  #navLogo { height: 44px; }
}
