:root {
    --primary: #4d328d;
    --primary-dark: #2c0c56;
    --gray: #f3f4f6;
    --gray-dark: #1f2937;
    --font-display: 'Geologica', sans-serif;
}

html {
    font-family: 'Asap', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;

    /* Adjust font size */
    font-size: 100%;

    -webkit-text-size-adjust: 100%;
    /* Font varient */
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    /* Smoothing */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--gray);
}

@media (min-width: 768px) {
    body {
        background-color: var(--primary-dark);
    }
}

header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header img {
    width: 110px;
}

.button {
    width: auto;
    font-size: 1.125rem;
    max-width: 100%;
    padding: 0.875rem 1.25rem;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    background-color: var(--primary-dark);
    color: white;
    display: inline-flex;
    transform: translateZ(0);
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.button:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

.button:focus {
    outline-color: var(--primary);
}

.button span {
    overflow-x: clip;
    text-overflow: ellipsis;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .button {
        padding: 0.75rem 2.5rem;
    }
}

main {
    overflow: hidden;
}

main img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

@media (min-width: 768px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: end;
        position: relative;
        flex-grow: 1;
    }

    main img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        z-index: -1;
        object-fit: cover;
    }
}

.container {
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.content {
    padding: 1rem 1.5rem;
    margin-top: -3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.content .button {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .content {
        margin-top: 2rem;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(6px);
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1), opacity 0.7s cubic-bezier(0, 0, 0.2, 1);
    }
}

h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-weight: 400;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }
}

a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
