/* ──────────────────────────────────────────
   Memorial theme – Minnesplats
   Palette:
     page bg     #f4f0ea  (warm off-white)
     card bg     #fdfaf6  (parchment)
     accent      #7a5c3e  (muted warm brown)
     text        #3b2f23  (dark brown)
     ornament    #b09070  (gold-brown)
     border      #d6c9b6  (soft linen)
────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: #f4f0ea;
    color: #3b2f23;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 1rem 4rem;
}

/* ── Wrapper & Card ─────────────────────── */

.memorial-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.memorial-card {
    background-color: #fdfaf6;
    border: 1px solid #d6c9b6;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(90, 60, 30, 0.12);
    max-width: 520px;
    width: 100%;
    padding: 2.8rem 2.4rem 3rem;
    text-align: center;
}

/* ── Name heading ───────────────────────── */

.memorial-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    color: #3b2f23;
    margin-bottom: 0.5rem;
}

/* ── Ornament divider ───────────────────── */

.memorial-ornament {
    display: block;
    font-size: 1.1rem;
    color: #b09070;
    letter-spacing: 0.5em;
    margin: 0.6rem 0 1.4rem;
}

/* ── Photo ──────────────────────────────── */

.memorial-photo-frame {
    margin: 0 auto 1.6rem;
    max-width: 260px;
    border: 5px solid #d6c9b6;
    outline: 1px solid #b09070;
    outline-offset: 3px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(90, 60, 30, 0.15);
}

.memorial-photo {
    display: block;
    width: 100%;
    height: auto;
    filter: sepia(10%) brightness(0.97);
}

/* ── Text block ─────────────────────────── */

.memorial-text {
    margin-top: 0.4rem;
}

.memorial-dedication {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #7a5c3e;
    margin-bottom: 1rem;
}

.memorial-verse {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.85;
    color: #5a4030;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 480px) {
    .memorial-card {
        padding: 2rem 1.4rem 2.4rem;
    }

    .memorial-name {
        font-size: 1.75rem;
    }
}
