@font-face {
    font-family: "ConfessionFallback";
    src: local("Arial Black");
    font-display: swap;
}

:root {
    --confession-yellow: #ffe100;
    --confession-black: #050505;
    --confession-paper: #d8d5c8;
    --confession-white: #f7f7f3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--confession-paper);
    color: var(--confession-black);
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.poster-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.poster-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/website-background.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -3;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,225,0,0.00), rgba(216,213,200,0.12)),
        radial-gradient(circle at 45% 54%, rgba(255,225,0,0.10), transparent 32%);
    z-index: -2;
    pointer-events: none;
}

.poster-content {
    position: relative;
    z-index: 1;
    padding: 44px 28px 90px;
}

.top-art-space {
    /*
        Spacer for the baked-in poster title area.
        The countdown is the first real content and should always start below
        the background artwork text/logo section.
    */
    min-height: clamp(600px, 46vw, 780px);
}

.brand-block {
    max-width: 520px;
}

.brand-title,
.mini-logo {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-weight: 950;
    letter-spacing: -0.11em;
    line-height: 0.78;
    color: #000;
    text-transform: none;
}

.brand-title {
    font-size: clamp(4.9rem, 12vw, 11.8rem);
    margin: 0 0 34px;
}

.festival-categories {
    display: grid;
    gap: 0;
    margin-top: 24px;
}

.festival-categories span {
    display: block;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.festival-tagline {
    display: inline-block;
    margin-top: 30px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: clamp(1.35rem, 3vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    transform: rotate(-1deg);
}

.black-sash {
    /*
        Countdown is now part of the content card, directly above the
        “Op 25 juli...” text, while still using the generated black brushstroke.
    */
    position: relative;
    width: 100%;
    margin: 0 0 clamp(26px, 4vw, 42px);
    min-height: clamp(112px, 10vw, 160px);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 2.5vw, 30px) clamp(10px, 4vw, 56px);
    transform: none;
    transform-origin: center center;
    z-index: 2;
}

.black-sash::before {
    content: "";
    position: absolute;
    inset: clamp(-26px, -3vw, -16px) clamp(-44px, -4vw, -20px);
    background-image: url("../img/countdown-brushstroke.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
}

.countdown {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 2vw, 22px);
    color: #fff;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    text-shadow: 0 3px 8px rgba(0,0,0,0.38);
}

.countdown div {
    text-align: center;
}

.countdown strong {
    display: block;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.9;
    font-weight: 900;
}

.countdown span {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.55rem);
    font-style: italic;
}

.countdown em {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
    font-style: normal;
    font-weight: 800;
    padding-bottom: 18px;
}

.middle-copy {
    max-width: 730px;
    margin-top: clamp(20px, 4vw, 60px);
    padding: clamp(22px, 4vw, 40px);
    background: rgba(242, 241, 230, 0.68);
    backdrop-filter: blur(2px);
    border-left: 10px solid #000;
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.middle-copy p {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.35;
    margin-bottom: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.details-grid div {
    background: rgba(255,225,0,0.78);
    padding: 14px 16px;
    border: 3px solid #000;
    transform: rotate(-1deg);
}

.details-grid div:nth-child(even) {
    transform: rotate(1deg);
}

.details-grid span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 900;
}

.details-grid strong {
    display: block;
    font-size: 1.05rem;
}

.keep-posted-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    max-width: 690px;
    margin: clamp(50px, 9vw, 120px) 0 40px auto;
    padding: clamp(26px, 4vw, 46px);
    background: var(--confession-white);
    border-radius: 44px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.22);
    transform-origin: center;
}

.keep-posted-card.animate__zoomIn {
    animation-name: popIn;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.72) rotate(-5deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.08) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.fake-email-field {
    width: 100%;
    min-height: 58px;
    border: 4px solid #aaa;
    border-radius: 999px;
    background: #fff;
    color: #999;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    text-align: center;
    margin-bottom: 18px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.fake-email-field:hover,
.fake-email-field:focus {
    transform: scale(1.02);
    border-color: #000;
}

.keep-posted-button,
.modal-submit-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    padding: 15px 22px;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 900;
    transition: transform 180ms ease, background-color 180ms ease;
}

.keep-posted-button:hover,
.keep-posted-button:focus,
.modal-submit-btn:hover,
.modal-submit-btn:focus {
    background: var(--confession-yellow);
    color: #000;
    transform: scale(1.03) rotate(-1deg);
}

.keep-posted-form p {
    max-width: 360px;
    margin: 16px auto 0;
    font-size: 0.68rem;
    line-height: 1.25;
    color: #3e3e3e;
}

.mini-logo {
    min-width: 170px;
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.signup-alert {
    border: 3px solid #000;
    border-radius: 18px;
    font-weight: 800;
}

.confession-modal {
    border: 0;
    border-radius: 30px;
    overflow: hidden;
    background: #f8f7ef;
    box-shadow: 0 28px 80px rgba(0,0,0,0.32);
}

.confession-modal .modal-header {
    background: var(--confession-yellow);
    border: 0;
    padding: 24px 28px;
}

.confession-modal .modal-body {
    padding: 28px;
}

.modal-kicker {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.modal-title {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 2.4rem;
    line-height: 1;
    margin: 0;
}

.form-label {
    font-weight: 900;
}

.form-control,
.form-check-input {
    border: 3px solid #111;
}

.form-control {
    min-height: 52px;
    border-radius: 16px;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
}

.form-control:focus,
.form-check-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(255, 225, 0, 0.5);
}

@media (max-width: 991px) {
    .poster-bg {
        /*
            Mobile crop: make the artwork 2x the viewport width.
            That means the viewport shows the left half of the background
            image, so on a 1600px-wide design roughly the first 800px are visible.
        */
        background-size: 200vw auto;
        background-position: left top;
        background-repeat: repeat-y;
    }

    .top-art-space {
        /*
            Keep the mobile countdown position as-is, because this is already
            approved on mobile.
        */
        min-height: clamp(600px, 46vw, 780px);
    }
}

@media (max-width: 680px) {
    .poster-content {
        padding: 28px 16px 46px;
    }

    .top-art-space {
        min-height: clamp(600px, 46vw, 780px);
    }

    .black-sash {
    /*
        Countdown is now part of the content card, directly above the
        “Op 25 juli...” text, while still using the generated black brushstroke.
    */
    position: relative;
    width: 100%;
    margin: 0 0 clamp(26px, 4vw, 42px);
    min-height: clamp(112px, 10vw, 160px);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 2.5vw, 30px) clamp(10px, 4vw, 56px);
    transform: none;
    transform-origin: center center;
    z-index: 2;
}

}

/* Requested global type treatment */
body,
button,
input,
textarea,
select,
.modal,
.countdown,
.mini-logo,
.brand-title,
.festival-categories span,
.festival-tagline {
    font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}


/* Global Comic Sans override requested */
html,
body,
body *,
button,
input,
textarea,
select,
option,
.modal,
.modal *,
.btn,
.form-control,
.form-label,
.invalid-feedback {
    font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}
