/* ---------------------------------------------------------------
   Phixo · Series single — page layout only.

   Scope: single-phixo_series.php. Styles the editorial rhythm around
   the before/after patterns — hero, meta, prose blocks, pull-quote,
   closing CTA. The .phixo-ba widgets themselves are styled by the BA
   agent (assets/css/phixo-series-compare.css); nothing here touches
   .phixo-ba internals.

   Tokens only — never a raw hex. Reuses the shared .band / .container /
   .eyebrow / .lede / .btn / .actions classes from phixo.css and only
   adds page-specific spacing and the two type treatments (meta,
   pull-quote) the wireframe calls for.
--------------------------------------------------------------- */

/* Hero -------------------------------------------------------- */
.phixo-page--series .phixo-series__hero {
  text-align: center;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.phixo-page--series .phixo-series__hero .eyebrow {
  margin-bottom: 18px;
}
.phixo-page--series .phixo-series__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  max-width: 16ch;
  margin: 0 auto 20px;
}
.phixo-page--series .phixo-series__sub {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--ink-soft);
}

/* Hero meta row (Client / Role / Year) ------------------------ */
.phixo-page--series .phixo-series__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  margin: 32px 0 0;
  padding: 0;
}
.phixo-page--series .phixo-series__meta-item {
  text-align: center;
}
.phixo-page--series .phixo-series__meta dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 6px;
}
.phixo-page--series .phixo-series__meta dd {
  font-family: var(--sans);
  font-size: var(--fs-body-sm);
  color: var(--ink);
  margin: 0;
}

/* Pattern sections — one visual event per screen -------------- */
.phixo-page--series .phixo-series__pattern {
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(40px, 6vw, 96px);
}
.phixo-page--series .phixo-series__pattern-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  text-align: center;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

/* Editorial prose blocks between patterns --------------------- */
.phixo-page--series .phixo-series__text .eyebrow {
  margin-bottom: 14px;
}
.phixo-page--series .phixo-series__prose {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* The P3 → P4 bridge is a quieter, shorter beat than the full brief /
   mid blocks — it exists to keep two patterns from touching. */
.phixo-page--series .phixo-series__text--bridge {
  text-align: center;
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 64px);
}
.phixo-page--series .phixo-series__text--bridge .phixo-series__prose {
  font-size: var(--fs-body);
  color: var(--mute);
  max-width: 52ch;
  margin: 0 auto;
}

/* Pull-quote — set alone in the serif italic display face ----- */
.phixo-page--series .phixo-series__quote-band {
  text-align: center;
}
.phixo-page--series .phixo-series__quote {
  margin: 0;
  padding: 0;
  border: 0;
}
.phixo-page--series .phixo-series__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: var(--lh-tight);
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}

/* Closing CTA ------------------------------------------------- */
.phixo-page--series .phixo-series__closing {
  text-align: center;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(64px, 9vw, 132px);
}
.phixo-page--series .phixo-series__closing .eyebrow {
  margin-bottom: 16px;
}
.phixo-page--series .phixo-series__closing-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  max-width: 20ch;
  margin: 0 auto 18px;
}
.phixo-page--series .phixo-series__closing-body {
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 28px;
}
.phixo-page--series .phixo-series__actions {
  justify-content: center;
}

/* WCAG: the closing CTA sits on a LIGHT band. Dusty Rose text or
   linen-on-rose both risk failing AA here, so the primary button on
   this light section must be rose fill with CHARCOAL text (~5:1).
   The house .btn--primary defaults to linen text; scope a charcoal
   override for this one placement without editing phixo.css. */
.phixo-page--series .phixo-series__closing .btn--primary.phixo-series__cta-primary,
.phixo-page--series .phixo-series__closing a.btn--primary.phixo-series__cta-primary {
  color: var(--ink) !important;
}
.phixo-page--series .phixo-series__closing .btn--primary.phixo-series__cta-primary:hover,
.phixo-page--series .phixo-series__closing .btn--primary.phixo-series__cta-primary:focus,
.phixo-page--series .phixo-series__closing .btn--primary.phixo-series__cta-primary:active {
  color: var(--ink) !important;
}

/* Responsive -------------------------------------------------- */
@media (max-width: 640px) {
  .phixo-page--series .phixo-series__meta {
    gap: 18px 28px;
  }
  .phixo-page--series .phixo-series__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .phixo-page--series .phixo-series__actions .btn {
    width: 100%;
  }
}
