/* ============================================
   TEMPLATE BASE STYLES — Shared across all faire-part templates
   faire-part-naissance-bebe.com
   ============================================ */

/* A5 format: 148mm x 210mm = 559px x 793px at 96dpi */
.fp-preview {
    width: 559px;
    height: 793px;
    position: relative;
    overflow: hidden;
    font-family: var(--fp-font, 'Playfair Display', serif);
    color: var(--fp-text, #2c2c2c);
    background: var(--fp-bg, #faf8f5);
}

.fp-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1; /* keep text above the decorative illustration layers */
}

/* ============================================
   DECORATIVE ILLUSTRATION LAYERS
   Each template paints real vector artwork (embedded SVG) on two
   absolutely-positioned pseudo layers that sit BEHIND the centered text:
     ::before  = paper texture / watercolour wash
     ::after   = ornament (florals, foliage, gold flourishes…)
   These pseudo-elements cannot be clobbered by the editor's inline styles,
   so the illustration renders identically in the live editor preview,
   the public online faire-part page, and the Chromium-printed PDF.
   ============================================ */
.fp-preview::before,
.fp-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

/* Photo styles */
.fp-photo {
    overflow: hidden;
    margin-bottom: 24px;
    border: 3px solid var(--fp-accent, #d4a574);
}

.fp-photo--round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.fp-photo--rect {
    width: 160px;
    height: 120px;
    border-radius: 8px;
}

.fp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text styles */
.fp-title {
    color: var(--fp-accent, #d4a574);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.fp-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    font-style: italic;
}

.fp-date {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fp-baby-name {
    color: var(--fp-accent, #d4a574);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.fp-details {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.fp-parents {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.fp-location {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.fp-custom-text {
    font-size: 13px;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Border */
.fp-border {
    position: absolute;
    inset: 12px;
    border: 2px solid var(--fp-accent, #d4a574);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.4;
}

/* Branding */
.fp-branding {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: 0.25;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
