/* ── Bestyrelsesassistenten — Blog CSS ────────────────────────────────────────
   Bruges af alle Codex-genererede blog-sider og blog/index.html
   ──────────────────────────────────────────────────────────────────────────── */

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

:root {
  --brand:       #1a5276;
  --accent:      #2e86c1;
  --accent-light:#eaf4fb;
  --text:        #1c2b36;
  --muted:       #5d7d8e;
  --rule:        #dde3ea;
  --bg:          #f9fbfd;
  --surface:     #ffffff;
  --radius:      6px;
  --max-prose:   68ch;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* ── Navigation ── */
.site-nav {
  background: var(--brand);
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.2px;
}

/* ── Blog-index ── */
.blog-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.index-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.75rem;
}

.index-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: .5rem;
}

.index-desc { color: var(--muted); font-size: 1.05rem; }

.post-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.post-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}

.post-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(46,134,193,.1);
}

.post-link {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .35rem;
  line-height: 1.3;
}

.post-desc { font-size: .9rem; color: var(--muted); line-height: 1.55; }

.empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ── Artikel-layout ── */
article {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

article header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

article h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: .75rem;
}

.article-meta { font-size: .85rem; color: var(--muted); }

article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  margin: 2.25rem 0 .65rem;
  line-height: 1.3;
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}

article p { margin-bottom: 1.15rem; }

article ul, article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.15rem;
}

article li { margin-bottom: .4rem; }

article strong { font-weight: 600; color: var(--text); }

article a { color: var(--accent); }
article a:hover { text-decoration: underline; }

article blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}

/* ── CTA-sektion (Codex tilføjer denne automatisk) ── */
.cta {
  background: var(--accent-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 0;
  text-align: center;
}

.cta h2 {
  font-size: 1.15rem;
  color: var(--brand);
  margin-bottom: .5rem;
}

.cta p { color: var(--muted); margin-bottom: 1.1rem; font-size: .95rem; }

.cta a, .cta-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s;
}

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

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--muted);
}

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

/* ── Responsivt ── */
@media (max-width: 600px) {
  .blog-index, article { padding-left: 1rem; padding-right: 1rem; }
  .site-nav { padding: .9rem 1rem; }
}
