body {
    margin: 30px;
    background-color: #1c0106;
    color: #ffdee2;
    font-family: Georgia, serif;
    line-height: 1.7;
}

main {
    max-width: 1100px;
    margin: 0 auto;
}

/* Bilderna */

.content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bild {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 3px solid #70020f;
    border-radius: 12px;
    transition: 0.3s;
}

.bild:hover {
    border-color: #cc1e3d;
}

/* Rubrik och text  */

.h1,
.p1,
.p2,
header {
    grid-column: 1 / -1;
}

.h1 {
    margin: 30px 0 0;
    text-align: center;
    font-size: 54px;
    line-height: 1.15;
    color: #ffdee2;
}

.h1 span {
    color: #cc1e3d;
    font-style: italic;
}

/* linje under rubriken */

.h1::after {
    content: "";
    display: block;
    width: 600px;
    height: 4px;
    margin: 20px auto 0;
    background-color: #cc1e3d;
    border-radius: 2px;
}

.p1,
.p2 {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 19px;
}

/* Länkarna */

.nav-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links a {
    display: inline-block;
    padding: 14px 40px;
    background-color: #ffdee2;
    color: #87202d;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #ffdee2;
    border-radius: 30px;
    transition: 0.3s;
}

.nav-links a:hover {
    background-color: #70020f;
    border-color: #cc1e3d;
    color: #ffdee2;
}