:root {
    --yellow: #ffcc00;
    --purple: #570055;
    --purple-deep: #3d003c;
    --teal: #04b299;
    --teal-deep: #038a76;
    --cream: #fafbd3;
    --green: #cbfc8f;
    --ink: #3d003c;
    --white: #fffdf6;
    --header: 92px;
    --shadow: 0 18px 40px rgba(87, 0, 85, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Fredoka", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--purple);
    color: white;
    padding: 8px 12px;
    z-index: 50;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 28px;
    background: var(--yellow);
    border-bottom: 3px dotted var(--purple);
    justify-content: space-between;
}

.brand {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.brand img {
    width: 72px;
    height: 72px;
}

.header-line {
    flex: 1;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--purple);
}

.header-greeting {
    display: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-link:hover {
    background: rgba(87, 0, 85, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--purple);
    color: white;
    font: inherit;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 0 var(--purple-deep);
}

.btn:hover {
    background: #6d0a6a;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--purple-deep);
}

.btn-small {
    padding: 10px 16px;
    box-shadow: 0 4px 0 var(--purple-deep);
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;

    color: white;
    text-decoration: none;
}

.icon-btn:hover {
    background: #6d0a6a;
}

.screen {
    position: relative;
    height: auto;
    padding-top: var(--header);
    background: var(--yellow);
    overflow: visible;
    line-height: 0;
}

.screen-art {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.screen-art-desktop {
    display: block;
}

.screen-art-mobile {
    display: none;
}

.screen.is-playing .screen-art {
    opacity: 0;
}

.screen-video {
    position: absolute;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--header));
    object-fit: contain;
    background: #1a0518;
}

.play {
    background: var(--teal);
    color: var(--purple-deep);
    box-shadow: 0 4px 0 var(--teal-deep);
}

.play:hover {
    background: #1ad4b8;
}

.banner {
    background: var(--yellow);
    border-bottom: 4px solid var(--purple);
}

.banner img {
    width: 100%;
    height: auto;
}

.intro-banner {
    background: var(--yellow);

    line-height: 0;
}

.intro-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.subscribe {
    background:
        radial-gradient(1200px 280px at 50% 100%, var(--green) 0%, transparent 70%),
        var(--cream);
    padding: 48px 0 72px;
}

.subscribe-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.script {
    margin: 0 0 4px;
    font-family: "Caveat", "Segoe Script", cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--teal-deep);
    line-height: 1;
}

h1,
h2 {
    margin: 0 0 10px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--purple);
}

.lede {
    margin: 0 0 22px;
    max-width: 38rem;
    font-size: 1.12rem;
}

.card {
    background: var(--white);
    border: 3px solid var(--purple);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--purple);
}

.optional {
    font-weight: 500;
    color: #7a4d78;
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 2px solid #e4c6e2;
    border-radius: 14px;
    padding: 12px 14px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--teal);
    border-color: var(--teal);
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    margin: 6px 0 16px;
}

.check input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--purple);
}

.honey {
    position: absolute;
    left: -9999px;
    height: 0;
    opacity: 0;
}

.form-error {
    margin: 0 0 12px;
    color: #9d1230;
    font-weight: 600;
}

.thanks h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.poster {
    margin: 0;
}

.poster img {
    width: auto;
    max-width: 100%;
    height: min(78vh, 760px);
    margin-inline: auto;
    border-radius: 32px;
    border: 4px solid var(--purple);
    box-shadow: var(--shadow);
    background: var(--yellow);
}

.site-footer {
    background: var(--yellow);
    border-top: 3px dotted var(--purple);
    padding: 28px 0 36px;
}

.connect-logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.6vw, 24px);
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: 0 1 auto;
    min-width: 0;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-logo-ppl img {
    width: 64px;
    height: 64px;
    background: var(--purple);
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--purple);
    flex-shrink: 0;
}

.footer-logo-partners {
    flex: 1 1 200px;
    max-width: 300px;
}

.footer-logo-partners img {
    width: 100%;
    height: 64px;
}

.footer-logo-hod {
    flex: 0 1 200px;
    max-width: 220px;
}

.footer-logo-hod img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

.inbox {
    margin-top: 22px;
}

.inbox table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.inbox th,
.inbox td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #ead6e8;
    vertical-align: top;
}

.inbox-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-ghost {
    background: white;
    color: var(--purple);
    box-shadow: 0 6px 0 #e4c6e2;
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

@media (max-width: 900px) {

    .subscribe-grid {
        grid-template-columns: 1fr;
    }

    .subscribe .poster {
        display: none;
    }

    .poster img {
        height: auto;
        max-height: 70vh;
    }

}

@media (max-width: 720px) {
    :root {
        --header: 64px;
    }

    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: var(--header);
        padding: 8px 12px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .header-greeting {
        display: block;
        flex: 1;
        min-width: 0;
        margin: 0;
        font-family: "Caveat", "Segoe Script", cursive;
        font-size: clamp(1.15rem, 4.8vw, 1.55rem);
        font-weight: 700;
        line-height: 1.1;
        color: var(--teal-deep);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-nav {
        margin-left: 0;
        gap: 8px;
        flex: 0 0 auto;
    }

    .header-line {
        display: none;
    }

    .nav-link {
        display: none;
    }

    .btn-small {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    /* Mobile: show portrait tree only */
    .screen {
        height: auto;
        min-height: 0;
        padding-top: var(--header);
        overflow: visible;
        background: var(--yellow);
    }

    .screen-art-desktop {
        display: none;
    }

    .screen-art-mobile {
        display: block;
        width: 100%;
        height: auto;
    }

    .screen-video {
        position: absolute;
        top: var(--header);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100% - var(--header));
        object-fit: contain;
        background: var(--yellow);
    }

    .subscribe {
        padding: 32px 0 48px;
    }

    .subscribe h1 {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 18px 0 22px;
    }

    .connect-logos {
        flex-wrap: nowrap;
        gap: 6px;
        padding-inline: 4px;
    }

    .footer-logo-partners {
        flex: 1 1 33%;
        max-width: none;
        min-width: 0;
    }

    .footer-logo-partners img {
        height: 40px;
    }

    .footer-logo-ppl {
        flex: 0 0 auto;
    }

    .footer-logo-ppl img {
        width: 40px;
        height: 40px;
    }

    .footer-logo-hod {
        flex: 1 1 28%;
        max-width: none;
        min-width: 0;
    }

    .footer-logo-hod img {
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .screen-art {
        animation: none;
    }

    .btn:active {
        transform: none;
    }
}