
html, body {
    font-family: "Hack", helvetica, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 1.2rem;
    scrollbar-width: none;
}

h1 {
    font-size: 2.2rem;
}

a {
    color: red;
    font-weight: 700;
}
    
#background {
    position: absolute;
    z-index: -1;
}

.index {
    display: grid;
    gap: 20px;
    grid-template-areas: 
    "portrait"
    "introduction"
    "links";
}

.index .introduction {
    grid-area: introduction;
    margin: 2rem;
}

.index .portrait {
    grid-area: portrait;
}

.index .portrait img {
    width: 80%;
    margin: 0px 10% 2rem 10%;
    box-shadow: 10px 5px 5px red;
}

.index .portrait figcaption {
    margin-left: 10%;
}

/* only unhide the figcaption at larger sizes */
.index .portrait figcaption {
    visibility: hidden;
}

.index ul{
    margin: 2rem;
    grid-area: links;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.index ul li{
    width: 25%;
}

.index ul img{
    width: 100%;
    height: auto;
}

.now {
    margin: 2rem;
}

.article {
    margin: 2rem;
}

.article ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 0px;
    gap: 2rem;
}

.article ul li {
    width: calc(100% - 4rem);
    min-height: 20rem;
    display: grid;
    border: 0.1rem solid #000;
    border-radius: 25px;
    background-color: #fff;
    padding: 2rem;
}

.article ul li img {
    width: calc(100% - 2rem);
}

@media (min-width: 700px) {
    .index {
        display: grid;
        gap: 20px;
        grid-template-areas:
        "introduction portrait"
        "links        portrait"
    }

    .index .portrait figcaption {
        visibility: visible;
    }

    .index .portrait img {
        width: 80%;
        height: auto;
    }
}
