/**
 * KineticUltra — Single article prose / content typography.
 * Styles the_content() output inside .k-single-content.
 */

/* ── Base prose ────────────────────────────────────────────────────── */
.k-single-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--k-text);
}

/* Drop cap on first paragraph */
.k-single-content > p:first-of-type::first-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--k-cyan);
  float: left;
  margin-right: 0.625rem;
  margin-top: 0.375rem;
}

.k-single-content p {
  margin: 0 0 1.5rem;
  color: var(--k-text);
}

/* ── Headings ──────────────────────────────────────────────────────── */
.k-single-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--k-text);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--k-cyan);
}

.k-single-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--k-muted);
  margin: 2rem 0 0.75rem;
}

.k-single-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--k-text);
  margin: 1.5rem 0 0.5rem;
}

/* ── Blockquote / pull quote ───────────────────────────────────────── */
.k-single-content blockquote,
.k-single-content .wp-block-quote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--k-surface-2);
  border-left: 4px solid var(--k-violet);
  border-radius: 0 0.375rem 0.375rem 0;
}

.k-single-content blockquote p,
.k-single-content .wp-block-quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-style: italic;
  color: #c9bfff; /* violet light */
  margin: 0 0 0.5rem;
}

.k-single-content blockquote cite,
.k-single-content .wp-block-quote cite {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--k-muted);
  font-style: normal;
}

/* ── Lists ─────────────────────────────────────────────────────────── */
.k-single-content ul,
.k-single-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.k-single-content li {
  margin-bottom: 0.5rem;
  color: var(--k-text);
}

.k-single-content ul li::marker { color: var(--k-cyan); }
.k-single-content ol li::marker {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--k-cyan);
}

/* ── Images / figures ──────────────────────────────────────────────── */
.k-single-content figure,
.k-single-content .wp-block-image {
  margin: 2rem 0;
}

.k-single-content figure img,
.k-single-content .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
  filter: grayscale(1) contrast(1.15);
}

.k-single-content figcaption,
.k-single-content .wp-block-image figcaption,
.k-single-content .wp-element-caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--k-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* ── Inline code ───────────────────────────────────────────────────── */
.k-single-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--k-surface-2);
  color: var(--k-cyan);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* ── Code blocks ───────────────────────────────────────────────────── */
.k-single-content pre,
.k-single-content .wp-block-code {
  margin: 2rem 0;
  background: var(--k-background);
  border-radius: 0.25rem;
  overflow: hidden;
}

.k-single-content pre code,
.k-single-content .wp-block-code code {
  display: block;
  background: none;
  color: var(--k-text);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* Simulated terminal header bar (applied via JS or a custom block) */
.k-single-content .k-code-block {
  border-radius: 0.25rem;
  overflow: hidden;
  margin: 2rem 0;
}

.k-single-content .k-code-block__header {
  background: var(--k-surface-2);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--k-hairline);
}

.k-single-content .k-code-block__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.k-single-content .k-code-block pre {
  margin: 0;
  background: var(--k-background);
  border-radius: 0;
}

/* ── Info callout ──────────────────────────────────────────────────── */
.k-single-content .wp-block-details,
.k-single-content .k-callout {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--k-surface-2);
  border-left: 3px solid var(--k-cyan);
  border-radius: 0 0.375rem 0.375rem 0;
  margin: 2rem 0;
}

.k-single-content .k-callout__icon {
  color: var(--k-cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.k-single-content .k-callout__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--k-text);
  margin: 0 0 0.375rem;
}

.k-single-content .k-callout__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--k-muted);
  margin: 0;
}

/* ── Horizontal rule ───────────────────────────────────────────────── */
.k-single-content hr {
  border: none;
  height: 1px;
  background: var(--k-hairline);
  margin: 2.5rem 0;
}

/* ── Links ─────────────────────────────────────────────────────────── */
.k-single-content a {
  color: var(--k-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.k-single-content a:hover {
  text-decoration-color: var(--k-cyan);
}

/* ── Strong / em ───────────────────────────────────────────────────── */
.k-single-content strong { font-weight: 700; color: var(--k-text); }
.k-single-content em     { font-style: italic; color: var(--k-muted); }
