@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Giphurs';
    src: url('../fonts/Giphurs-SemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Giphurs', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #F4F4F4;
}

.container {
    min-height: 100vh;
    padding: 14px 0;
}

/* Mobile photo carousel - default (mobile-first) */
.mobile-photo-carousel {
    display: flex;
    flex-direction: column;
    height: 40vh;
    overflow: hidden;
    gap: 0;
}

.mobile-carousel-row {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.mobile-carousel-track {
    display: flex;
    height: 100%;
    width: fit-content;
}

.mobile-carousel-slide {
    height: 100%;
    aspect-ratio: 4/3;
    flex-shrink: 0;
    margin-right: 14px;
}

.mobile-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Horizontal scroll animations */
@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

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

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scroll-right .mobile-carousel-track {
    animation: scrollRight 30s linear infinite;
}

.scroll-left .mobile-carousel-track {
    animation: scrollLeft 30s linear infinite;
}

.content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-inner {
    max-width: 540px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Hide desktop carousel on mobile */
.carousel {
    display: none;
}

.presents {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo {
    width: 28px;
    height: 28px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 500;
}

h1 .woven {
    font-size: 3rem;
    font-family: 'Unna', serif;
    font-style: italic;
    font-weight: 300;
}

.tagline {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

.newsletter {
    border: 1px solid #dadada;
    padding: 1rem;
    width: 100%;
}

.newsletter-text {
    margin-top: -1.75rem;
    background-color: #f4f4f4;
    width: fit-content;
    padding: 0 0.6rem;
    margin-left: -0.6rem;
}

.newsletter-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 0.875rem;
    font-family: 'Giphurs', sans-serif;
}

button {
    padding: 0.75rem 1.25rem;
    background-color: #9B5656;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'Giphurs', sans-serif;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #6B3410;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .mobile-photo-carousel {
        height: 50vh;
    }

    .content {
        padding: 3rem 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h1 .woven {
        font-size: 3.75rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .newsletter {
        max-width: 500px;
    }

    .signup-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    input[type="email"] {
        flex: 1;
    }
}

/* Desktop layout */
@media (min-width: 1024px) {

    html,
    body {
        overflow: hidden;
    }

    .container {
        display: flex;
        height: 100vh;
        max-height: 100vh;
        padding: 0 18px;
    }

    /* Hide mobile photo carousel on desktop */
    .mobile-photo-carousel {
        display: none;
    }

    /* Show desktop carousel */
    .carousel {
        display: block;
        flex: 1;
        position: relative;
        overflow: hidden;
    }

    .carousel-inner {
        position: relative;
        display: flex;
        flex-direction: column;
    }

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

        100% {
            transform: translateY(calc(-50% - 9px));
        }
    }

    .carousel-track {
        animation: scroll 70s linear infinite;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .carousel-slide {
        width: 100%;
        aspect-ratio: 8/5;
        flex-shrink: 0;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Hide scrollbar for the carousel */
    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .content {
        flex: 1;
        max-width: 1200px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        text-align: left;
    }

    .content-inner {
        max-width: 540px;
    }

    .presents {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
        justify-content: flex-start;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    h1 {
        font-size: clamp(2.5rem, 5vw, 3.25rem);
        margin-bottom: 0.125rem;
    }

    h1 .woven {
        font-size: clamp(3rem, 6vw, 4rem);
    }

    .tagline {
        font-size: clamp(1rem, 2vw, 1.15rem);
        max-width: 600px;
        margin-bottom: 3.5rem;
    }

    .newsletter {
        max-width: 500px;
    }

    .newsletter-text p {
        font-size: 1rem;
    }

    .signup-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    input[type="email"] {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    button {
        padding: 0.6rem 1.25rem;
        font-size: 1rem;
    }
}

/* Make the content scrollable on very small screens while maintaining fixed container */
@media (max-height: 600px) and (min-width: 1024px) {
    .content {
        justify-content: flex-start;
    }
}