/* Developer Insights — matches peoplenottech.com/developerinsights editorial layout */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --di-bg: #fafafa;
  --di-fg: #111;
  --di-muted: #555;
  --di-accent: #0066cc;
  --di-border: #e5e5e5;
  --di-card: #fff;
  --di-max: 720px;
  /* Keep Ghost Source tokens aligned (avoids dark-on-dark on tag/archive in dark mode) */
  --background-color: var(--di-bg);
  --color-primary-text: var(--di-fg);
  --color-secondary-text: var(--di-muted);
  --color-darker-gray: var(--di-fg);
  --color-border: var(--di-border);
}

@media (prefers-color-scheme: dark) {
  :root {
    --di-bg: #0f0f10;
    --di-fg: #e8e8e8;
    --di-muted: #aaa;
    --di-accent: #7ab2ff;
    --di-border: #222;
    --di-card: #1a1a1c;
  }
}

html.has-dark-text,
html.has-light-text {
  --color-primary-text: var(--di-fg);
  --color-secondary-text: var(--di-muted);
  --color-darker-gray: var(--di-fg);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  background: var(--di-bg) !important;
  color: var(--di-fg) !important;
}

a {
  color: var(--di-accent);
}

a:hover {
  opacity: 0.85;
}

.gh-outer,
.gh-inner {
  max-width: var(--di-max);
}

.gh-navigation-members,
.gh-navigation-actions .gh-button[href*="portal"] {
  display: none !important;
}

.gh-content,
.gh-post-content,
.gh-article {
  max-width: var(--di-max);
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 1.65;
}

.gh-content a,
.gh-post-content a {
  color: var(--di-accent);
}

.di-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--di-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.di-named {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--di-accent);
  background: var(--di-card);
  line-height: 1.4;
}

.di-scenes {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.di-scenes li {
  padding: 10px 0;
  border-bottom: 1px solid var(--di-border);
}

.di-attribution {
  font-size: 14px;
  color: var(--di-muted);
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--di-border);
  font-style: italic;
}

/* SQL archive: WP-Syntax legacy + Ghost pre/code */
.gh-content pre,
.gh-content pre code {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 14px;
  line-height: 1.5;
}

.gh-content pre {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--di-card);
  border: 1px solid var(--di-border);
  border-radius: 6px;
  color: var(--di-fg);
  white-space: pre;
  word-wrap: normal;
}

.gh-content pre code {
  padding: 0;
  background: transparent;
  border: none;
  font-size: inherit;
  color: inherit;
}

.gh-content :not(pre) > code {
  background: var(--di-card);
  border: 1px solid var(--di-border);
  color: var(--di-fg);
}

.gh-content .wp_syntax {
  display: none;
}

.gh-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

.gh-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.di-home-section {
  margin: 48px auto;
  max-width: var(--di-max);
  padding: 0 24px;
}

.di-home-section h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--di-fg);
}

.di-home-section p {
  color: var(--di-fg);
}

.di-home-section a {
  color: var(--di-accent);
}

.di-home-podcast {
  margin-top: 64px;
  margin-bottom: 80px;
}

/* Tag / author archive listings */
.tag-template .gh-archive,
.author-template .gh-archive,
.tag-template .gh-container,
.author-template .gh-container {
  color: var(--di-fg);
}

.tag-template .gh-article-title,
.author-template .gh-article-title,
.tag-template .gh-card-title,
.author-template .gh-card-title,
.tag-template .gh-card-excerpt,
.author-template .gh-card-excerpt,
.tag-template .gh-card-meta,
.author-template .gh-card-meta {
  color: var(--di-fg);
}

.tag-template .gh-card-meta,
.author-template .gh-card-meta {
  color: var(--di-muted);
}

.di-podcast-embed {
  margin-top: 16px;
  min-height: 180px;
}

.di-adsense {
  margin: 24px auto;
  max-width: var(--di-max);
  text-align: center;
  min-height: 90px;
}

.di-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--di-card);
  border-top: 1px solid var(--di-border);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.di-cookie-banner[hidden] {
  display: none !important;
}

.di-cookie-inner {
  max-width: var(--di-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.di-cookie-actions {
  display: flex;
  gap: 8px;
}

.di-cookie-actions button {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--di-border);
  background: transparent;
  color: var(--di-fg);
}

.di-cookie-actions button.di-cookie-accept {
  background: var(--di-accent);
  border-color: var(--di-accent);
  color: #fff;
}
