/* spintech-child — editorial blog index
 * Owns /blog/ when WP's static posts page is active. Two-tier hierarchy:
 *   .editorial-type      — top-level type (Field Notes / Field Journal)
 *   .editorial-subseries — named sub-series within Field Journal
 *                          (e.g., Disclosure in Action)
 */

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

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

/* ---------- Section title (h1) ---------- *
 * Editorial display title at the top of /blog/. Sits above the eyebrow
 * meta header. Same display treatment as the portfolio index for visual
 * consistency across editorial section landings.
 */
.editorial-index-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 24px 0;
}

/* ---------- Page eyebrow (top bar): generic page identifier ---------- */
.editorial-index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 72px;
}
.editorial-index-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
}
.editorial-index-head .eyebrow:first-child { color: var(--ink); }

/* ============================================================
 * TIER 1 — Top-level types (Field Notes / Field Journal)
 * ============================================================ */
.editorial-type + .editorial-type {
  margin-top: 96px;
}
.editorial-type-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}
.editorial-type-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.editorial-type-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink) !important;
  white-space: nowrap;
}
.editorial-type-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 12px 0 32px 0;
  max-width: 56ch;
}

/* ============================================================
 * TIER 2 — Sub-series (Disclosure in Action, etc.)
 * Lives inside .editorial-type[data-type="field-journal"].
 * Smaller register so the parent type-header reads as primary.
 * ============================================================ */
.editorial-subseries + .editorial-subseries {
  margin-top: 64px;
}
.editorial-subseries-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.editorial-subseries-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-left: 18px;
}
.editorial-subseries-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.editorial-subseries-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
  white-space: nowrap;
}

/* ============================================================
 * TOC list — entries inside any group (notes or sub-series)
 * ============================================================ */
.editorial-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editorial-toc-row {
  border-bottom: 1px solid var(--rule-soft);
}
.editorial-toc-row:last-child { border-bottom: 0; }

.editorial-toc-link {
  display: block;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.editorial-toc-link:hover,
.editorial-toc-link:focus {
  background: linear-gradient(to right, var(--paper-warm), transparent 80%);
  outline: none;
}

.editorial-toc-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.editorial-toc-meta .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
}
.editorial-toc-num {
  color: var(--gold-deep) !important;
  font-variant-numeric: tabular-nums;
}

.editorial-toc-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.editorial-toc-link:hover .editorial-toc-title,
.editorial-toc-link:focus .editorial-toc-title {
  color: var(--gold-deep);
}

.editorial-toc-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 24;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 8px 0 0 0;
  max-width: 56ch;
}

/* ---------- Empty state ---------- */
.editorial-toc-empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-light);
  text-align: center;
  padding: 96px 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .editorial-index {
    padding: 64px 20px 96px;
  }
  .editorial-index-head {
    margin-bottom: 48px;
  }
  .editorial-type + .editorial-type {
    margin-top: 64px;
  }
  .editorial-type-title {
    font-size: 28px;
  }
  .editorial-subseries + .editorial-subseries {
    margin-top: 48px;
  }
  .editorial-subseries-title {
    font-size: 20px;
  }
  .editorial-toc-link {
    padding: 22px 0;
  }
  .editorial-toc-title {
    font-size: 19px;
  }
  .editorial-toc-dek {
    font-size: 15px;
  }
  .editorial-toc-meta {
    flex-wrap: wrap;
    gap: 4px;
  }
}
