/* neuralwave blog — shares the landing page's palette and typography */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --bg: #1A1A24;
  --surface: #22222e;
  --copper: #c8946e;
  --copper-dim: #8b6042;
  --mint: #7ee6c4;
  --mint-dim: #3d7a64;
  --text: #d4d0ca;
  --text-bright: #e8e4e0;
  --text-dim: #8e8880;
  --hairline: rgba(200, 148, 110, 0.12);
  --hairline-mint: rgba(126, 230, 196, 0.08);
}

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- NAV --- */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(26,26,36,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.nav-brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.nav-wordmark {
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.4rem; font-weight: 500; letter-spacing: 0.09em;
  text-transform: lowercase; color: var(--text-bright); line-height: 1;
}
.nav-tagline {
  margin-top: 0.55rem; font-size: 0.68rem; font-weight: 500; line-height: 1;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.26em;
  white-space: nowrap; margin-right: -0.26em;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  text-decoration: none; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--mint); }
.nav-cta {
  display: inline-flex; align-items: center; text-decoration: none;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mint); border: 1px solid var(--mint-dim); padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--mint); color: var(--bg); }
.nav-link:focus-visible, .nav-cta:focus-visible, .nav-brand:focus-visible,
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* --- LAYOUT --- */
.wrap { max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.wrap-wide { max-width: 900px; }

.breadcrumb {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 2.5rem;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb span[aria-current] { color: var(--copper); }

.eyebrow {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--copper); margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.12; color: var(--text-bright);
  margin-bottom: 1.25rem;
}
.article-meta {
  font-size: 0.75rem; color: var(--text-dim);
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
}
.lede { font-size: 1.05rem; color: var(--text); margin-bottom: 2rem; }

article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; letter-spacing: -0.02em;
  color: var(--text-bright); margin: 3.5rem 0 1rem; line-height: 1.2;
}
article h3 {
  font-size: 1.1rem; font-weight: 500; color: var(--text-bright);
  margin: 2rem 0 0.6rem; letter-spacing: -0.01em;
}
article p { margin-bottom: 1.25rem; color: var(--text-dim); }
article p strong, article li strong { color: var(--text); font-weight: 500; }
article a { color: var(--mint); text-decoration: none; border-bottom: 1px solid var(--mint-dim); }
article a:hover { border-bottom-color: var(--mint); }
article ul, article ol { margin: 0 0 1.5rem 1.25rem; color: var(--text-dim); }
article li { margin-bottom: 0.6rem; }
article em { color: var(--copper); font-style: normal; }

/* --- TABLE --- */
.table-scroll { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--hairline); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.82rem; }
caption {
  caption-side: top; text-align: left; padding: 1rem 1.25rem 0.5rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper);
}
th, td { padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); font-weight: 500;
}
tbody th { color: var(--mint); font-weight: 500; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* --- TOC --- */
.toc { border: 1px solid var(--hairline); padding: 1.75rem 2rem; margin: 2.5rem 0 3rem; }
.toc h2 {
  font-size: 0.65rem !important; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--copper); margin: 0 0 1rem !important; font-weight: 500;
}
.toc ol { margin: 0 0 0 1.1rem; font-size: 0.85rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { border-bottom: none; color: var(--text-dim); }
.toc a:hover { color: var(--mint); }

/* --- CALLOUT / CTA --- */
.callout {
  border-left: 2px solid var(--copper-dim); padding: 1.25rem 1.5rem;
  background: rgba(200,148,110,0.04); margin: 2rem 0; font-size: 0.9rem;
}
.callout p:last-child { margin-bottom: 0; }
.cta-box {
  border: 1px solid var(--hairline-mint); background: rgba(126,230,196,0.03);
  padding: 2.25rem; margin: 3rem 0; text-align: center;
}
.cta-box h2 { margin-top: 0 !important; font-size: 1.4rem !important; }
.cta-box p { margin-bottom: 1.5rem; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: #10101a; background: var(--mint); padding: 0.85rem 2rem;
  text-decoration: none; border-bottom: none !important;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; }

/* --- POST LIST --- */
.post-list { list-style: none; margin: 3rem 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--hairline); }
.post-list li:last-child { border-bottom: 1px solid var(--hairline); }
.post-link { display: block; padding: 2rem 0; text-decoration: none; border-bottom: none; }
.post-link:hover h2 { color: var(--mint); }
.post-link .post-meta {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--copper); margin-bottom: 0.6rem;
}
.post-link h2 {
  font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em;
  color: var(--text-bright); margin: 0 0 0.6rem; transition: color 0.2s; line-height: 1.25;
}
.post-link p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* --- FOOTER --- */
footer {
  padding: 2.5rem 2rem; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--text-dim);
}
.footer-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--mint); }

@media (max-width: 640px) {
  nav.site-nav { padding: 0.85rem 1.25rem; }
  .nav-wordmark { font-size: 1.25rem; }
  .nav-tagline { display: none; }
  .nav-cta { white-space: nowrap; padding: 0.5rem 1rem; }
  .nav-links { gap: 1rem; }
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  .cta-box { padding: 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}
