/* START PAGE BANNER STYLE */

#page-banner *, #page-banner *::before, #page-banner *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root tokens ── */
#page-banner {
  --pbn-bg-1: #2d0c4b;
  --pbn-bg-2: #4a1a7a;
  --pbn-accent: #c89fff;
  --pbn-text: #ffffff;
  --pbn-text-muted: rgba(255,255,255,0.78);
  --pbn-font-display: 'Playfair Display', Georgia, serif;
  --pbn-font-body: 'Inter', sans-serif;

  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(220px, 32vw, 320px);
  background: linear-gradient(135deg, var(--pbn-bg-1) 0%, var(--pbn-bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Subtle woven texture — crossed hairlines echo a knit weave,
   instead of a stock photo, so it stays on-brand for a knitwear maker ── */
#page-banner .pbn-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

/* ── Content ── */
#page-banner .pbn-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
  opacity: 0;
  transform: translateY(14px);
  animation: pbnRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes pbnRise {
  to { opacity: 1; transform: translateY(0); }
}

#page-banner .pbn-breadcrumb {
  font-family: var(--pbn-font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pbn-text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#page-banner .pbn-breadcrumb a {
  color: var(--pbn-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
#page-banner .pbn-breadcrumb a:hover {
  color: var(--pbn-accent);
}
#page-banner .pbn-sep {
  opacity: 0.5;
}
#page-banner .pbn-current {
  color: var(--pbn-accent);
}

#page-banner .pbn-title {
  font-family: var(--pbn-font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--pbn-text);
  letter-spacing: 0.01em;
}

/* ── Stitch-dash rule — same running-stitch motif as the Story section,
   ties banner and content together visually ── */
#page-banner .pbn-rule {
  width: 64px;
  height: 2px;
  margin: 18px auto 16px;
  background-image: repeating-linear-gradient(90deg, var(--pbn-accent) 0 8px, transparent 8px 14px);
}

#page-banner .pbn-subtitle {
  font-family: var(--pbn-font-body);
  font-size: clamp(13.5px, 1.6vw, 16px);
  font-weight: 400;
  color: var(--pbn-text-muted);
}

/* ══════════════════════════════════════════
   RESPONSIVE — 3 device tiers
══════════════════════════════════════════ */

@media (max-width: 1024px) {
  #page-banner .pbn-inner {
    padding: 0 32px;
  }
}

@media (max-width: 576px) {
  #page-banner {
    height: clamp(190px, 42vw, 260px);
  }
  #page-banner .pbn-breadcrumb {
    font-size: 11px;
    margin-bottom: 14px;
  }
  #page-banner .pbn-rule {
    margin: 14px auto 12px;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #page-banner .pbn-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* END PAGE BANNER STYLE */