/* ========================================================================
   CAMPAIGNS PAGE
   Loaded after styles.css on /campaigns/ only. Sections in order:
   .campaigns-hero, .campaigns-context, .campaigns-docs, .campaigns-embed.
   ======================================================================== */

.campaigns-hero {
  padding: 64px 0 24px;
  background: var(--bg);
}
.campaigns-hero .eyebrow {
  margin: 0 0 12px;
}
.campaigns-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 18ch;
}
.campaigns-hero .lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0;
}
.campaigns-hero .hero-cta-row {
  margin: 28px 0 0;
}

/* ─── The case (quote + supporting paragraphs) ─── */
.campaigns-context {
  padding: 32px 0 16px;
}
.campaigns-context blockquote,
.campaigns-context p {
  max-width: 68ch;
}
.campaigns-context blockquote {
  margin: 0 0 28px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--pause-orange);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--text);
}
.campaigns-context blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.campaigns-context p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 18px;
}
.campaigns-context p:last-child {
  margin-bottom: 0;
}
.campaigns-context em {
  font-style: italic;
}

/* ─── Document cards ─── */
.campaigns-docs {
  padding: 48px 0 16px;
}
.campaigns-docs h2,
.campaigns-embed h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px var(--shadow), 0 12px 32px var(--shadow);
}
.doc-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.doc-meta {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pause-orange);
  margin: 0;
}
.doc-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
.doc-cta {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Email tool (iframe) ─── */
.campaigns-embed {
  padding: 48px 0 80px;
  background: var(--bg);
  scroll-margin-top: 80px;
}
.campaigns-embed .embed-instructions {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 60ch;
}
.campaigns-embed .embed-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 2px var(--shadow), 0 12px 32px var(--shadow);
}
.campaigns-embed .embed-frame iframe {
  display: block;
  width: 100%;
  height: 200px; /* initial — overridden by pauseai-embed-resize messages */
  border: 0;
}
.campaigns-embed .embed-fallback {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.campaigns-embed .embed-fallback a {
  color: var(--accent);
}

/* ─── Share QR code + lightbox ─── */
.campaigns-share {
  padding: 16px 0 72px;
  text-align: center;
}
.qr-thumb {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 14px;
  font: inherit;
  color: var(--text-secondary);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.qr-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px var(--shadow), 0 12px 32px var(--shadow);
}
.qr-thumb img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}
.qr-thumb span {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 18, 0.92);
  z-index: 100;
  padding: 32px;
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.qr-lightbox.open {
  display: flex;
}
.qr-lightbox img {
  max-width: min(90vw, 90vh);
  max-height: min(90vw, 90vh);
  width: auto;
  height: auto;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.qr-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qr-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
  .campaigns-hero {
    padding: 48px 0 16px;
  }
  .campaigns-context {
    padding: 24px 0 8px;
  }
  .campaigns-docs {
    padding: 36px 0 12px;
  }
  .campaigns-embed {
    padding: 36px 0 56px;
  }
  /* Let the embed go edge-to-edge on mobile */
  .campaigns-embed .container {
    padding-left: 0;
    padding-right: 0;
  }
  .campaigns-embed h2,
  .campaigns-embed .embed-instructions,
  .campaigns-embed .embed-fallback {
    padding-left: 24px;
    padding-right: 24px;
  }
  .campaigns-embed .embed-frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}
