html, body {
    margin: 0;
	padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: url("images/stars.webp") center center / cover no-repeat fixed;
	overflow-x: hidden;
	display: flex;
    flex-direction: column;
	font-family: 'Cheerful Notes', sans-serif;
}

.it-hurts {
    min-height: 100vh;
    background: url("images/theyaregone.webp") center center / cover no-repeat fixed;
}

main {
    flex: 1;
}

@font-face {
    font-family: 'Cheerful Notes';
    src: url('fonts/cheerful-notes.regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 500;
}

.main-nav a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

.main-nav a:hover {
    opacity: 0.6;
}

footer {
    margin-top: auto;
}

.site-footer {
    width: 100%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    box-sizing: border-box;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.footer-socials a {
    color: #111;
    font-size: 30px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-socials {
        order: 2;
    }
}

.site-header {
     width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    box-sizing: border-box;
}

.site-header img {
    width: 418.5px;
    height: auto;
    display: block;
}

.floating-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto;
}

.floating-image img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}


/* Mobile navigation and responsive layout */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    border-radius: 3px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 700px) {
    body {
        background-attachment: scroll;
        background-position: center center;
    }

    .site-header {
        padding: 14px 18px;
        min-height: 68px;
        position: relative;
        z-index: 10;
    }

    .site-header > a {
        max-width: calc(100% - 64px);
    }

    .site-header img {
        width: min(250px, 100%);
        height: auto;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 46px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% - 1px);
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: rgba(0, 0, 0, 0.88);
        border-radius: 12px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav a {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 23px;
        border-radius: 8px;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .floating-image {
        margin: 30px auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .floating-image img {
        width: min(500px, 82vw);
        height: auto;
        aspect-ratio: 1;
    }

    .site-footer {
        padding: 24px 16px;
    }

    .footer-right a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header img {
        width: min(210px, 100%);
    }

    .floating-image img {
        width: 78vw;
    }
}

/* About page */
.about-content {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 50px 40px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card {
    width: min(1050px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    display: block;
    width: min(100%, 410px);
    height: auto;
    border-radius: 18px;
    animation: float 3s ease-in-out infinite;
}

.about-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 0.95;
    font-weight: 400;
}

.about-copy p {
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.5;
}

.about-copy .about-lead {
    font-size: 28px;
    margin-bottom: 22px;
}

.about-copy a {
    color: #fff;
    text-underline-offset: 4px;
}

.about-email {
    display: inline-block;
    margin-top: 8px;
    font-size: 21px;
}

@media (max-width: 700px) {
    .about-content {
        padding: 28px 16px 50px;
        align-items: flex-start;
    }

    .about-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0;
    }

   .about-image img {
    width: 100%;
    max-width: 330px;
    }

    .about-copy h1 {
        font-size: 50px;
        margin-bottom: 16px;
    }

    .about-copy .about-lead {
        font-size: 25px;
    }

    .about-copy p,
    .about-email {
        font-size: 19px;
    }
}

video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#secret {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}
