/* ─────────────────────────────────────────
   bruno · Blog article template
   Dark theme matching the main site
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07070D;
  --surface:   #0E0E18;
  --surface2:  #14141F;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #FFFFFF;
  --text2:     #94A3B8;
  --text3:     #5A6780;
  --blue:      #4B7ADB;
  --blue-light:#7AA3F5;
  --blue-dim:  rgba(75,122,219,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── NAV ── */
.bnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(7,7,13,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.bnav-logo { display: flex; align-items: center; }
.bnav-logo img { height: 26px; width: auto; display: block; }
.bnav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  text-decoration: none; transition: color 0.2s;
}
.bnav-back:hover { color: var(--text); }
.bnav-back .arr { transition: transform 0.2s; }
.bnav-back:hover .arr { transform: translateX(-3px); }

/* ── ARTICLE SHELL ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.article-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-light);
  padding: 6px 12px;
  background: var(--blue-dim);
  border: 1px solid rgba(75,122,219,0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}
.article-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 28px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text3);
}
.article-meta .author { color: var(--text2); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); }

/* ── ARTICLE BODY ── */
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--text2); }
.article-body > * + * { margin-top: 24px; }
.article-body p { text-wrap: pretty; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--blue-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,163,245,0.35);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--blue-light); }

.article-body h2 {
  font-size: 26px; font-weight: 800; color: var(--text);
  letter-spacing: -0.6px; line-height: 1.2;
  margin-top: 52px;
}
.article-body h3 {
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.4px; line-height: 1.25;
  margin-top: 44px;
}
.article-body h4 {
  font-size: 18px; font-weight: 700; color: var(--text);
  letter-spacing: -0.2px;
  margin-top: 36px;
}
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: var(--blue); }

/* Pull quote / highlighted line */
.article-pull {
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--blue);
  font-size: 22px; font-weight: 500; font-style: italic;
  line-height: 1.4; color: var(--text);
  letter-spacing: -0.3px;
}
.article-note {
  font-size: 15px; color: var(--text3); font-style: italic;
}

/* ── SHARE ── */
.article-share {
  display: flex; align-items: center; gap: 12px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-share-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.article-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none;
  transition: all 0.2s;
}
.article-share a:hover { border-color: rgba(75,122,219,0.4); color: var(--blue-light); background: var(--surface2); }
.article-share svg { width: 17px; height: 17px; }

/* ── RELATED ── */
.related {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #050508 100%);
}
.related-inner { max-width: 1140px; margin: 0 auto; padding: 72px 24px 90px; }
.related-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 28px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 26px 22px;
  text-decoration: none; min-height: 170px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(75,122,219,0.35); background: var(--surface2); }
.related-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--blue-light);
  padding: 4px 10px; border-radius: 100px;
  background: var(--blue-dim); border: 1px solid rgba(75,122,219,0.2);
}
.related-card h4 { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; line-height: 1.35; }
.related-card .foot {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center;
  font-size: 12px; color: var(--text3);
}
.related-card .foot .arr { margin-left: auto; color: var(--blue-light); font-weight: 700; transition: transform 0.2s; }
.related-card:hover .foot .arr { transform: translateX(4px); }

/* ── FOOTER ── */
.bfoot {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.bfoot img { height: 24px; width: auto; }
.bfoot .legal { font-size: 13px; color: var(--text3); }
.bfoot .links { display: flex; gap: 22px; }
.bfoot .links a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.bfoot .links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bnav { padding: 14px 18px; }
  .article { padding: 48px 20px 32px; }
  .article-body { font-size: 16.5px; }
}
