:root {
    /* Light mode colors */
    --bg-1: #ffffff;
    --bg-2: #eef2ff;
    --bg-3: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #475569;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --bg-1: #0b0d12;
        --bg-2: #111827;
        --bg-3: #0f172a;

        --text-primary: #f2f4f8;
        --text-secondary: #b8bcc8;
    }
}

.hero {
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: var(--space-sm) 0;

    background: linear-gradient(
        120deg,
        var(--bg-1),
        var(--bg-2),
        var(--bg-3),
        var(--bg-1)
    );
    animation: gradientShift 10s ease infinite, fadeIn 0.8s ease-out forwards;
}

.splash-content {
    max-width: 720px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.splash-content h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.splash-content p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 420px;
    margin-bottom: 28px;
}

.notify-form {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notify-form input {
    padding: 12px 14px;
    min-width: 240px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .notify-form input {
        background-color: #0f172a;
        color: #f2f4f8;
        border: 1px solid #334155;
    }
}

.notify-form button {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(
        180deg,
        dodgerblue,
        #93c5fd
    );
    color: #fff;
}

.notify-form button:hover {opacity: 0.9;}

.collection-inner {
    max-width: 1100px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .logo {
        max-width: 300px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .splash {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {padding: var(--space-sm) 0;}
    .splash-content h1 {font-size: 2rem;}
    .carousel-track {grid-auto-columns: 200px;}
    .written-works {text-align: center;}
}

@media (max-width: 480px) {
    .splash-content p {font-size: 0.95rem;}
}

@media (max-width: 480px) {
    .carousel-wrapper {
        overflow: visible;
    }

    .carousel-track {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        gap: var(--space-sm);

        overflow: visible;
        padding: 0;
    }

    .carousel-item {
        width: 100%;
    }

    .carousel-item img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-header,
    .written-works {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-header p,
    .written-works p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--space-sm) 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {animation: none;}
}