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

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

*, *::before, *::after {
    font-family: 'PP Mori', Georgia, serif;
    font-weight: 400;
    box-sizing: border-box;
}

body {
    background-color: #FAFAF7;
    color: #1A1A1C;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */

.site-main {
    padding: 14vh 32px 8vh;
}

.logo-link {
    display: block;
    margin-bottom: 60px;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.logo-link:hover  { opacity: 0.65; }
.logo-link:active { opacity: 0.4; transform: scale(0.97); }

.logo {
    height: 25px;
    width: auto;
    display: block;
}

.headline {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 32px;
    white-space: nowrap;
}

.subtext-wrap {
    text-align: center;
    max-width: 420px;
    margin-bottom: 48px;
}

.subtext-line {
    font-size: 14px;
    line-height: 1.4;
    color: #1A1A1C;
    margin-bottom: 2px;
}

.form-outer {
    width: 100%;
    max-width: 440px;
    position: relative;
}

/* ── Error message ── */

#error-msg {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    font-size: 14px;
    color: #C4452D;
}

/* ── Success state ── */

.success-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1A1A1C;
    background: #EDEBE3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-text {
    font-size: 14px;
    color: #1A1A1C;
    line-height: 1.4;
}

.success-sub {
    font-size: 14px;
    color: #1A1A1C;
    line-height: 1.4;
    margin-top: 2px;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.success-actions .btn-reset {
    margin-top: 0;
}

.success-or {
    font-size: 14px;
    color: #6B6B6B;
}

/* ── Footer ── */

.footer-divider {
    border-top: 1px solid #E8E5DD;
}

.footer-inner {
    padding: 30px 32px 33px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    cursor: default;
    pointer-events: none;
}

.footer-nav-links {
    display: contents;
}

/* ── Cookie overlay ── */

#cookie-overlay {
    display: none;
}

/* ── Cookie banner ── */

.cookie-text {
    font-size: 14px;
    color: #1A1A1C;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cookie-btns {
    display: flex;
    gap: 8px;
}

/* ── Form ── */

.form-wrap {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.form-wrap input {
    flex: 1;
    background: #EDEBE3;
    border: none;
    outline: none;
    border-radius: 8px;
    font-family: 'PP Mori', Georgia, serif;
    font-size: 14px;
    color: #1A1A1C;
    padding: 13px 18px;
    min-width: 0;
    transition: background 0.2s ease;
}

.form-wrap input::placeholder {
    color: #6B6B6B;
    font-size: 14px;
}

.form-wrap input:hover,
.form-wrap input:focus {
    background: #E5E2D9;
}

/* ── Buttons ── */

.btn-submit {
    background: #1A1A1C;
    color: #FAFAF7;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: 'PP Mori', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 116px;
    height: 50px;
}

.btn-submit:hover  { background: rgba(26, 26, 28, 0.8); }
.btn-submit:active { background: rgba(26, 26, 28, 0.95); transform: scale(0.97); }

.btn-submit.loading {
    opacity: 0.6;
    cursor: default;
}

.btn-reset {
    font-size: 14px;
    color: #1A1A1C;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'PP Mori', Georgia, serif;
    font-weight: 400;
    padding: 0;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.15s ease;
    margin-top: 10px;
}

.btn-reset:hover {
    text-decoration: none;
}

/* ── Button roll animation (shared) ── */

.cookie-btn,
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn .btn-inner,
.btn-submit .btn-inner {
    display: inline-block;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2em;
    position: relative;
    vertical-align: bottom;
}

.btn-submit .btn-inner {
    margin-top: 2px;
}

.cookie-btn .btn-inner span,
.btn-submit .btn-inner span {
    display: block;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-btn .btn-inner::before,
.btn-submit .btn-inner::before {
    content: attr(data-label);
    position: absolute;
    top: -100%;
    left: 0;
    display: block;
    white-space: nowrap;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-btn:hover .btn-inner span,
.cookie-btn:hover .btn-inner::before,
.btn-submit:hover .btn-inner span,
.btn-submit:hover .btn-inner::before {
    transform: translateY(100%);
}

/* ── Spinner ── */

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(250, 250, 247, 0.25);
    border-top-color: #FAFAF7;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Word slide-up animation ── */

.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.6;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: wordSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordSlideUp {
    to { transform: translateY(0); }
}

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

/* ── Success state ── */

#success-msg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 13px 0;
    text-align: center;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Once submitted: drop the faded form out of flow and let the success message
   take its place in normal flow, so the section below (drops) sits beneath it
   with proper spacing instead of being overlapped by the absolute message. */
.form-outer.is-complete .form-wrap { display: none; }
.form-outer.is-complete #success-msg { position: relative; top: auto; }

/* ── Footer ── */

.footer-link,
.footer-nav {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #1A1A1C;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'PP Mori', Georgia, serif;
}

.footer-nav:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    color: #1A1A1C;
}

.footer-nav:active, .footer-link:active { opacity: 0.5; transform: scale(0.96); }

.footer-link:hover {
    text-decoration: none;
    color: #1A1A1C;
}

.footer-x:hover .x-text {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.footer-x:hover .x-arrow {
    text-decoration: none;
}

.x-arrow {
    margin-left: 4px;
}

/* ── Cookie banner ── */

#cookie-banner {
    position: fixed;
    bottom: 115px;
    right: 32px;
    width: 280px;
    background: #EDEBE3;
    border-radius: 8px;
    z-index: 50;
    padding: 20px;
    display: none;
}

.cookie-btn {
    font-family: 'PP Mori', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
    height: 50px;
    flex: 1;
    border-radius: 8px;
    border: none;
    background: #1A1A1C;
    color: #FAFAF7;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.1s ease;
}

.cookie-btn:hover  { background: rgba(26, 26, 28, 0.8); }
.cookie-btn:active { background: rgba(26, 26, 28, 0.95); transform: scale(0.97); }

.cookie-btn-outline {
    background: transparent;
    color: #1A1A1C;
    border: 3px solid #1A1A1C;
}

.cookie-btn-outline:hover  { background: transparent; border-color: rgba(26, 26, 28, 0.8); }
.cookie-btn-outline:active { transform: scale(0.97); border-color: rgba(26, 26, 28, 0.95); }

.cookie-learn-more {
    color: #1A1A1C;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.15s ease;
}

.cookie-learn-more:hover {
    text-decoration: none;
}

/* ── Component drops ── */

.drops-section {
    width: 100%;
    max-width: 1336px;
    padding: 0 32px 100px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drops-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #000000;
    margin-bottom: 24px;
}

.drops-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.drop-card {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 300px;
}

.drop-card:hover .drop-thumb {
    opacity: 0.82;
}

.drop-thumb {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: #EDEBE3;
    transition: opacity 0.2s ease;
}

.drop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drop-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.drop-title {
    font-size: 14px;
    color: #1A1A1C;
}

.drop-views {
    font-size: 12px;
    color: #6B6B6B;
    white-space: nowrap;
}

/* ── Responsive ── */

@media (max-width: 767px) {
    .headline {
        white-space: normal !important;
    }

    body {
        min-height: 100dvh;
    }

    .site-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    #cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 20px 20px 32px;
    }

    .cookie-btn {
        height: 44px;
        font-size: 13px;
    }

    .success-actions {
        flex-direction: column;
        gap: 8px;
    }

    .success-or {
        display: none;
    }

    .footer-inner {
        display: grid;
        grid-template-areas:
            "copy x"
            "links links";
        grid-template-columns: 1fr auto;
        align-items: start;
        row-gap: 12px;
    }

    .footer-left {
        display: contents;
    }

    .footer-copy {
        grid-area: copy;
    }

    .footer-x {
        grid-area: x;
    }

    .footer-nav-links {
        grid-area: links;
        display: flex;
        justify-content: flex-start;
        gap: 16px;
    }

    .drops-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .drop-card,
    .drop-thumb {
        width: 100%;
    }

    .drop-thumb {
        height: auto;
        aspect-ratio: 1;
    }

    #cookie-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 49;
    }
}
