@font-face {
  font-display: swap;
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('font.woff2') format('woff2');
}

body {
    line-height: 1.6;
    margin: 0;
    color: #444;
}

main {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 10rem 1rem 0 1rem;
    box-sizing: border-box;
}

h1 {
    font-size: 3.5rem;
    margin: 0 0 1.5rem 0;
}

p {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
}

a:hover {
    text-decoration-color: transparent;
}

a {
    transition: color 0.3s ease;
    text-decoration: underline;
    color: #444;
    transition: text-decoration-color 0.2s;
}

footer {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
    column-gap: 2.5rem;
    padding: 3rem 0;
}

@media screen and (max-width: 60rem) {
    menu {
        row-gap: 1.5rem;
        column-gap: 1.5rem;
    }

    menu a {
        padding: 8rem 2rem;
    }
}

@media screen and (max-width: 50rem) {
    h1 {
        line-height: 1.1;
    }
    main {
        padding-top: 1rem;
    }
    menu {
        grid-template-columns: 1fr;
    }
}

menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 3rem;
    color: #fff;
    font-size: 1.6rem;
    position: relative;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-decoration: none;
}

menu a > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    filter: brightness(0.8);
    transition: top 0.5s ease, left 0.5s ease, width 0.5s ease, height 0.5s ease;
}

@media screen and (min-width: 50.01rem) {
    menu a:hover > img {
        top: -1rem;
        left: -1rem;
        width: calc(100% + 2rem);
        height: calc(100% + 2rem);
    }
}
