/* ─────────────────────────────────────────────────
   christianmerkel.com — Article pages
   Shared stylesheet for all /articles/* pages
   ───────────────────────────────────────────────── */

:root {
  --bg:          #08101c;
  --bg-soft:     #0d1826;
  --text:        #edf3fb;
  --muted:       #b8c5d7;
  --muted-light: #d3dce9;
  --line:        rgba(183,201,223,0.13);
  --line-strong: rgba(183,201,223,0.22);
  --gold:        #d8b36b;
  --gold-soft:   rgba(216,179,107,0.12);
  --gold-glow:   rgba(216,179,107,0.24);
  --accent:      #6e8cc7;
  --shadow-lg:   0 32px 96px rgba(0,0,0,0.46);
  --max:         800px;
  --max-wide:    1100px;
  --sans:        "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background: #07101b;
  background-image:
    radial-gradient(ellipse 60% 30% at 15% 0%, rgba(110,140,199,0.14), transparent 55%),
    radial-gradient(ellipse 40% 25% at 88% 8%,  rgba(216,179,107,0.1),  transparent 50%);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; }
p     { margin: 0 0 1.3rem; }
p:last-child { margin-bottom: 0; }

/* ── Skip link ───────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── NAV ─────────────────────────────────────────── */
.article-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 1rem 1.25rem;
}
.article-nav-shell {
  max-width: var(--max-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,16,28,0.85);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none;
}
.nav-brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(216,179,107,0.35);
  background: linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.015));
  display: grid; place-items: center;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--gold);
  flex-shrink: 0;
}
.nav-brand-name {
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-back {
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.18s;
}
.nav-back:hover { color: var(--gold); }
.nav-back-arrow { font-size: 0.9rem; }

/* ── HERO ────────────────────────────────────────── */
.article-hero {
  max-width: var(--max-wide); margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}
.article-hero-image {
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}
.article-hero-image img { width: 100%; display: block; }

/* Gartner photo grid */
.article-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem; margin-bottom: 3rem;
}
.article-photo-grid img {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 16px 48px rgba(0,0,0,0.36);
  width: 100%; height: 280px; object-fit: cover; display: block;
}
.article-photo-grid img:first-child {
  grid-column: span 2; height: 380px;
}

/* ── ARTICLE WRAPPER ─────────────────────────────── */
.article-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

/* ── META BAR ────────────────────────────────────── */
.article-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem; margin-bottom: 2rem;
}
.meta-tag {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(216,179,107,0.32);
  color: var(--gold);
  background: rgba(216,179,107,0.08);
}
.meta-tag.tag-live    { border-color: rgba(72,199,120,0.35); color: #48c778; background: rgba(72,199,120,0.1); }
.meta-tag.tag-draft   { border-color: rgba(216,179,107,0.32); color: var(--gold); background: var(--gold-soft); }
.meta-date {
  font-size: 0.8rem; color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── TITLE ───────────────────────────────────────── */
.article-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.04em; margin: 0 0 1.4rem;
}
.article-subtitle {
  font-size: 1.2rem; color: var(--muted-light);
  line-height: 1.65; margin-bottom: 2.5rem;
  max-width: 56ch;
}

/* ── AUTHOR ──────────────────────────────────────── */
.article-author {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  margin-bottom: 3rem;
}
.author-photo {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(216,179,107,0.3); flex-shrink: 0;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.author-role { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

/* ── DIVIDER ─────────────────────────────────────── */
.article-divider {
  border: none; border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ── BODY TEXT ───────────────────────────────────── */
.article-body {
  font-size: 1.06rem; line-height: 1.8; color: var(--muted-light);
}
.article-body h2 {
  font-size: 1.55rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.2;
  color: var(--text); margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
  margin: 2rem 0 0.75rem;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--muted-light); }
.article-body a { color: var(--gold); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* ── CALLOUT / PULLQUOTE ─────────────────────────── */
.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: rgba(216,179,107,0.07);
  border-radius: 0 14px 14px 0;
}
.callout p { color: var(--muted-light); font-size: 1.05rem; line-height: 1.7; margin: 0; }

.pullquote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(216,179,107,0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216,179,107,0.07), rgba(255,255,255,0.02));
  text-align: center;
}
.pullquote p {
  font-size: 1.25rem; font-weight: 600;
  line-height: 1.5; letter-spacing: -0.02em;
  color: var(--text); margin: 0;
}

/* ── NUMBERED LIST ───────────────────────────────── */
.article-body ol {
  padding-left: 0; margin: 1.2rem 0;
  list-style: none; counter-reset: art-counter;
}
.article-body ol li {
  counter-increment: art-counter;
  padding: 0.85rem 1rem 0.85rem 3.5rem;
  margin-bottom: 0.6rem;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  color: var(--muted-light);
  font-size: 1rem; line-height: 1.65;
}
.article-body ol li::before {
  content: counter(art-counter);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b98f48);
  color: #07101b; font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.article-body ul {
  padding-left: 0; margin: 1rem 0; list-style: none;
}
.article-body ul li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative; color: var(--muted-light);
  font-size: 1rem; line-height: 1.65;
}
.article-body ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--gold); opacity: 0.6; font-size: 0.8rem;
}

/* ── STAT ROW ────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1rem; margin: 2rem 0;
}
.stat-box {
  padding: 1.25rem 1rem; text-align: center;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.025);
}
.stat-box strong {
  display: block; font-size: 1.9rem;
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--gold); line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-box span { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

/* ── LINKEDIN POST BOX ───────────────────────────── */
.linkedin-post-box {
  margin: 3rem 0;
  border: 1px solid rgba(216,179,107,0.22);
  border-radius: 18px;
  overflow: hidden;
}
.linkedin-post-header {
  padding: 1rem 1.4rem;
  background: rgba(216,179,107,0.08);
  border-bottom: 1px solid rgba(216,179,107,0.18);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.linkedin-post-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.linkedin-post-link {
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(216,179,107,0.3);
  background: rgba(216,179,107,0.08);
  transition: background 0.18s, border-color 0.18s;
}
.linkedin-post-link:hover {
  background: rgba(216,179,107,0.16);
  border-color: rgba(216,179,107,0.5);
  text-decoration: none;
}
.linkedin-post-body {
  padding: 1.6rem 1.6rem;
  background: rgba(255,255,255,0.02);
  font-size: 0.97rem; line-height: 1.78;
  color: var(--muted-light); white-space: pre-line;
}
.linkedin-post-body p { margin: 0 0 0.85rem; }
.linkedin-hashtags {
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── TAG IMAGE ───────────────────────────────────── */
.article-img {
  margin: 2.5rem 0;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 16px 48px rgba(0,0,0,0.34);
}
.article-img img { width: 100%; display: block; }
.article-img figcaption {
  padding: 0.7rem 1.1rem;
  font-size: 0.8rem; color: var(--muted);
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--line);
}

/* ── ARTICLE FOOTER ──────────────────────────────── */
.article-footer-card {
  margin-top: 4rem;
  padding: 2.25rem;
  border: 1px solid rgba(216,179,107,0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(216,179,107,0.07), rgba(255,255,255,0.02));
}
.article-footer-card h3 { margin: 0 0 0.6rem; font-size: 1.2rem; font-weight: 600; }
.article-footer-card p  { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.article-footer-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-size: 0.86rem;
  font-weight: 600; letter-spacing: 0.03em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg,#d8b36b,#b98f48);
  color: #070e19;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(216,179,107,0.35); }
.btn-secondary {
  border-color: rgba(216,179,107,0.32);
  background: rgba(216,179,107,0.06); color: var(--text);
}
.btn-secondary:hover {
  border-color: rgba(216,179,107,0.55);
  background: rgba(216,179,107,0.12);
}

/* ── SITE FOOTER ─────────────────────────────────── */
.article-site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.article-site-footer p {
  font-size: 0.78rem; color: rgba(183,201,223,0.4);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 720px) {
  .article-nav { padding: 0.75rem 1rem; }
  .article-title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .article-subtitle { font-size: 1.05rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .article-photo-grid img:first-child { height: 250px; }
  .article-photo-grid img { height: 180px; }
  .nav-brand-name { display: none; }
  .pullquote p { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .article-photo-grid { grid-template-columns: 1fr; }
  .article-photo-grid img:first-child { grid-column: span 1; height: 220px; }
}
