body {
    font-family: 'Yeseva One', serif;
}

.main {
    display: grid;
    height: 100vh;
    grid-template-rows: 120px 1fr 1fr 1fr 120px;
    grid-template-columns: minmax(150px, 200px) 1fr minmax(200px, 300px);
    grid-template-areas:
        "header header header"
        "nav center  right"
        "nav center  right"
        "nav center  right"
        "footer footer footer";
}

/* Header */
.header {
    grid-area: header;
    padding: 10px;
    background: white;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.site-title {
    font-size: 5.5rem;
    font-weight: normal;
    margin: 0;
    text-align: center;
    line-height: 1.1;
    position: relative;
}

/* Tilted n styling */
.tilt-n {
    display: inline-block;
    transform: rotate(45deg) translateY(3px);
    transform-origin: bottom left;
    color: black;
}

/* Anchor for the M */
.logo-anchor {
    position: relative;
    display: inline-block;
    line-height: 1;
}

/* Shelf image */
.shelf-figure {
    position: absolute;
    left: 814%;
    transform: translateX(-50%);
    top: calc(100% + 6px);
    width: clamp(120px, 12vw, 220px);
    pointer-events: none;
    z-index: 5;
    padding-top:30px
}

/* Nav, Center, Right, Footer */
.nav {
    grid-area: nav;
    padding: 10px;
    background: white;
    position: relative;
    z-index: 1;
}
.center {
    grid-area: center;
    padding: 10px;
    background: white;
    position: relative;
    z-index: 1;
}
.right {
    grid-area: right;
    padding: 10px;
    background: white;
    position: relative;
    z-index: 1;
}
.footer {
    color: #1c1919;
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: ;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 16px;
}

.footer-top p {
    margin: 0;
}

.footer-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-top li {
    margin: 0;
    color: #1e1e1e;
}

.footer-top a {
    color: #1c1919;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-top a:hover {
    color: #1c1919;
    text-decoration: underline;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5px;
    background: linear-gradient(to right, transparent, #ccc 20%, #676767 80%, transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "header"
            "nav"
            "center"
            "right"
            "footer";
    }

    .site-title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }
}
