/* spintech-child — editorial single-post layout
 * Owns the visual treatment for /blog/<slug>/ pages. Single-column 760px
 * reading width, mono eyebrow, Fraunces title, hairline rules. Neutralizes
 * the parent's wrapper constraints so .editorial-post defines layout from
 * scratch.
 */

/* ---------- Neutralize parent wrappers on single-post pages ---------- */
body.single-post .breadcrumb-area { display: none; }
body.single-post #content.spintech-content {
  padding: 0;
  background: var(--paper);
}
body.single-post #content.spintech-content > .container,
body.single-post #content.spintech-content .container {
  max-width: none;
  padding: 0;
}
body.single-post #post-section { padding: 0; }
body.single-post #post-section .row { margin: 0; }

/* ---------- Editorial post container ---------- */
.editorial-post {
  max-width: var(--col-text);
  margin: 0 auto;
  padding: 96px 32px 128px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Eyebrow row (category · date) ---------- */
.editorial-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.editorial-eyebrow .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
}

/* ---------- Title ---------- */
.editorial-post .editorial-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px 0;
  max-width: 640px;
}

/* ---------- Dek ---------- */
.editorial-post .editorial-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-mid);
  margin: 0 0 32px 0;
  max-width: 600px;
}

/* ---------- Hairline rule ---------- */
.editorial-post .editorial-rule {
  background: var(--rule);
  margin: 56px 0;
  height: 1px;
  border: 0;
}

/* ---------- Body ---------- */
.editorial-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.editorial-body p {
  margin: 0 0 1.4em 0;
}
.editorial-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.editorial-body a:hover,
.editorial-body a:focus {
  color: var(--gold-deep);
  text-decoration-color: var(--gold);
}

/* Body headings — Fraunces inherits from base.css; we tighten scale */
.editorial-body h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 64px 0 16px;
}
.editorial-body h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 48px 0 12px;
}
.editorial-body h4 {
  font-size: 18px;
  line-height: 1.3;
  margin: 32px 0 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lists */
.editorial-body ul,
.editorial-body ol {
  margin: 0 0 1.4em 1.4em;
  padding: 0;
}
.editorial-body li {
  margin-bottom: 0.5em;
}

/* Blockquote — left rule, italic Fraunces */
.editorial-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.editorial-body blockquote p:last-child { margin-bottom: 0; }

/* Inline code + code blocks */
.editorial-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink) !important;
  background: var(--paper-deep);
  padding: 2px 6px;
  border: 1px solid var(--rule-soft);
}
.editorial-body pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
}
.editorial-body pre code {
  background: none;
  padding: 0;
  border: 0;
}

/* Figures + images */
.editorial-body figure,
.editorial-body .wp-block-image {
  margin: 32px 0;
}
.editorial-body figure img,
.editorial-body .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
.editorial-body figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 12px;
  text-align: left;
}

/* Tables */
.editorial-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.editorial-body th,
.editorial-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.editorial-body th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 500;
}

/* ---------- Foot (tags + prev/next) ---------- */
.editorial-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.editorial-tags .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.editorial-tags a {
  color: var(--ink-light);
  text-decoration: none;
}
.editorial-tags a:hover,
.editorial-tags a:focus {
  color: var(--gold-deep);
}
.editorial-prevnext {
  display: flex;
  gap: 32px;
  margin-left: auto;
  flex-wrap: wrap;
}
.editorial-prevnext a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.editorial-prevnext a:hover,
.editorial-prevnext a:focus {
  color: var(--gold-deep);
}
.editorial-prevnext .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Post-specific escape: bespoke layouts that need full viewport
 * Post 357 (.skill-anatomy) authored its own grid system for a 1280px wrap
 * with a 760px reading column NESTED inside. Constraining its outer wrapper
 * to 760px collapses the hero-grid (148px 420px columns) and orphans the
 * pattern numerals at clamp font-size. Solution: let body content break out
 * of .editorial-post on this post, but keep the chrome (eyebrow, title,
 * dek, foot) at the standard 760px reading column.
 */
body.postid-357 .editorial-post {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
body.postid-357 .editorial-head,
body.postid-357 .editorial-foot {
  max-width: var(--col-text);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
body.postid-357 .editorial-post .editorial-rule {
  max-width: calc(var(--col-text) - 0px);
  margin-left: auto;
  margin-right: auto;
}
body.postid-357 .editorial-body {
  max-width: none;
  padding: 0;
}

/* Pattern numerals: bespoke layout uses 120px grid column at 140px font, but
 * "00"-"09" digit pairs are wider than 120px in Fraunces and wrap to two
 * lines (so 02-09 stack the digits vertically while 01/10-19 sit on one
 * line). Force a single line, tabular nums for consistent weight, slight
 * negative tracking so the pair fits cleanly into the column + gap. */
body.postid-357 .skill-anatomy .pattern-num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
@media (max-width: 560px) {
  body.postid-357 .editorial-head,
  body.postid-357 .editorial-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .editorial-post {
    padding: 64px 20px 96px;
  }
  .editorial-eyebrow {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .editorial-post .editorial-title {
    font-size: 36px;
  }
  .editorial-post .editorial-dek {
    font-size: 19px;
  }
  .editorial-body { font-size: 17px; }
  .editorial-body h2 { font-size: 26px; margin-top: 48px; }
  .editorial-body h3 { font-size: 21px; margin-top: 36px; }
  .editorial-body pre { padding: 14px 16px; font-size: 13px; }
  .editorial-foot {
    flex-direction: column;
    gap: 24px;
  }
  .editorial-prevnext {
    margin-left: 0;
    flex-direction: column;
    gap: 16px;
  }
}
