/* ── Mnesti Blog — Shared Article Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --surface2:#1e1e1e;
  --border:  #2a2a2a;
  --white:   #f5f0eb;
  --grey:    #999;
  --grey2:   #666;
  --accent:  #d97757;
  --accent2: #c4633f;
  --text:    #e8e2db;
  --text2:   #c8c2bb;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: background 0.3s, border-color 0.3s;
}
#main-nav.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 0.88rem; color: var(--grey); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Article layout ── */
.article-main { padding-top: 80px; padding-bottom: 80px; }

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--grey2);
  margin-bottom: 32px; padding-top: 24px;
}
.breadcrumb a { color: var(--grey); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

/* ── Article header ── */
.article-header { margin-bottom: 48px; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(217,119,87,0.1); border: 1px solid rgba(217,119,87,0.25);
  border-radius: 100px; padding: 3px 10px;
}

.article-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2; color: var(--white);
  margin-bottom: 16px;
}

.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--grey2);
  margin-bottom: 24px;
}

.article-intro {
  font-size: 1.1rem; color: var(--grey); line-height: 1.75;
  padding-left: 20px; border-left: 3px solid var(--accent);
}

/* ── Article body ── */
.article-body { color: var(--text2); line-height: 1.85; }

.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--white);
  margin: 48px 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--white);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--white); font-weight: 600; }

.article-body em { font-style: italic; color: var(--text); }

.article-body a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.2s;
}
.article-body a:hover { color: var(--accent2); }

/* ── Callout ── */
.article-callout {
  background: rgba(217,119,87,0.06);
  border: 1px solid rgba(217,119,87,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.97rem; color: var(--text); line-height: 1.7;
}
.article-callout strong { color: var(--accent); }

/* ── In-article CTA ── */
.article-cta {
  background: linear-gradient(135deg, #1e100a 0%, #251507 100%);
  border: 1px solid rgba(217,119,87,0.2);
  border-radius: 14px;
  padding: 32px 32px;
  margin: 48px 0;
  text-align: center;
}
.article-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--white); margin-bottom: 10px;
}
.article-cta p {
  font-size: 0.95rem; color: var(--grey); margin-bottom: 20px;
  max-width: 460px; margin-left: auto; margin-right: auto;
}
.article-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
/* Override .article-body a which has higher specificity (0,1,1) vs (0,1,0) */
.article-body .article-cta-btn,
.article-body .article-cta-btn:hover {
  color: #fff;
  text-decoration: none;
}
.article-cta-btn:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Related articles ── */
.article-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.article-related h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 24px;
}
.related-grid { display: flex; flex-direction: column; gap: 12px; }
.related-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--accent); }
.related-emoji { font-size: 1.6rem; flex-shrink: 0; }
.related-card div { display: flex; flex-direction: column; gap: 3px; }
.related-card strong { font-size: 0.95rem; color: var(--white); font-weight: 600; }
.related-card span { font-size: 0.82rem; color: var(--grey); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--grey); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: var(--grey2); }

@media (max-width: 600px) {
  .article-header h1 { font-size: 1.65rem; }
  .article-intro { font-size: 1rem; }
  .nav-link { display: none; }
  .article-cta { padding: 24px 20px; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}
