/* ============================================================
   Block: Manifest (.manifest)
   Dulce de Leche Design System
   ============================================================ */

.manifest {
  background: var(--espresso);
  color: var(--cream-50);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.manifest::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 10% 0%, rgba(201, 162, 74, 0.10), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(122, 42, 46, 0.18), transparent 60%);
  pointer-events: none;
}

.manifest .wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Header ---- */
.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* ---- Grid ---- */
.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---- Quote ---- */
.manifest-quote {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream-50);
  margin: 0;
}

.manifest-quote em {
  font-style: italic;
  color: var(--gold);
}

/* ---- Body text ---- */
.manifest-tail {
  margin-top: var(--space-3);
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream-50) 80%, transparent);
}

.manifest-tail p {
  margin: 0 0 1em;
}

.manifest-tail p:last-child {
  margin-bottom: 0;
}

/* ---- Pills ---- */
.manifest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: var(--border-gold);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-50);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Photo ---- */
.manifest-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
}

.manifest-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05) saturate(1.05);
}

.manifest-photo .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-50);
  padding: 6px 10px;
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(8px);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .manifest-grid {
    grid-template-columns: 1fr;
  }

  .manifest-head {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────────────────────────
   MANIFEST — wariant „editorial" (homepage)
   Czysto typograficzny, dark espresso, centered.
   Płynne przejście z dolnego gradientu hero → brak granicy.
   ───────────────────────────────────────────────────────────── */

.manifest.manifest--editorial {
  background: var(--espresso);
  color: var(--cream-50);
  padding-block: clamp(120px, 18vw, 220px);
  position: relative;
  overflow: visible;
  margin-top: 0;
}

/* Wyłącz pseudo-element ::after z wariantu bazowego */
.manifest.manifest--editorial::after {
  display: none;
}

.manifest-editorial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.manifest-editorial-content {
  text-align: center;
  /* 18ch liczyłoby się od body font-size (18px) = ~160px — zbyt wąsko.
     min(820px, 90%) ≈ właściwe 18 znaków przy 76px display font. */
  max-width: min(820px, 90%);
  width: 100%;
}

.manifest-editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Manifest wyśrodkowany — kreska po obu stronach tagu */
.manifest-editorial-eyebrow::before,
.manifest-editorial-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.manifest-editorial-quote {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream-50);
  margin: 0;
  padding: 0;
  quotes: none;
}

.manifest-editorial-quote::before,
.manifest-editorial-quote::after {
  content: none;
}

.manifest-editorial-quote em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

/* Tekst pod nagłówkiem manifestu (akapity) */
.manifest-editorial-body {
  max-width: 62ch;
  margin: clamp(24px, 3vw, 40px) auto 0;
  font-family: var(--body);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: color-mix(in srgb, var(--cream-50) 82%, transparent);
}
.manifest-editorial-body p { margin: 0 0 14px; }
.manifest-editorial-body p:last-child { margin-bottom: 0; }
.manifest-editorial-body em { font-style: italic; color: var(--gold); }

/* Drobny numer sekcji — dekoracja w prawym dolnym rogu */
.manifest-editorial-num {
  position: absolute;
  bottom: clamp(-60px, -6vw, -80px);
  right: clamp(24px, 6vw, 80px);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 92px);
  color: var(--gold);
  opacity: 0.12;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .manifest-editorial-content {
    max-width: none;
    padding: 0 4vw;
  }

  .manifest-editorial-quote {
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.2;
  }

  .manifest-editorial-num {
    right: clamp(16px, 4vw, 32px);
  }
}
