/* The Intune Pros — Theme v1.0 */

:root {
  --bg:        #0f1117;
  --bg-card:   #1a1d27;
  --bg-hover:  #22263a;
  --border:    #2a2d3e;
  --accent:    #4f8ef7;
  --accent-dim:#3a6fd8;
  --text:      #e2e8f0;
  --text-dim:  #94a3b8;
  --text-muted:#64748b;
  --mono:      'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:     720px;
  --radius:    8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  font-family: var(--mono);
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--accent-dim) !important; }

/* ── Hero ── */
.site-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ── Subscribe Form ── */
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}

.subscribe-form input[type="email"]::placeholder { color: var(--text-muted); }

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.15s;
  white-space: nowrap;
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  width: 100%;
}

/* ── Post Grid ── */
.posts-section { padding: 60px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.post-card-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.post-card-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card-link::after { content: ' →'; }

/* ── Single Post ── */
.post-header { padding: 60px 0 40px; }

.post-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta-divider { opacity: 0.3; }

/* ── Post Content ── */
.post-content {
  padding: 40px 0 80px;
}

.gh-content { font-size: 1.05rem; line-height: 1.8; }

.gh-content p { margin-bottom: 1.5em; color: var(--text); }

.gh-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.5em 0 0.75em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}

.gh-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 2em 0 0.6em;
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  color: var(--text);
}

.gh-content li { margin-bottom: 0.5em; }

.gh-content strong { color: var(--text); font-weight: 700; }

.gh-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.gh-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 1.5em;
  color: var(--text-dim);
  font-style: italic;
}

.gh-content a { color: var(--accent); border-bottom: 1px solid rgba(79,142,247,0.3); }
.gh-content a:hover { border-bottom-color: var(--accent); }

/* ── CTA Block ── */
.post-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 48px 0;
  text-align: center;
}

.post-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.post-cta p {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-copy { font-size: 0.825rem; color: var(--text-muted); }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 0.825rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-nav .nav-links { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { min-width: unset; width: 100%; }
}

/* ── Ghost Members UI overrides ── */
.gh-portal-triggerbtn { display: none !important; }

/* Ghost Koenig editor required classes */
.kg-width-wide { margin-left: calc(50% - 50vw + 24px); margin-right: calc(50% - 50vw + 24px); }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-content { }
