:root {
    --green: #69c795;
    --orange: #ffc263;
    --red: #ef4a2f;
    --cream: #fff2c2;
    --purple: #7d0fc8;
    --blue: #167ebd;
    --ink: #5b351d;
    --page-background: #f7f4ef
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    color: #fff;
    background: var(--page-background)
}

a {
    color: inherit;
    text-decoration: none
}

.site-header {
    position: relative;
    z-index: 5;
    height: 150px;
    background: var(--page-background);
    pointer-events: none
}

.home-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    background: transparent
}

.navbar {
    width: min(1180px, 100% - 32px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    pointer-events: auto
}

.brand {
    display: block;
    width: 164px;
    height: 130px
}

.brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.nav-links {
    display: flex;
    gap: clamp(8px, 2vw, 28px);
    padding-top: 10px
}

.nav-links a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 115px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    text-shadow: -2px -2px 0 var(--purple), 2px -2px 0 var(--purple), -2px 2px 0 var(--purple), 2px 2px 0 var(--purple);
    background-image: url('../assets/cloud-header.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat
}

.nav-links a:before {
    display: none
}

.nav-links a:last-child:before {
    display: none
}

.nav-links a:last-child {
    background-image: url('../assets/sun-header.png')
}

.nav-links a[aria-current=page] {
    color: #fff59b
}

.home-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 280px
}

.home-copy {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 34px));
    margin: 0 auto;
    text-align: center
}

.home-eyebrow {
    margin: 34px 0 4px;
    color: var(--cream);
    font-size: clamp(32px, 4.3vw, 58px);
    line-height: 1.2;
    font-weight: 400;
    text-shadow: 3px 3px #8a6844
}

.home-copy h1 {
    margin: 0;
    font-size: clamp(55px, 7vw, 92px);
    line-height: 1.1;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #e84426 5%, #ff9b22 20%, #19abd0 38%, #ca16d0 54%, #67b537 72%, #f04c35 90%);
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-stroke: 2px #836144
}

.home-skills {
    margin: 63px auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 24px;
    list-style: none;
    font-size: clamp(23px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 400
}

.home-skills li {
    color: #f6535d;
    -webkit-text-stroke: 1.5px #713120
}

.home-skills li:nth-child(2) {
    color: #bedc36
}

.home-skills li:nth-child(3) {
    color: #42d8da
}

.home-skills li:nth-child(4) {
    color: #ff9a2e
}

.home-skills li:nth-child(5) {
    color: #ce43ee
}

.home-skills li:nth-child(6) {
    color: #fff0b3
}

.home-more {
    margin: 65px 0 30px;
    color: var(--cream);
    font-size: clamp(21px, 2.7vw, 34px);
    font-weight: 400;
    text-shadow: 2px 2px #98704d
}

.tree {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: min(48vw, 543px);
    height: auto
}

.home-decoration {
    position: absolute;
    z-index: 1;
    height: auto;
    pointer-events: none
}

.home-circles-lower {
    right: 0;
    top: 48%;
    width: 102px
}

.home-circles-right {
    right: 0;
    top: 25%;
    width: 162px
}

.home-toys {
    right: 0;
    bottom: 0;
    width: min(22vw, 259px)
}

.about-layout {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns:41% 59%;
    background: var(--page-background);
    overflow: hidden
}

.about-photo {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%
}

.about-photo img {
    display: block;
    max-width: 67.5%;
    max-height: 67.5vh;
    width: auto;
    height: auto;
    object-fit: contain
}

.about-copy {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 55px max(38px, 8vw) 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink)
}

.about-decoration {
    position: absolute;
    z-index: 2;
    width: clamp(150px, 20vw, 279px);
    height: auto;
    pointer-events: none
}

.about-decoration-top-left {
    top: -105px;
    left: -105px;
    transform: rotate(-22deg)
}

.about-decoration-top-right {
    top: -115px;
    right: -80px;
    transform: rotate(53deg) scale(.85)
}

.about-decoration-bottom-left {
    bottom: -110px;
    left: -75px;
    transform: rotate(118deg) scale(.9)
}

.about-decoration-bottom-right {
    right: -115px;
    bottom: -90px;
    transform: rotate(-67deg)
}

.about-copy h1, .contact-content h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(35px, 5vw, 55px);
    text-shadow: -2px -2px 0 #173f8e, 2px -2px 0 #173f8e, -2px 2px 0 #173f8e, 2px 2px 0 #173f8e
}

.about-copy p {
    max-width: 590px;
    margin: 0;
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 400;
    line-height: 1.47
}

.doodles {
    position: relative;
    overflow: hidden
}

.doodles:before, .doodles:after {
    content: "◎";
    position: absolute;
    color: rgba(167, 222, 230, .85);
    font-size: 92px;
    line-height: 1
}

.doodles:before {
    top: 12px;
    right: 7px;
    transform: rotate(18deg)
}

.doodles:after {
    left: 7px;
    bottom: 4px;
    color: rgba(255, 176, 132, .7);
    transform: rotate(-18deg)
}

.offer-page, .contact-page {
    background: var(--page-background)
}

.offer-page {
    overflow-x: hidden
}

.offer-content {
    position: relative;
    max-width: 700px;
    min-height: 100vh;
    margin: auto;
    padding: 42px 13px 30px;
    color: var(--ink);
    text-align: center
}

.offer-content > :not(.offer-decoration) {
    position: relative;
    z-index: 1
}

.offer-decoration {
    position: absolute;
    z-index: 0;
    height: auto;
    pointer-events: none
}

.offer-circles-small {
    top: 12%;
    left: -190px;
    width: 122px
}

.offer-circles-large {
    top: 31%;
    right: -310px;
    width: 279px
}

.offer-circle-accent {
    opacity: .7
}

.offer-circle-accent-top {
    top: 6%;
    right: -150px;
    width: 110px;
    transform: rotate(-9deg)
}

.offer-circle-accent-middle {
    top: 48%;
    left: -175px;
    width: 140px;
    transform: rotate(8deg) scaleX(-1)
}

.offer-circle-accent-bottom {
    right: -145px;
    bottom: 5%;
    width: 95px;
    transform: rotate(5deg)
}

.offer-heading p {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: .9;
    text-shadow: -1.5px -1.5px var(--purple), 1.5px 1.5px var(--purple)
}

.offer-heading p span {
    font-size: 22px
}

.offer-heading h1 {
    margin: 38px 0 30px;
    color: #f78a90;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    -webkit-text-stroke: 1.5px var(--purple)
}

.offer-details h2, .benefits > h2 {
    margin: 23px 0 2px;
    color: var(--purple);
    font-size: 23px;
    text-align: left
}

.offer-details p {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45
}

.benefits {
    position: relative;
    margin: 35px -13px -30px;
    padding: 1px 13px 20px;
    background: transparent
}

.benefits > :not(.benefits-brain) {
    position: relative;
    z-index: 1
}

.benefits-brain {
    position: absolute;
    z-index: 0;
    top: -65px;
    right: -245px;
    width: 390px;
    height: auto;
    opacity: .45;
    transform: rotate(-8deg);
    pointer-events: none
}

.benefits > h3 {
    margin: 7px 0 17px;
    color: #2678dc;
    font-size: 35px;
    text-align: left;
    -webkit-text-stroke: 1px var(--purple)
}

.benefits > h3 span {
    color: #ff6689
}

.benefits > p {
    margin: 0 auto 26px;
    max-width: 640px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45
}

.benefits ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: points;
    text-align: left
}

.benefits li {
    counter-increment: points;
    margin: 0 0 18px
}

.benefits h4 {
    display: inline-block;
    margin: 0;
    padding: 1px 5px;
    border-radius: 4px;
    background: #e756a5;
    color: #fff;
    font-size: 17px;
    line-height: 1.2
}

.benefits h4:before {
    content: counter(points) ". "
}

.benefits li:nth-child(2) h4 {
    background: #7852ef
}

.benefits li:nth-child(3) h4 {
    background: #4f77f2
}

.benefits li:nth-child(4) h4 {
    background: #e76e89
}

.benefits li:nth-child(5) h4 {
    background: #2bb6cc
}

.benefits li p {
    margin: 8px 20px 0;
    color: #79512d;
    font-size: 14px;
    font-weight: 400;
    text-align: center
}

.contact-content {
    position: relative;
    min-height: 100vh;
    padding: 110px max(9vw, 35px)
}

.contact-content h1 {
    width: max-content;
    margin: 0 0 48px;
    font-size: 54px
}

.contact-content address {
    display: grid;
    gap: 25px;
    font: normal 400 clamp(20px, 3vw, 31px)/1.2 "Josefin Sans", sans-serif;
    color: #111
}

.contact-content address a {
    width: max-content;
    max-width: 75%;
    text-shadow: 1px 1px #fff
}

.contact-content address span {
    color: #fff;
    font: 400 44px/.5 "Josefin Sans", sans-serif;
    text-shadow: 1px 1px #4ebadb;
    vertical-align: -6px
}

.contact-flower {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: clamp(240px, 32vw, 467px);
    height: auto;
    pointer-events: none
}

@media (max-width: 700px) {
    .site-header {
        position: relative;
        height: 81px;
        background: var(--page-background)
    }

    .home-page .site-header {
        height: 81px
    }

    .navbar {
        width: 100%;
        padding: 8px 12px;
        align-items: center
    }

    .brand {
        width: 82px;
        height: 65px
    }

    .nav-links {
        gap: 15px;
        padding: 0
    }

    .nav-links a {
        font-size: 17px;
        text-shadow: -1px -1px 0 var(--purple), 1px 1px 0 var(--purple)
    }

    .nav-links a:before {
        display: none
    }

    .nav-links {
        gap: 2px;
        padding-top: 0
    }

    .nav-links a {
        width: 76px;
        height: 58px;
        padding: 0 0 5px;
        background-size: contain
    }

    .home-hero {
        min-height: 100vh;
        padding-top: 170px
    }

    .home-copy {
        width: calc(100% - 34px)
    }

    .home-skills {
        margin-top: 42px
    }

    .home-more {
        margin-top: 48px
    }

    .tree {
        width: 55%;
        opacity: .72
    }

    .home-circles-lower {
        top: 43%;
        right: -25px;
        width: 82px
    }

    .home-circles-right {
        top: 25%;
        right: -55px;
        width: 120px
    }

    .home-toys {
        right: -35px;
        width: 150px
    }

    .about-layout {
        grid-template-columns:41% 59%;
        min-height: calc(100vh - 81px)
    }

    .about-photo, .about-copy {
        min-height: calc(100vh - 81px)
    }

    .about-photo img {
        max-width: 66%;
        max-height: calc(67.5vh - 61px)
    }

    .about-copy {
        padding: 30px 18px
    }

    .about-copy h1 {
        margin-bottom: 18px
    }

    .about-copy p {
        font-size: clamp(13px, 3.2vw, 20px)
    }

    .offer-content {
        padding-top: 20px
    }

    .offer-circles-small {
        top: 11%;
        left: -35px;
        width: 82px
    }

    .offer-circles-large {
        top: 35%;
        right: -80px;
        width: 170px
    }

    .offer-circle-accent-top {
        top: 7%;
        right: -28px;
        width: 75px
    }

    .offer-circle-accent-middle {
        top: 51%;
        left: -42px;
        width: 105px
    }

    .offer-circle-accent-bottom {
        right: -30px;
        bottom: 4%;
        width: 85px
    }

    .benefits-brain {
        top: -35px;
        right: -105px;
        width: 245px;
        opacity: .35
    }

    .contact-content {
        min-height: calc(100vh - 81px);
        padding-top: 55px
    }

    .contact-content address a {
        max-width: 100%
    }
}

@media (max-width: 460px) {
    .navbar {
        gap: 8px
    }

    .nav-links {
        gap: 9px
    }

    .nav-links a {
        font-size: 14px
    }

    .nav-links a {
        width: 68px;
        height: 54px
    }

    .about-layout {
        display: block
    }

    .about-photo {
        min-height: 74vh;
        padding: 24px
    }

    .about-photo img {
        max-width: 61.5%;
        max-height: 51vh
    }

    .about-decoration {
        width: 165px
    }

    .about-copy {
        min-height: auto;
        padding: 40px 24px 50px
    }

    .about-copy p {
        font-size: 17px
    }

    .offer-heading h1 {
        font-size: 29px
    }

    .offer-details h2, .benefits > h2 {
        font-size: 19px
    }

    .offer-details p {
        font-size: 14px
    }

    .benefits > h3 {
        font-size: 27px
    }

    .contact-content {
        padding-inline: 22px
    }

    .contact-content h1 {
        font-size: 43px
    }

    .contact-content address {
        font-size: 18px
    }

    .contact-flower {
        right: -20px;
        bottom: 2%;
        width: 210px
    }
}

/* Header inherits the visual background of the current page. */
.site-header,
.home-page .site-header {
    background: transparent;
}
