/* ── Blog Article Styles — DeclaraAI ── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #0c0c1d;
  --paper: #faf9f7;
  --accent: #2240bf;
  --accent-hover: #1a35a0;
  --accent-light: #e8ecfc;
  --green: #1a8a5c;
  --green-light: #e6f5ee;
  --gray-100: #f5f4f2;
  --gray-200: #e8e7e4;
  --gray-400: #9c9b97;
  --gray-600: #5c5b58;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

/* ── NAV ── */
nav:first-of-type {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-nav:hover {
  background: var(--accent-hover);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 40px 0;
  font-size: 14px;
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── ARTICLE ── */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}

.article-content header {
  margin-bottom: 40px;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-content h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.article-meta time {
  font-weight: 500;
}

.author {
  color: var(--gray-600);
  font-weight: 500;
}

/* ── BODY CONTENT ── */
.article-content section {
  margin-bottom: 32px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--gray-600);
}

.article-content ul {
  margin: 0 0 16px 24px;
  color: var(--gray-600);
}

.article-content li {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── TABLE ── */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.article-content th {
  font-weight: 700;
  background: var(--gray-100);
  color: var(--ink);
}

.article-content td {
  color: var(--gray-600);
}

/* ── CTA ── */
.article-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--accent-light);
  border-radius: 16px;
  margin-top: 48px;
}

.article-cta h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.article-cta p {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-cta:hover {
  background: var(--accent-hover);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
  font-size: 13px;
  border-top: 1px solid var(--gray-200);
  margin-top: 60px;
}

footer a {
  color: var(--gray-600);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ── HAMBURGER + OVERLAY ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav:first-of-type {
    padding: 12px 20px;
  }

  .breadcrumb {
    padding: 90px 20px 0;
  }

  .article-content {
    padding: 20px 20px 60px;
  }

  .article-content h1 {
    font-size: 28px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-cta {
    padding: 32px 20px;
  }

  .article-cta h3 {
    font-size: 24px;
  }
}
