:root {
    --color-secondary: hsl(201, 95%, 85%);
    --color-primary: oklch(60% 0.1 300);
    --color-primary-1: oklch(90% 0.05 300);

    --color-background-1: hsl(43, 99%, 53%);
    --color-background-2: hsl(48, 100%, 51%);

    --badge-tccve: hsl(229 100% 70%);
    --badge-certifier: #b0bec5;

    --color-grey-1: hsl(0, 0%, 30%);
    --color-grey-2: hsl(0, 0%, 40%);
    --color-grey-3: hsl(0, 0%, 50%);
    --color-grey-4: hsl(0, 0%, 60%);
    --color-grey-5: hsl(0, 0%, 70%);
    --color-grey-6: hsl(0, 0%, 80%);
    --color-grey-7: hsl(0, 0%, 90%);

    --color-light-hue: 0;
    --color-light-1: oklch(99% 0 var(--color-light-hue));
    --color-light-2: oklch(98% 0 var(--color-light-hue));
    --color-light-3: oklch(90% 0 var(--color-light-hue));
    --color-light-4: oklch(69% 0 var(--color-light-hue));
    --color-light-5: oklch(59% 0 var(--color-light-hue));
    --color-light-6: oklch(49% 0 var(--color-light-hue));

    --color-background-main: oklch(99% 0 0);

    --shadow-dark: 4px 4px 8px 0 var(--color-grey-1);
    --shadow-standard: 4px 4px 5px 0 var(--color-grey-6);

    --gradient-sunburst-center: radial-gradient(circle at 30% 60%,
            var(--color-background-2) 10%,
            hsla(0, 0%, 100%, 0) 30%);

    --gradient-sunburst-1: repeating-conic-gradient(from 0deg at 30% 50%,
            var(--color-background-2) 0 5deg,
            var(--color-background-1) 4deg 10deg);

    --gradient-sunburst-left: radial-gradient(circle at 30% 50%, var(--color-background-2) 5%, hsla(0, 0%, 100%, 0) 30%),
        radial-gradient(circle at 30% 50%, hsla(0, 0%, 100%, 0) 30%, var(--color-background-2) 60%),
        repeating-conic-gradient(from 0deg at 30% 50%,
            var(--color-background-2) 0 5deg,
            var(--color-background-1) 4deg 10deg);

    --gradient-sunburst-fixed: radial-gradient(circle at 800px 50%,
            var(--color-background-2) 10%,
            hsla(0, 0%, 100%, 0) 45%), radial-gradient(circle at 800px 50%, hsla(0, 0%, 100%, 0) 30%, var(--color-background-2) 90%),
        repeating-conic-gradient(from 0deg at 800px 50%,
            var(--color-background-2) 0 5deg,
            var(--color-background-1) 4deg 10deg);

    --gradient-sunburst: radial-gradient(circle at 50% 100%, var(--color-background-2) 10%, hsla(0, 0%, 100%, 0) 50%),
        radial-gradient(circle at 50% 100%, hsla(0, 0%, 100%, 0) 30%, var(--color-background-2) 90%),
        repeating-conic-gradient(from 0deg at 50% 100%,
            var(--color-background-2) 0 5deg,
            var(--color-background-1) 4deg 10deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
}

html {
    font-size: 16px;
}

body {
    font-family: "Roboto", "Noto Sans", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    background-color: var(--color-background-main);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

svg.icon {
    width: 48px;
    height: 48px;
}

.noto-serif {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

body>header {
    display: grid;
    justify-items: center;
    padding-block-start: 2rem;
    background: var(--gradient-sunburst);
}

body>main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    background-color: var(--color-background-main);
    padding-inline: 20px;
}

div.banner {
    max-width: 1200px;
    margin-inline: auto;
}

div.banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 2rem 3rem;
    align-items: center;

    .banner-cta {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        font-size: 1.5rem;
        max-width: 800px;
        color: var(--color-grey-1);

        a {
            padding: .5rem 1rem;
            font-size: 1.25rem;
            text-decoration: none;
            border-radius: .5rem;
            text-align: center;
            border: 1px solid var(--color-grey-2);
            box-shadow: 4px 4px 12px 0 rgba(0, 0, 0, 0.35);
        }

        a.primary {
            font-weight: normal;
            background-color: inherit;
        }
    }

    .banner-cta-description {
        line-height: 1.25;
    }

    .banner-cta-actions {
        display: flex;
        gap: 2rem;
    }

    .banner-picture {
        width: 100%;
        display: flex;
    }
}

svg.tbr-phrase {
    width: 90%;

    text {
        font-weight: 900;
        font-size: 72px;
        fill: var(--color-secondary);
        paint-order: stroke;
        stroke: var(--color-grey-1);
        stroke-width: 3px;
        stroke-linejoin: round;
        filter: url(#drop-shadow);
    }

    text.highlighted {
        fill: var(--color-primary);
    }
}

.brain-fill {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

.brain-outline {
    fill: black;
}

a.primary,
a.secondary,
a.muted {
    border: 1px solid var(--color-grey-1);
    box-shadow: 4px 4px 10px 0 var(--color-grey-1);
}

a.primary {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;

    &:hover {
        background-color: color-mix(in hsl, var(--color-primary) 85%, white);
        color: white;
    }
}

a.secondary {
    background-color: var(--color-secondary);
    color: var(--color-grey-1);
    font-weight: normal;

    &:hover {
        background-color: color-mix(in hsl, var(--color-secondary) 90%, black);
        color: var(--color-grey-1);
    }
}

a.muted {
    background-color: var(--color-background-2);
    color: var(--color-grey-2);

    &:hover {
        background-color: color-mix(in hsl, var(--color-background-2) 95%, black);
    }
}

@media screen and (max-width: 1024px) {
    .banner-cta-description {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 768px) {
    body>header>div.banner {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .banner-cta {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .banner-picture {
        justify-content: center;
    }
}

#main-menu-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    body>header {
        padding: 0;
    }

    #main-menu-mobile {
        display: block;
        padding: .5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        background-color: var(--color-background-main);
        width: 100%;
        padding-inline: 1rem;
        border-block-end: 1px solid var(--color-grey-1);
        box-shadow: 4px 4px 12px 0 rgba(0, 0, 0, 0.35);

        label {
            justify-self: start;
            align-self: center;
            display: block;
        }

        svg {
            justify-self: end;
            align-self: center;
        }

        nav {
            grid-column: 1 / span 2;
            display: none;
        }

        input:checked~nav {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            opacity: 1;
        }
    }
}

#main-menu {
    background-color: var(--color-background-main);
    padding: .75rem;
    border-radius: .5rem;
    border: 1px solid var(--color-grey-1);
    box-shadow: 4px 4px 12px 0 rgba(0, 0, 0, 0.35);
    max-width: 1200px;
    width: 90%;

    nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-items: center;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
    }

    div {
        display: flex;
        gap: 2.5rem;
    }

    div:nth-child(2) {
        justify-self: center;
    }

    div:first-child {
        justify-self: end;
    }

    div:last-child {
        justify-self: start;
    }
}

@media screen and (max-width: 768px) {
    #main-menu {
        display: none;
    }
}

#courses {
    --list-item-gap: 9rem;

    background-color: var(--color-background-main);
    max-width: 1200px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--list-item-gap);
    padding-inline: 1.5rem;

    header {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 1rem;

        h2 {
            color: var(--color-grey-1);
            font-size: 2.25rem;
            font-weight: bold;
            width: 100%;
            text-align: center;
        }

        p {
            color: var(--color-grey-1);
            font-size: 1rem;
            text-align: center;
            max-width: 80ch;
        }
    }

    section {
        display: grid;
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.5rem;
        gap: 1rem;
        border-radius: 6px;
        border: 1px solid var(--color-grey-6);
        box-shadow: 0 0 18px 0 var(--color-grey-6);
        text-align: center;

        img {
            margin-top: calc(var(--list-item-gap) * -0.75);
            max-width: 400px;
            justify-self: center;
        }

        h3 {
            margin-block-start: 10px;
            font-size: 1rem;
        }

        a {
            border: 1px solid var(--color-grey-1);
            border-radius: 6px;
            padding: 10px 10px;
            text-decoration: none;
            color: var(--color-grey-1);
            text-align: center;
        }

        a:hover {
            background-color: var(--color-grey-6);
        }
    }
}

@media screen and (min-width: 768px) {
    #courses {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        justify-items: center;
        gap: 9rem calc(2vw * 2);

        header {
            grid-column: 1 / span 2;

            >p {
                font-size: 1.25rem;
            }
        }
    }
}

#community {
    max-width: 1200px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 1.75rem;

    svg.icon {
        width: 65px;
        height: 65px;
    }

    >* {
        grid-column: 1 / span 2;
    }

    >h2 {
        color: var(--color-grey-1);
        font-size: 2.25rem;
        margin-block: 1rem;
        text-align: center;
    }

    >img {
        max-width: 450px;
        justify-self: center;
    }

    >ul,
    >p {
        font-size: 1rem;
    }

    >ul {
        list-style: none;
        display: grid;
        gap: 1rem;

        li {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1rem;
        }
    }

    >a {
        border: 1px solid var(--color-grey-1);
        border-radius: 6px;
        padding: 10px 10px;
        text-decoration: none;
        color: white;
        background-color: var(--color-primary);
        text-align: center;
        width: 100%;
        max-width: 220px;
        justify-self: center;
        box-shadow: 4px 4px 10px 0 var(--color-grey-4);
    }

    >a:hover {
        background-color: var(--color-primary-1);
        color: var(--color-grey-1);
    }
}

@media screen and (min-width: 758px) {
    #community {
        column-gap: 2rem;
        row-gap: 2rem;
        padding-inline: 1.5rem;
        grid-template-rows: 5fr;

        >img {
            grid-row: 2 / span 4;
            grid-column: 2;
        }

        >p,
        >ul {
            grid-column: 1;
        }

        >ul,
        >p {
            font-size: 1.25rem;
        }

        >a {
            grid-column: 1 / span 1;
            grid-row: 5;
            align-self: center;
            justify-self: center;
        }
    }
}

#overview {
    max-width: 1200px;
    margin-inline: auto;
    font-size: 1rem;
    width: 100%;

    color: var(--color-grey-1);

    >div {
        width: 100%;
        padding: 2rem;
        border-radius: 1rem;
        border: 1px solid oklch(83% 0.03 231);
        background-color: oklch(93.84% 0.0315 231.77);

        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    header {
        display: grid;
        gap: 1rem;
        justify-items: center;

        >h2 {
            color: var(--color-grey-1);
            font-size: 2rem;
            margin-block: 1rem;
            text-align: center;
        }

        >p {
            max-width: 700px;
            text-align: center;
            font-size: 1rem;
        }
    }

    ul {
        list-style: none;
    }

    section {
        display: grid;
        gap: 2rem;

        h3 {
            text-align: center;
            font-size: 1.25rem;
        }

        ul {
            display: grid;
            gap: 1rem;
        }

        li {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            gap: .5rem;
            justify-items: center;

            >svg {
                grid-row: 1;
            }

            >span {
                grid-row: 2;
            }
        }

        a {
            border: 1px solid var(--color-grey-1);
            border-radius: 6px;
            padding: 10px 10px;
            text-decoration: none;
            color: white;
            background-color: var(--color-primary);
            text-align: center;
            width: 100%;
            max-width: 220px;
            justify-self: center;
            box-shadow: 4px 4px 10px 0 var(--color-grey-4);
        }

        a:hover {
            background-color: var(--color-primary-1);
            color: var(--color-grey-1);
        }
    }

    section.principles ul {
        grid-template-columns: repeat(3, 1fr);
    }

    section.the-4cs ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    #overview {
        >div {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        header {
            grid-column: 1 / span 2;

            >p {
                font-size: 1.25rem;
            }
        }

        section {
            >h3 {
                font-size: 1.5rem;
            }
        }

        section.the-4cs ul {
            width: 70%;
            justify-self: center;
        }
    }
}

@media screen and (min-width: 768px) {
    svg.icon {
        width: 72px;
        height: 72px;
    }
}

body>footer {
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-2);
    padding-block: 2rem 1rem;

    gap: 2rem;

    div {
        width: 100%;
    }

    >div {
        max-width: 1200px;
        margin-inline: auto;

        display: flex;
        flex-direction: column;
        align-items: center;

        padding-inline: 20px;
    }

    >div:nth-child(1) {
        gap: 1rem;
    }

    .logo {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;

        font-size: 1.5rem;
        font-weight: 600;
    }

    .links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .links nav {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }
}

@media screen and (min-width: 768px) {
    body>footer>div {
        display: grid;
        grid-template-columns: 1fr 1fr;

        width: 100%;
    }

    body>footer>div:nth-child(1) {
        .logo {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1rem;

            align-self: flex-start;
            font-size: 2rem;
            font-weight: 600;
        }

        .links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .links nav {
            display: flex;
            flex-direction: column;
            gap: .5rem;
        }
    }
}
