/* ===========================================================
   Instalamos Tu Red — blog post styling
   Scoped to body.single-post only (WordPress adds this class on
   every single post automatically — nothing global is touched).
   Reuses the same design tokens as the landing page.
   =========================================================== */

body.single-post {
  --ink-900: #131211;
  --ink-800: #1e1d1b;
  --ink-700: #2b2926;
  --paper-000: #ffffff;
  --paper-050: #faf9f7;
  --paper-100: #f3f2f0;
  --paper-200: #edebe7;
  --paper-300: #e2e0db;
  --yellow-400: #ffc107;
  --yellow-500: #e6ac00;
  --yellow-100: #fff6dc;
  --gray-700: #4a4844;
  --gray-500: #6d6a65;
  --gray-400: #8f8c86;
  --border-hairline: rgba(19, 18, 17, 0.08);
  --border-card: rgba(19, 18, 17, 0.06);
  --shadow-card: 0 4px 18px rgba(19, 18, 17, 0.05);
  --shadow-media: 0 10px 28px rgba(19, 18, 17, 0.14);
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

body.single-post .entry-header,
body.single-post .wp-block-post-content,
body.single-post .wp-site-blocks {
  font-family: var(--font-body);
  color: var(--gray-700);
}

/* Headline + meta */
body.single-post .wp-block-post-title,
body.single-post h1.entry-title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.12;
  color: var(--ink-900) !important;
  max-width: 900px;
  font-size: clamp(32px, 4.4vw, 56px) !important;
}

body.single-post .itr-post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--paper-300);
  background: var(--paper-000);
  color: var(--ink-900);
  font: italic 700 11px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
body.single-post .itr-post-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-900);
}

body.single-post .itr-post-meta {
  font: 500 13.5px/1.6 var(--font-body);
  color: var(--gray-500);
  margin: 14px 0 0;
}

/* Body content */
body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3,
body.single-post .wp-block-post-content h4 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink-900);
  line-height: 1.16;
}
body.single-post .wp-block-post-content h2 { font-size: clamp(26px, 2.6vw, 34px) !important; margin-top: 3em; }
body.single-post .wp-block-post-content h3 { font-size: 20px !important; margin-top: 2em; }

body.single-post .wp-block-post-content p {
  font: 400 17px/1.72 var(--font-body);
  color: var(--gray-700);
}

body.single-post .wp-block-post-content > .wp-block-paragraph:first-of-type {
  font: 500 20px/1.6 var(--font-body);
  color: var(--gray-700);
}

body.single-post .wp-block-post-content a:not(.wp-block-button__link) {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--yellow-400);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
body.single-post .wp-block-post-content a:not(.wp-block-button__link):hover {
  color: var(--yellow-500);
}

/* Lists */
body.single-post .wp-block-post-content ul:not(.wp-block-gallery),
body.single-post .wp-block-post-content ol {
  padding-left: 0;
  margin: 1.4em 0;
  list-style: none;
}
body.single-post .wp-block-post-content ul:not(.wp-block-gallery) li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font: 400 16px/1.6 var(--font-body);
}
body.single-post .wp-block-post-content ul:not(.wp-block-gallery) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow-400);
}
body.single-post .wp-block-post-content ol {
  counter-reset: itr-ol;
}
body.single-post .wp-block-post-content ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  font: 400 16px/1.6 var(--font-body);
  counter-increment: itr-ol;
}
body.single-post .wp-block-post-content ol li::before {
  content: counter(itr-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -1px;
  font: 400 13px/1 var(--font-display);
  color: var(--ink-900);
  background: var(--yellow-100);
  border-radius: 8px;
  padding: 6px 8px;
}

/* Images */
body.single-post .wp-block-image img,
body.single-post .wp-block-post-featured-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-media);
}
body.single-post .wp-block-image figcaption {
  font: 500 12px/1.5 var(--font-body);
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}
body.single-post .wp-block-post-featured-image {
  margin: 0 0 2.4em;
}

/* Quote / pull-quote */
body.single-post .wp-block-quote {
  border: none;
  border-left: none;
  background: var(--paper-050);
  border-radius: 16px;
  border: 1px solid var(--border-card);
  padding: 32px 34px;
  margin: 2.4em 0;
  position: relative;
}
body.single-post .wp-block-quote::before {
  content: "\201C";
  font: 400 64px/1 var(--font-display);
  color: var(--yellow-400);
  display: block;
  margin-bottom: 6px;
}
body.single-post .wp-block-quote p {
  font: 500 21px/1.5 var(--font-body) !important;
  color: var(--ink-900) !important;
  margin: 0;
}
body.single-post .wp-block-quote cite {
  display: block;
  margin-top: 14px;
  font: 400 13px/1.4 var(--font-body);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

/* Buttons (reuse the brand pill button) */
body.single-post .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--ink-900);
  font: italic 700 15px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 140ms ease;
}
body.single-post .wp-block-button__link:hover {
  background: var(--yellow-500);
  color: var(--ink-900);
}
body.single-post .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--ink-900);
  color: var(--ink-900);
}

/* Callout / group card */
body.single-post .itr-callout {
  background: var(--ink-900);
  color: var(--paper-000);
  border-radius: 20px;
  padding: 34px 36px;
  margin: 2.6em 0;
}
body.single-post .itr-callout h3,
body.single-post .itr-callout p {
  color: var(--paper-000) !important;
}
body.single-post .itr-callout .wp-block-button__link {
  margin-top: 6px;
}

/* Separator */
body.single-post .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: 3em auto;
  width: 60px;
  opacity: 1;
}
body.single-post .wp-block-separator.is-style-wide {
  width: 100%;
}

/* Table of contents / columns used as feature grid */
body.single-post .wp-block-columns {
  gap: 28px;
}
body.single-post .itr-feature-card {
  background: var(--paper-050);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}
body.single-post .itr-feature-card h4 {
  font-family: var(--font-display) !important;
  text-transform: uppercase;
  font-size: 15px !important;
  letter-spacing: 0.03em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
body.single-post .itr-feature-card p {
  font-size: 14.5px !important;
  color: var(--gray-500);
  margin: 0;
}

@media (max-width: 600px) {
  body.single-post .wp-block-columns { flex-wrap: wrap; }
  body.single-post .itr-callout { padding: 26px 22px; }
  body.single-post .wp-block-quote { padding: 24px 22px; }
}
