@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --bg: #eefbfc;
    --surface: #ffffff;
    --ink: #123331;
    --muted: #4c6867;
    --accent: #008f88;
    --accent-dark: #006c68;
    --school-blue: #00a7dd;
    --logo-green: #1d4f0d;
    --raffle-red: #d53025;
    --raffle-gold: #f4b725;
    --sky: #bcecf1;
    --border: #b6e5e4;
    --shadow: 0 22px 70px rgba(0, 108, 104, 0.16);
    font-family:
        Quicksand,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 16% 18%,
            rgba(0, 167, 221, 0.24),
            transparent 28rem
        ),
        radial-gradient(
            circle at 86% 18%,
            rgba(0, 143, 136, 0.22),
            transparent 24rem
        ),
        linear-gradient(135deg, #eefbfc 0%, #d8f4f1 48%, #f5fbf4 100%);
    color: var(--ink);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    display: grid;
    align-items: center;
    padding: clamp(28px, 5vw, 64px) 20px 24px;
}

.hero__content {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(22px, 4vw, 38px);
    justify-items: center;
    text-align: center;
}

.brand-mark {
    width: min(176px, 46vw);
    height: auto;
    filter: drop-shadow(0 18px 34px rgba(0, 108, 104, 0.2));
}

.hero__copy {
    max-width: 760px;
}

h1 {
    margin: 0;
    font-size: clamp(1.55rem, 5vw, 4.1rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
    text-wrap: balance;
    color: var(--ink);
}

.hero__copy p {
    margin: 18px auto 0;
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
    line-height: 1.55;
}

.raffle-panel {
    position: relative;
    width: min(980px, 100%);
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(0, 108, 104, 0.18);
    background:
        linear-gradient(
            135deg,
            rgba(255, 252, 240, 0.98),
            rgba(255, 255, 255, 0.96) 54%,
            rgba(235, 250, 249, 0.98)
        ),
        var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: left;
}

.raffle-panel::before,
.raffle-panel::after {
    position: absolute;
    content: "";
    width: 150px;
    height: 150px;
    border: 16px solid rgba(244, 183, 37, 0.26);
    border-radius: 50%;
    pointer-events: none;
}

.raffle-panel::before {
    top: -92px;
    right: -44px;
}

.raffle-panel::after {
    bottom: -104px;
    left: -58px;
}

.raffle-panel__flag {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--raffle-red), #aa211a);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.raffle-panel__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(22px, 4vw, 42px);
    padding: clamp(22px, 4vw, 34px);
    padding-bottom: 20px;
}

.raffle-panel__copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.raffle-panel h2 {
    margin: 0;
    color: #0d3269;
    font-size: clamp(1.75rem, 4vw, 3.3rem);
    font-weight: 800;
    line-height: 1;
    text-wrap: balance;
}

.raffle-panel__copy p {
    margin: 14px 0 0;
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1rem, 1.55vw, 1.14rem);
    line-height: 1.55;
}

.event-ticket {
    position: relative;
    align-self: stretch;
    display: grid;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 2px solid rgba(0, 108, 104, 0.24);
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            -4deg,
            rgba(244, 183, 37, 0.08) 0 2px,
            transparent 2px 16px
        ),
        #fffdf4;
}

.event-ticket::before,
.event-ticket::after {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    content: "";
    border: 2px solid rgba(0, 108, 104, 0.24);
    border-radius: 50%;
    background: #eefbfc;
    transform: translateY(-50%);
}

.event-ticket::before {
    left: -14px;
}

.event-ticket::after {
    right: -14px;
}

.event-ticket__item {
    position: relative;
    display: grid;
    min-height: 96px;
    grid-template-rows: 27px 1fr;
    align-items: start;
    gap: 9px;
    padding: 22px 18px 18px 22px;
}

.event-ticket__item + .event-ticket__item {
    border-top: 2px dotted rgba(0, 108, 104, 0.32);
}

.event-ticket dt {
    width: max-content;
    margin: 0;
    padding: 4px 9px 5px;
    border-radius: 999px;
    background: var(--raffle-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.event-ticket dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.raffle-panel__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px clamp(22px, 4vw, 34px) clamp(22px, 4vw, 30px);
    border-top: 1px dashed rgba(0, 108, 104, 0.28);
}

.prize-summary {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 18px;
    max-width: 560px;
}

.prize-summary__label {
    margin: 0;
    color: #183c3a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.prize-summary ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #183c3a;
    font-size: 0.98rem;
    line-height: 1.25;
}

.raffle-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.text-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #00a786);
    color: #ffffff;
    padding: 0 22px;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0, 108, 104, 0.24);
    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.button:hover {
    background: linear-gradient(135deg, var(--accent-dark), #008f88);
    box-shadow: 0 16px 32px rgba(0, 108, 104, 0.3);
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(0, 167, 221, 0.72);
    outline-offset: 4px;
}

.site-footer {
    padding: 20px;
    text-align: center;
}

.site-footer p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .hero {
        align-items: start;
        padding-top: 34px;
    }

    .hero__content {
        gap: 24px;
    }

    .raffle-panel__flag {
        width: 100%;
        justify-content: center;
        padding: 0 16px;
    }

    .raffle-panel__main {
        grid-template-columns: 1fr;
        padding: 22px 18px 18px;
    }

    .raffle-panel__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 18px 22px;
    }

    .raffle-panel__actions {
        justify-content: stretch;
    }

    .prize-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .button,
    .text-link {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .hero__content {
        grid-template-columns: minmax(310px, 0.8fr) minmax(600px, 1.2fr);
        grid-template-areas:
            "brand raffle"
            "copy raffle";
        align-items: center;
        column-gap: clamp(36px, 6vw, 72px);
        row-gap: 28px;
        text-align: left;
    }

    .brand-mark {
        grid-area: brand;
        justify-self: start;
        width: min(154px, 15vw);
    }

    .hero__copy {
        grid-area: copy;
    }

    .hero__copy p {
        margin-left: 0;
    }

    .raffle-panel {
        grid-area: raffle;
        justify-self: stretch;
    }

    .raffle-panel__main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-ticket {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-ticket__item + .event-ticket__item {
        border-top: 0;
        border-left: 2px dotted rgba(0, 108, 104, 0.32);
    }

    .raffle-panel__footer {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
