:root {
    --plan-ink: #183153;
    --plan-muted: #687994;
    --plan-paper: #fffdf8;
    --plan-shadow: 0 20px 55px rgba(25, 53, 91, .12);
}

.yearly-plan-page {
    background: var(--plan-paper);
    color: var(--plan-ink);
}

.theme-plan-hero {
    min-height: 590px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eef8ff 0%, #fff7e8 52%, #fff0f3 100%);
}

.theme-plan-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .27;
    background-image: radial-gradient(#ef8e9e 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.theme-hero-inner {
    min-height: 590px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.theme-hero-copy {
    max-width: 650px;
    padding: 5rem 0 3rem;
}

.theme-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #e76572;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 800;
}

.theme-eyebrow::before {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 5px;
    background: #f5b642;
}

.theme-hero-copy h1 {
    margin: 1.1rem 0 1.2rem;
    color: var(--plan-ink);
    font-family: 'Playpen Sans', cursive;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.theme-hero-copy h1 span {
    color: #e76572;
    position: relative;
}

.theme-hero-copy h1 span::after {
    content: '';
    position: absolute;
    height: 10px;
    left: 3%;
    right: 4%;
    bottom: -4px;
    border-bottom: 4px solid #f5b642;
    border-radius: 50%;
    transform: rotate(-2deg);
}

.theme-hero-copy p {
    max-width: 510px;
    margin: 0;
    color: var(--plan-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.theme-hero-button {
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    color: white;
    background: #183153;
    box-shadow: 0 12px 25px rgba(24, 49, 83, .2);
    text-decoration: none;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.theme-hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 30px rgba(24, 49, 83, .25);
}

.theme-hero-button span {
    font-size: 1.3rem;
}

.theme-hero-art {
    width: 380px;
    height: 380px;
    margin-right: 4%;
    position: relative;
    border-radius: 47% 53% 45% 55%;
    background: #f6c85f;
    box-shadow: 25px 27px 0 #f39b8e, var(--plan-shadow);
    transform: rotate(5deg);
}

.art-card {
    position: absolute;
    width: 215px;
    height: 260px;
    top: 64px;
    left: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 9px solid #fff;
    border-radius: 24px;
    color: white;
    background: #73b9b1;
    box-shadow: 8px 12px 0 rgba(24, 49, 83, .14);
    transform: rotate(-9deg);
}

.art-card span {
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #fff;
    background: #e76572;
    font-family: 'Playpen Sans', cursive;
    font-size: 2.3rem;
    font-weight: 800;
}

.art-card strong {
    text-align: center;
    line-height: 1.45;
    letter-spacing: .12em;
    font-size: .8rem;
}

.art-sun,
.art-flower,
.art-star {
    position: absolute;
    color: #fff;
    font-family: sans-serif;
}

.art-sun {
    top: 18px;
    right: 38px;
    color: #e76572;
    font-size: 4.5rem;
}

.art-flower {
    bottom: 30px;
    left: 22px;
    color: #fff;
    font-size: 3.5rem;
}

.art-star {
    color: #e76572;
    font-size: 2.7rem;
}

.star-a {
    top: 92px;
    left: 35px;
}

.star-b {
    right: 20px;
    bottom: 90px;
    color: #fff;
}

.theme-hero-orb {
    position: absolute;
    border-radius: 50%;
    opacity: .6;
}

.orb-one {
    width: 160px;
    height: 160px;
    right: -45px;
    top: 80px;
    background: #a5d8d1;
}

.orb-two {
    width: 90px;
    height: 90px;
    left: 44%;
    bottom: -35px;
    background: #f3b1be;
}

.theme-hero-doodle {
    position: absolute;
    left: 8%;
    bottom: 12%;
    color: #f5b642;
    font-size: 3rem;
    transform: rotate(18deg);
}

.theme-plan-intro {
    padding: 6rem 0 2rem;
    text-align: center;
}

.intro-heading h2 {
    margin: .6rem 0 .7rem;
    font-family: 'Playpen Sans', cursive;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    letter-spacing: -.04em;
}

.intro-heading h2 em {
    color: #e76572;
    font-style: normal;
}

.intro-heading p {
    margin: 0 auto;
    max-width: 600px;
    color: var(--plan-muted);
    line-height: 1.7;
}

.grade-legend {
    display: inline-flex;
    gap: .7rem;
    margin-top: 2.5rem;
    padding: .5rem;
    border: 1px solid #e6ebf1;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 35px rgba(25, 53, 91, .08);
}

.grade-button {
    min-width: 135px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.1rem;
    border: 0;
    border-radius: 14px;
    color: var(--plan-muted);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all .25s ease;
}

.grade-button b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #e76572;
    background: #fff1f2;
    font-size: .82rem;
}

.grade-button span {
    font-size: .86rem;
    font-weight: 700;
}

.grade-button.active {
    color: #fff;
    background: #183153;
    box-shadow: 0 6px 15px rgba(24, 49, 83, .2);
}

.grade-button.active b {
    color: #183153;
    background: #f6c85f;
}

.theme-grid-section {
    padding: 3rem 0 7rem;
}

.theme-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.year-theme-card {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(24, 49, 83, .08);
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 35px rgba(25, 53, 91, .07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.year-theme-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: var(--card-color);
}

.year-theme-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--plan-shadow);
}

.theme-number {
    float: right;
    color: var(--card-color);
    opacity: .65;
    font-family: 'Playpen Sans', cursive;
    font-size: 1.25rem;
    font-weight: 800;
}

.theme-card-heading {
    min-height: 70px;
    padding-right: 4rem;
}

.theme-card-heading span {
    color: var(--card-color);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.theme-card-heading h3 {
    margin: .4rem 0 1.35rem;
    color: var(--plan-ink);
    font-family: 'Playpen Sans', cursive;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.theme-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
    border: 2px dashed color-mix(in srgb, var(--card-color), white 55%);
    border-radius: 20px;
    background: var(--card-tint);
    overflow: hidden;
}

.theme-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 560px;
    max-height: 780px;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s ease;
}

.theme-image-frame.has-image img {
    opacity: 1;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: var(--card-color);
    text-align: center;
}

.has-image .image-placeholder {
    display: none;
}

.image-placeholder span {
    font-size: 2.4rem;
}

.image-placeholder strong {
    font-family: 'Playpen Sans', cursive;
    font-size: 1rem;
}

.image-placeholder small {
    max-width: 90%;
    color: var(--plan-muted);
    font-family: monospace;
    font-size: .64rem;
    overflow-wrap: anywhere;
}

.theme-coral {
    --card-color: #e76572;
    --card-tint: #fff1f2;
}

.theme-yellow {
    --card-color: #d99b16;
    --card-tint: #fff9e8;
}

.theme-blue {
    --card-color: #408fc5;
    --card-tint: #edf8ff;
}

.theme-green {
    --card-color: #58a079;
    --card-tint: #effaf2;
}

.theme-purple {
    --card-color: #9171bd;
    --card-tint: #f7f1ff;
}

.theme-orange {
    --card-color: #e88943;
    --card-tint: #fff5eb;
}

.theme-teal {
    --card-color: #309e9a;
    --card-tint: #edfbfa;
}

.theme-pink {
    --card-color: #d8669d;
    --card-tint: #fff0f7;
}

.theme-indigo {
    --card-color: #6377be;
    --card-tint: #f1f4ff;
}

.theme-lime {
    --card-color: #80a844;
    --card-tint: #f5fbe9;
}

.theme-sky {
    --card-color: #509fc1;
    --card-tint: #eefaff;
}

.theme-plan-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 850px;
    margin: 3rem auto 0;
    padding: 1.2rem 1.4rem;
    border-radius: 17px;
    color: var(--plan-muted);
    background: #fff7e5;
    line-height: 1.6;
}

.theme-plan-note span {
    font-size: 1.6rem;
}

.theme-plan-note p {
    margin: 0;
}

.theme-plan-note code {
    padding: .15rem .35rem;
    border-radius: 4px;
    color: #a86410;
    background: rgba(255, 255, 255, .65);
    font-size: .85em;
}

.theme-footer {
    padding: 2.5rem;
    border-top: 1px solid #edf0f3;
    color: #8a98aa;
    background: #fff;
    text-align: center;
    font-size: .85rem;
}

@media (max-width: 1000px) {
    .theme-hero-inner {
        padding-left: 5%;
        padding-right: 5%;
    }

    .theme-hero-art {
        width: 310px;
        height: 310px;
        margin-right: 0;
    }

    .art-card {
        width: 180px;
        height: 220px;
        top: 48px;
        left: 65px;
    }

    .theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {

    .theme-plan-hero,
    .theme-hero-inner {
        min-height: auto;
    }

    .theme-hero-inner {
        display: block;
    }

    .theme-hero-copy {
        padding: 8rem 0 2rem;
    }

    .theme-hero-art {
        width: 250px;
        height: 250px;
        margin: 1rem auto 5rem;
    }

    .art-card {
        width: 145px;
        height: 175px;
        top: 40px;
        left: 52px;
        border-width: 6px;
    }

    .art-card span {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .art-card strong {
        font-size: .58rem;
    }

    .art-sun {
        font-size: 3rem;
    }

    .theme-plan-intro {
        padding-top: 4rem;
    }

    .grade-legend {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .grade-button {
        min-width: 0;
        flex: 1;
        padding: .65rem .45rem;
        gap: .35rem;
    }

    .grade-button span {
        font-size: .68rem;
    }

    .theme-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .year-theme-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .theme-card-heading {
        padding-right: 2.5rem;
    }

    .theme-image-frame,
    .theme-image-frame img {
        min-height: 320px;
    }

    .theme-image-frame img {
        max-height: 560px;
    }

    .theme-grid-section {
        padding-top: 2rem;
    }

    .theme-plan-note {
        align-items: flex-start;
        font-size: .88rem;
    }
}