:root {
    --paper: #fff6bd;
    --ink: #101b34;
    --red: #ff523f;
    --red-dark: #e63f30;
    --blue: #2864dc;
    --yellow: #ffc928;
    --white: #fffdf0;
    --line: 0.25rem;
    --pad: clamp(1.4rem, 4.5vw, 5rem);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    background: var(--paper);
}

body {
    min-width: 20rem;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.66), transparent 24rem),
        radial-gradient(circle at 82% 48%, rgba(255, 255, 255, 0.45), transparent 30rem),
        var(--paper);
    font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(1.4rem, 4vh, 3rem) var(--pad) clamp(1.2rem, 3vh, 2rem);
}

.logo {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 6.1rem;
    height: 3.7rem;
    filter: drop-shadow(0.22rem 0.26rem 0 var(--white));
    transform: rotate(-3deg);
}

.logo__circle,
.logo__square,
.logo__triangle {
    position: absolute;
    border: 0.2rem solid var(--ink);
}

.logo__circle {
    top: 0;
    left: 0;
    width: 2.7rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red);
}

.logo__triangle {
    bottom: 0;
    left: 1.25rem;
    width: 0;
    height: 0;
    border-width: 0 1.5rem 2.65rem;
    border-color: transparent transparent var(--ink);
}

.logo__triangle::after {
    position: absolute;
    top: 0.42rem;
    left: -1.1rem;
    width: 0;
    height: 0;
    border-width: 0 1.1rem 1.95rem;
    border-style: solid;
    border-color: transparent transparent var(--yellow);
    content: "";
}

.logo__square {
    right: 0;
    bottom: 0.25rem;
    width: 2.45rem;
    aspect-ratio: 1;
    background: var(--blue);
    transform: rotate(7deg);
}

.logo__ray {
    position: absolute;
    top: -0.1rem;
    left: 3.75rem;
    width: 0.2rem;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--ink);
    transform: rotate(22deg);
}

.logo__ray::before,
.logo__ray::after {
    position: absolute;
    width: 0.2rem;
    height: 1rem;
    border-radius: inherit;
    background: inherit;
    content: "";
}

.logo__ray::before {
    top: 0.25rem;
    left: 1.05rem;
    transform: rotate(31deg);
}

.logo__ray::after {
    top: -0.12rem;
    left: -1.25rem;
    transform: rotate(-38deg);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.83fr) minmax(29rem, 1.17fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: center;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding: clamp(2.2rem, 4vh, 4rem) 0;
}

.copy {
    position: relative;
    z-index: 4;
    max-width: 44rem;
}

h1 {
    max-width: 9ch;
    margin: 0;
    font-size: clamp(4rem, 6.8vw, 7.6rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.88;
    text-wrap: balance;
}

.intro {
    max-width: 31rem;
    margin: clamp(1.8rem, 3vw, 2.8rem) 0 0;
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.48;
}

.contact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: min(100%, 20rem);
    min-height: 4.25rem;
    margin-top: clamp(1.8rem, 3vw, 2.5rem);
    padding: 0.9rem 1rem 0.9rem 1.55rem;
    border: var(--line) solid var(--ink);
    border-radius: 1.1rem;
    color: var(--white);
    background: var(--red);
    box-shadow: 0.35rem 0.42rem 0 var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transform: rotate(-1deg);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact:hover {
    background: var(--red-dark);
    box-shadow: 0.5rem 0.58rem 0 var(--white);
    transform: rotate(1deg) translateY(-0.2rem);
}

.contact:focus-visible {
    outline: 0.25rem solid var(--blue);
    outline-offset: 0.35rem;
}

.contact__arrow {
    display: grid;
    width: 2.2rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: var(--yellow);
    font-family: Arial, sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.contact:hover .contact__arrow {
    transform: translateX(0.2rem) rotate(-8deg);
}

.playground {
    position: relative;
    width: min(49vw, 46rem);
    aspect-ratio: 1.15;
    align-self: end;
    justify-self: end;
}

.ground {
    position: absolute;
    right: 0;
    bottom: 5%;
    width: 95%;
    height: 0.22rem;
    border-radius: 50%;
    background: var(--ink);
    transform: rotate(-0.6deg);
}

.shape {
    position: absolute;
    border: var(--line) solid var(--ink);
    box-shadow: 0.3rem 0.32rem 0 var(--white);
}

.arch {
    right: 33%;
    bottom: 5%;
    width: 48%;
    height: 29%;
    border-radius: 0.6rem 0.6rem 0 0;
    background: var(--blue);
}

.arch::after {
    position: absolute;
    bottom: calc(var(--line) * -1);
    left: 50%;
    width: 29%;
    height: 61%;
    border: var(--line) solid var(--ink);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    background: var(--paper);
    content: "";
    transform: translateX(-50%);
}

.half-circle {
    left: 25%;
    bottom: 33.5%;
    width: 22%;
    height: 13%;
    border-radius: 10rem 10rem 0 0;
    background: var(--red);
}

.yellow-tower {
    right: 31%;
    bottom: 33.5%;
    width: 20%;
    height: 31%;
    border-radius: 0.3rem;
    background: var(--yellow);
    transform: rotate(-1.5deg);
}

.yellow-tower::after {
    position: absolute;
    top: 17%;
    left: 43%;
    width: 1.1rem;
    height: 54%;
    border-left: 0.25rem solid var(--ink);
    border-radius: 50%;
    content: "";
    transform: rotate(13deg) skewY(-22deg);
}

.blue-block {
    right: 10%;
    bottom: 44%;
    width: 25%;
    height: 19%;
    border-radius: 0.45rem;
    background: var(--blue);
    transform: rotate(1.5deg);
}

.blue-block::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.25rem;
    aspect-ratio: 1;
    border: var(--line) solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    content: "";
    transform: translate(-50%, -50%);
}

.red-bridge {
    right: 14%;
    bottom: 63%;
    width: 38%;
    height: 18%;
    border-radius: 0.5rem 0.5rem 0 0;
    background: var(--red);
}

.red-bridge::after {
    position: absolute;
    bottom: calc(var(--line) * -1);
    left: 50%;
    width: 32%;
    height: 72%;
    border: var(--line) solid var(--ink);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    background: var(--paper);
    content: "";
    transform: translateX(-50%);
}

.roof {
    right: 19%;
    bottom: 80.2%;
    width: 0;
    height: 0;
    border-right: clamp(3.7rem, 6vw, 5.6rem) solid transparent;
    border-bottom: clamp(5.8rem, 8vw, 7.8rem) solid var(--ink);
    border-left: clamp(3.7rem, 6vw, 5.6rem) solid transparent;
    filter: drop-shadow(0.3rem 0.32rem 0 var(--white));
}

.roof::after {
    position: absolute;
    top: 0.48rem;
    left: clamp(-5rem, -5.3vw, -3.25rem);
    width: 0;
    height: 0;
    border-right: clamp(3.3rem, 5.3vw, 5rem) solid transparent;
    border-bottom: clamp(5.15rem, 7.2vw, 7rem) solid var(--blue);
    border-left: clamp(3.3rem, 5.3vw, 5rem) solid transparent;
    content: "";
}

.steps {
    right: 1%;
    bottom: 5%;
    width: 25%;
    height: 27%;
    border-radius: 0.35rem 0.35rem 0 0;
    background: var(--yellow);
    clip-path: polygon(0 45%, 25% 45%, 25% 28%, 52% 28%, 52% 60%, 78% 60%, 78% 77%, 100% 77%, 100% 100%, 0 100%);
}

.column {
    right: -3%;
    bottom: 5%;
    width: 11%;
    height: 39%;
    border-radius: 48% 48% 0.35rem 0.35rem / 7% 7% 0.35rem 0.35rem;
    background: var(--red);
    transform: rotate(1deg);
}

.wedge {
    left: 0;
    bottom: 5%;
    width: 0;
    height: 0;
    border-right: clamp(4.5rem, 7vw, 7rem) solid transparent;
    border-bottom: clamp(6rem, 9vw, 9rem) solid var(--ink);
    border-left: clamp(4.5rem, 7vw, 7rem) solid transparent;
    filter: drop-shadow(0.3rem 0.32rem 0 var(--white));
    transform: rotate(-4deg);
}

.wedge::after {
    position: absolute;
    top: 0.55rem;
    left: clamp(-6.2rem, -6.2vw, -4rem);
    width: 0;
    height: 0;
    border-right: clamp(4rem, 6.2vw, 6.2rem) solid transparent;
    border-bottom: clamp(5.25rem, 8vw, 8rem) solid var(--yellow);
    border-left: clamp(4rem, 6.2vw, 6.2rem) solid transparent;
    content: "";
}

.sun {
    position: absolute;
    top: -8%;
    right: 2%;
    display: grid;
    width: clamp(5rem, 8vw, 7.5rem);
    aspect-ratio: 1;
    place-items: center;
    border: var(--line) solid var(--ink);
    border-radius: 46% 54% 49% 51% / 52% 47% 53% 48%;
    background: var(--yellow);
    box-shadow: inset 0 0 0 0.35rem var(--white);
    font-size: clamp(2rem, 3vw, 3rem);
    transform: rotate(5deg);
    animation: sunny 5s ease-in-out infinite;
}

.sun::after {
    content: "◡";
    transform: translateY(-0.15rem);
}

.spark {
    position: absolute;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
}

.spark--one {
    top: 8%;
    left: 52%;
    color: var(--yellow);
    text-shadow:
        -0.12rem -0.12rem 0 var(--ink),
        0.12rem -0.12rem 0 var(--ink),
        -0.12rem 0.12rem 0 var(--ink),
        0.12rem 0.12rem 0 var(--ink);
    animation: twinkle 2.2s ease-in-out infinite;
}

.spark--two {
    top: 28%;
    right: 1%;
    color: var(--blue);
    text-shadow:
        -0.12rem -0.12rem 0 var(--ink),
        0.12rem -0.12rem 0 var(--ink),
        -0.12rem 0.12rem 0 var(--ink),
        0.12rem 0.12rem 0 var(--ink);
    animation: twinkle 2.2s 0.8s ease-in-out infinite;
}

.hook {
    position: absolute;
    top: -13%;
    left: 38%;
    width: 4rem;
    height: 34%;
    transform-origin: 50% 0;
    animation: swing 3.7s ease-in-out infinite;
}

.hook__line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.22rem;
    height: 72%;
    border-radius: 999px;
    background: var(--ink);
}

.hook__block {
    position: absolute;
    right: 0;
    bottom: 12%;
    width: 3rem;
    aspect-ratio: 1;
    border: var(--line) solid var(--ink);
    border-radius: 0.45rem;
    background: var(--blue);
}

.hook__curve {
    position: absolute;
    right: 0.45rem;
    bottom: 0;
    width: 2.2rem;
    height: 2rem;
    border: var(--line) solid var(--ink);
    border-top: 0;
    border-radius: 0 0 1.5rem 1.5rem;
}

.dotted-path {
    position: absolute;
    top: 24%;
    left: 7%;
    width: 34%;
    height: 36%;
    border-bottom: 0.2rem dashed var(--ink);
    border-left: 0.2rem dashed var(--ink);
    border-radius: 0 0 0 70%;
    transform: rotate(-18deg);
}

footer {
    justify-self: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transform: rotate(-1deg);
}

@keyframes swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(4deg); }
}

@keyframes twinkle {
    0%, 100% { transform: rotate(-7deg) scale(0.9); }
    50% { transform: rotate(8deg) scale(1.12); }
}

@keyframes sunny {
    0%, 100% { transform: rotate(2deg); }
    50% { transform: rotate(8deg) translateY(-0.2rem); }
}

@media (max-width: 960px) {
    .page {
        min-height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0;
    }

    h1 {
        max-width: 8.6ch;
    }

    .playground {
        width: min(85vw, 42rem);
        justify-self: center;
        margin-top: 2rem;
    }
}

@media (max-width: 560px) {
    .page {
        padding-top: 1rem;
    }

    .logo {
        transform: scale(0.82) rotate(-3deg);
        transform-origin: left top;
    }

    .hero {
        gap: 1rem;
        padding: 2.6rem 0 3rem;
    }

    h1 {
        font-size: clamp(3.5rem, 16vw, 5.2rem);
    }

    .intro {
        font-size: 1.08rem;
    }

    .contact {
        width: 100%;
        min-width: 0;
    }

    .playground {
        width: 97vw;
        margin-right: calc(var(--pad) * -0.55);
        transform: scale(0.92);
    }

    .sun {
        top: -2%;
    }
}

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