*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100svh;
    background: #fff;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
}

.memorial {
    position: relative;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: clamp(3rem, 7vw, 6rem)
    clamp(2rem, 6vw, 5rem);
}

/* Dunne rouwrand rondom de volledige pagina */
.memorial::before {
    content: "";
    position: absolute;
    inset: clamp(12px, 2vw, 22px);
    border: 1px solid #111;
    pointer-events: none;
}

.content {
    width: min(100%, 520px);
    text-align: center;
}

.portrait {
    display: block;
    width: min(72vw, 360px);
    max-height: 52vh;

    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);

    object-fit: cover;
    object-position: center;

    /* Verwijder deze regel als de foto zijn
       oorspronkelijke verhouding moet behouden. */
    aspect-ratio: 4 / 5;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.dates {
    margin-top: 1rem;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    line-height: 1.6;
}

.separator {
    display: inline-block;
    margin: 0 0.5em;
}

@media (max-width: 480px) {
    .memorial {
        padding:
                3.5rem
                2.25rem;
    }

    .portrait {
        width: min(70vw, 290px);
        max-height: 46vh;
    }

    .dates span {
        display: block;
    }

    .dates .separator {
        display: none;
    }
}

.actions {
    margin-top: clamp(2rem, 5vw, 2.75rem);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.condolence-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;

    background: #333;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;

    text-decoration: none;

    border: 1px solid #333;
    border-radius: 2px;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.condolence-button:hover,
.condolence-button:focus {
    background: #fff;
    color: #333;
}

.condolence-button:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

.original-site {
    color: #666;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.original-site:hover,
.original-site:focus {
    color: #111;
}
