.home-container {
    min-height: 100vh;
    height: fit-content;
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(2, calc((100vw - 2rem) / 2));
    grid-template-rows: min-content 1fr;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/************** Newspaper Background Images **************/
.news-top,
.news-bottom {
    position: absolute;
    z-index: -1;
}

.news-top {
    left: 55%;
    top: -4rem;
    width: max(50vw, 1000px);
}

.news-bottom {
    bottom: 0;
    left: 0;
    width: max(900px, 50%);
}


.home-container>div {
    position: static;
    margin: 0;
}

/************** Hoverable Tape Note **************/
.home-container>.tape-note-container {
    grid-column: 2;
    grid-row: 1;
    justify-self: flex-end;
    height: fit-content;
    padding: 1rem 4rem 0 0;
}

.tape-note {
    position: relative;
    height: 100px;
    width: 375px;
}

.brown-note {
    position: absolute;
    width: 275px;
    height: 50px;
    perspective: 1000px;
    top: 20%;
    left: 0;
}

.brown-note:hover .note-content {
    transform: rotateY(-180deg);
    cursor: default;
}

.note-front,
.note-back {
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    font-size: 1.35rem;
    letter-spacing: 10%;
    text-align: center;
    background-color: var(--paper-colour);
    background-image: var(--brown-cardstock);
}

.note-front>p,
.note-back>p {
    line-height: 26px;
}

.note-back {
    transform: rotateY(-180deg);
}

.note-content {
    position: relative;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.tape {
    position: absolute;
    top: 0;
    right: 0;
}

/************** Page Header **************/
.home-container>.top-left {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    width: fit-content;
    height: fit-content;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.home-container>.top-left * {
    white-space: nowrap;
}

.flair {
    grid-column: 1;
    grid-row: 1;
    width: clamp(500px, 100%, 790px);
}

.homepage-heading {
    grid-column: 1;
    grid-row: 1;
    padding-left: 2.5rem;
}

.headline {
    padding-top: 4.25rem;
    padding-right: 4rem;
}

.headline h1 {
    font-size: clamp(5rem, 14vw, 8rem);
    letter-spacing: 10%;
    line-height: 65%;
}

.headline h3 {
    font-size: clamp(2.25rem, 6.5vw, 3.75rem);
    letter-spacing: -3%;
    line-height: 65%;
}

.headline h4 {
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    letter-spacing: -5%;
}

.links {
    width: auto;
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    margin: 5px 5px 5px 5px;
    transition: transform 0.3s ease;
    will-change: transform;

}

.link-icon:hover {
    transform: translateY(-4px);
}

.link-icon img {
    width: 100%;
}

/************** Polaroid About Me Button **************/
.home-container>.polaroid {
    place-self: center;
}

.polaroid {
    position: absolute;
    left: clamp(5rem, 15%, 400px);
    top: max(40%, 400px);
    width: 365px;
}

#about-me {
    border: 0;
    background-color: #00000000;
    transform: rotate(-4deg);
    transition: transform 0.5s ease;
}

#about-me>img {
    width: 100%;
}

#about-me:hover {
    transform: rotate(0deg);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    z-index: 1;
}

dialog {
    animation: zoom 0.4s;
}

/************** About Me Modal **************/
.dialog-content {
    display: flex;
    justify-content: center;
    width: 100%;
}


.about-content * {
    font-family: "Donika Hand", monospace;
    text-indent: 0;
}

.about-content h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 3%;
    text-transform: uppercase;
    line-height: 3rem;
}

.about-content p {
    font-size: 2rem;
}

.about-bold {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 3%;
    text-transform: uppercase;
}

.about-content {
    padding: 1em;
}

.about-content div {
    padding-bottom: 20px;
    max-width: 850px;
}

.about-ul {
    width: 85%;
    margin-left: 40px;
    line-height: 2.5rem;
}

.about-ul li {
    list-style-type: circle;
    font-size: 1.75rem;
}

.about-ul li strong {
    font-size: 1.85rem;
}

.contact-ul>* {
    text-decoration: underline;
    font-size: 1.75rem;
    list-style-type: none;
}

.contact-ul {
    margin-left: 1em;
    display: flex;
    gap: 2%;
}

/************** Navigation **************/
.home-container>.menu-container {
    background-image: url(/assets/imgs/home/paper1.png);
    background-repeat: no-repeat;
    background-size: contain;
    aspect-ratio: 687/697;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -3rem;
    margin-bottom: 3rem;
    align-self: center;
}

.menu-container>.menu {
    padding: 0 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    align-items: start;
    list-style: none;
    white-space: nowrap;
    width: 100%;
    height: 100%;
}

.menu>li {
    display: flex;
    align-items: center;
    gap: 25px;
}

.highlight {
    position: relative;
    display: flex;
    align-items: center;
}

.highlight>a {
    /* font-size: 3.5rem; */
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 3.5rem;
    opacity: 90%;
    text-align: center;
    text-transform: lowercase;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
}

.highlight>a:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background-color: #EF9D9DCC;
    height: 3px;
    -webkit-transition: right 0.4s ease-out;
    transition: right 0.4s ease-out;
    opacity: 65%;
}

.highlight:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 100%;
    bottom: 0;
    background-color: #EF9D9D65;
    height: 3.5rem;
    -webkit-transition: right 0.4s ease-out;
    transition: right 0.4s ease-out;
    opacity: 65%;
}

.highlight:hover:before {
    right: 0;
}

.highlight>a:hover:before {
    right: 0;
}

/* Blue Highlight Hover*/
.highlight.blue>a:before {
    background-color: #9DD4EFCC;
}

.highlight.blue:before {
    background-color: #9dd4ef65;
}

/* Green Highlight Hover*/
.highlight.green>a:before {
    background-color: #96EB8FCC;
}

.highlight.green:before {
    background-color: #96EB8F65;
}

/* Yellow Highlight Hover*/
.highlight.yellow>a:before {
    background-color: #ECEF9DCC;
}

.highlight.yellow:before {
    background-color: #ECEF9D65;
}

/* Pink Highlight Hover*/
.highlight.pink>a:before {
    background-color: #EF9DE7CC;
}

.highlight.pink:before {
    background-color: #EF9DE765;
}

/* Highlight Circles */
.circle {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    opacity: 65%;
}

.circle.red {
    background-color: #EF9D9DCC;
}

.circle.blue {
    background-color: #9DD4EFCC;
}

.circle.green {
    background-color: #96EB8FCC;
}

.circle.yellow {
    background-color: #ECEF9DCC;
}

.circle.pink {
    background-color: #EF9DE7CC;
}

/************** Smaller Screen Overrides **************/
@media(max-width: 1200px) {
    .home-container {
        grid-template-rows: min-content min-content 1fr;
    }

    .news-top {
        left: 45%;
    }

    .home-container>.top-left {
        grid-row: 2;
        grid-column: 1/3;
    }

    .headline {
        padding-right: 0;
    }

    .home-container>.polaroid,
    .home-container>.menu-container {
        grid-row: 3;
    }

    .polaroid {
        margin-top: 50px;
        max-width: 250px;
    }

}

/************** Mobile Overrides **************/
@media (max-width: 900px) {
    .home-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .news-top {
        left: 20%;
        width: clamp(700px, 170vw, 900px);
    }

    .tape-note-container {
        padding-right: 2rem;
        align-self: flex-end;
    }

    .top-left {
        padding: 0;
        margin-top: 85px;
    }

    .flair {
        width: 97%;
    }

    .homepage-heading {
        padding: 0;
    }

    .headline {
        padding-top: 10%;
        text-align: center;
    }

    .headline h1 {
        font-size: 14vw;
    }

    .headline h3 {
        font-size: 6.5vw;
    }

    .headline h4 {
        font-size: 3.25vw;
    }

    .links {
        display: flex;
        justify-content: center;
    }

    .nav-link {
        font-size: 3rem;
    }

    .polaroid {
        position: static;
        margin-top: 50px;
        max-width: 250px;
    }

    #about-me img {
        max-width: 250px;
    }

    dialog {
        min-width: 100vw;
        text-align: left;
    }

    .about-content {
        margin-bottom: 100px;
    }

    .home-container>.menu-container {
        margin-top: 1rem;
    }

    .menu-container>.menu {
        gap: 1rem;
    }

    .highlight>a {
        font-size: 2.5rem;
    }

    .highlight:before {
        height: 48px;
    }

    .circle {
        height: 50px;
        width: 50px;
    }
}

@media (max-width: 450px) {
    .tape-note-container {
        display: none;
    }

    .home-container {
        gap: 4rem;
        padding: 5rem 0;
    }
}