:root {
    --tswiRed: rgb(230, 53, 95);
    --tswiWhite: rgb(255, 255, 255);
    --tswiYellow: rgb(255, 210, 62);
    --tswiDarkPurple: rgb(57, 36, 52);
    --tswiOffWhite: rgb(255, 248, 239);
    --tswiPink: rgb(254, 201, 217);
    --tswiDarkBlue: rgb(58, 167, 224);
    --tswiOrange: rgb(255, 159, 70);
    --tswiLightPurple: rgb(200, 135, 232);
    --tswiLightBlue: rgb(191, 228, 245);
    --pillBorderRadius: 999rem;
    --contentWidth: 72rem;
    --radius: 0.85rem;
    --shadow: 0 0.55rem 1.5rem rgb(57 36 52 / 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tswiDarkPurple);
    background: var(--tswiOffWhite);
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 0.2rem solid currentColor;
    outline-offset: 0.2rem;
}

header {
    position: sticky;
    z-index: 10;
    top: 0;
    color: var(--tswiWhite);
    box-shadow: 0 0.2rem 1rem rgb(57 36 52 / 0.12);
}

header section:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding: 0.7rem max(1rem, calc((100vw - var(--contentWidth)) / 2));
    background: var(--tswiRed);
}

header section:first-child h1 {
    flex: 1 1 15rem;
    margin: 0;
    font-family: "Titan One", sans-serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    line-height: 1.1;
    text-wrap: balance;
}

header nav {
    flex: 1 1 auto;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    color: var(--tswiWhite);
    text-decoration: none;
    font-weight: 800;
}

header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

header nav li:last-child {
    padding-inline: 0.75rem;
    border-radius: var(--pillBorderRadius);
    background: var(--tswiYellow);
}

header nav li:last-child a {
    color: var(--tswiDarkPurple);
}

header section:last-child {
    padding: 0.45rem 1rem;
    background: var(--tswiYellow);
    color: var(--tswiDarkPurple);
    text-align: center;
}

header section:last-child span {
    font-weight: 800;
}

main>section,
footer {
    padding-inline: max(1rem, calc((100vw - var(--contentWidth)) / 2));
}

main>section {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

main>section section {
    margin: 0;
}

main>section p {
    margin: 0.6rem 0;
}

main>section>section:first-child {
    max-width: 48rem;
    margin-bottom: 2rem;
}

main>section>section:first-child h2 {
    margin: 0 0 0.5rem;
    color: var(--tswiRed);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

main>section>section:first-child p:first-of-type {
    margin: 0;
    font-family: "Titan One", sans-serif;
    font-size: clamp(1.7rem, 4.5vw, 2.65rem);
    line-height: 1.12;
    text-wrap: balance;
}

main>section>section:first-child p:last-of-type {
    font-size: 0.82rem;
}

.hero {
    display: grid;
    align-content: center;
    min-height: clamp(28rem, 68vh, 42rem);
    background-image: linear-gradient(135deg, rgb(230 53 95 / 0.68), rgb(15 49 67 / 0.55)), url("../images/lemonade.jpg");
    background-position: center 52%;
    background-size: cover;
    color: var(--tswiWhite);
}

.hero>section:first-child {
    max-width: 42rem;
}

.hero section:first-child h2 {
    color: var(--tswiYellow);
}

.hero section:first-child p:first-of-type {
    font-size: clamp(2.2rem, 7vw, 4rem);
}

.hero p {
    text-wrap: balance;
}

.hero a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    margin: 0.75rem 0.5rem 0 0;
    padding: 0.65rem 1.15rem;
    border-radius: var(--pillBorderRadius);
    color: var(--tswiWhite);
    text-decoration: none;
    font-weight: 900;
}

.hero a:first-of-type {
    background: var(--tswiYellow);
    color: var(--tswiDarkPurple);
}

.hero a:last-of-type {
    border: 2px solid var(--tswiWhite);
}

.hero p:last-of-type {
    font-size: 0.78rem;
    font-weight: 800;
}

.flavors,
.findTheStand {
    background: var(--tswiOffWhite);
}

.flavors section:last-of-type,
.sizes section:last-of-type,
.findTheStand section:last-of-type {
    display: grid;
    gap: 1rem;
}

.flavors>p,
.sizes>p {
    text-align: center;
}

.flavors>p span {
    padding: 0.15rem 0.45rem;
    border-radius: 0.3rem;
    background: var(--tswiYellow);
    font-family: "Titan One", sans-serif;
}

.flavor {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tswiWhite);
    box-shadow: var(--shadow);
}

.flavor>div {
    min-height: 8rem;
    padding: 1.5rem;
    text-align: center;
}

.flavor>div div {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: black;
}

.flavor>div h3 {
    display: inline-block;
    margin: 0 0 0.4rem;
}

.cherry {
    border-top: 0.25rem solid var(--tswiRed);
}

.cherry div div {
    background: var(--tswiRed);
}

.lemon {
    border-top: 0.25rem solid var(--tswiYellow);
}

.lemon div div {
    background: var(--tswiYellow);
}

.blueRaspberry {
    border-top: 0.25rem solid var(--tswiDarkBlue);
}

.blueRaspberry div div {
    background: var(--tswiDarkBlue);
}

.mango {
    border-top: 0.25rem solid var(--tswiOrange);
}

.mango div div {
    background: var(--tswiOrange);
}

.cottonCandy {
    border-top: 0.25rem solid var(--tswiLightPurple);
}

.cottonCandy div div {
    background: var(--tswiLightPurple);
}

.noFlavor,
.noSize {
    display: none;
}

.sizes {
    background: var(--tswiLightBlue);
}

.sizes section:first-child p:last-child,
.findTheStand section:first-child p:last-child {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.size {
    min-height: 8rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--tswiOffWhite);
    text-align: center;
    box-shadow: var(--shadow);
}

.size h3,
.size span {
    font-family: "Titan One", sans-serif;
}

.size h3 {
    margin: 0;
}

.size span {
    display: inline-block;
    margin: 0.5rem 0;
    color: var(--tswiRed);
}

.infoCard {
    min-height: 10rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--tswiWhite);
    box-shadow: var(--shadow);
}

.infoCard h3 {
    margin: 0 0 0.65rem;
    color: var(--tswiRed);
    font-family: "Titan One", sans-serif;
}

.infoCard span {
    font-weight: 800;
}

.infoCard a {
    display: block;
    margin: 0.6rem 0;
    color: var(--tswiRed);
    font-family: "Titan One", sans-serif;
}

.infoCard span:nth-child(2) {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 0.3rem;
    background: var(--tswiYellow);
}

footer {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    background: var(--tswiDarkPurple);
    color: var(--tswiOffWhite);
}

footer section:first-child {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.35);
}

footer section:first-child div span {
    display: block;
    margin: 0.25rem 0;
    font-size: 0.78rem;
}

footer section:first-child div span:first-child {
    font-family: "Titan One", sans-serif;
    font-weight: 700;
}

footer section:first-child div p,
footer section:first-child div a,
footer section:last-child small,
footer section:last-child a {
    font-size: 0.78rem;
}

footer section:first-child div p {
    margin: 0.25rem 0;
}

footer a {
    color: var(--tswiWhite);
}

footer section:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    header section:first-child h1 {
        white-space: nowrap;
    }

    .flavors section:last-of-type,
    .sizes section:last-of-type,
    .findTheStand section:last-of-type {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    footer section:first-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {

    .flavors section:last-of-type,
    .sizes section:last-of-type,
    .findTheStand section:last-of-type {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .flavors section:last-of-type {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sizes section:last-of-type {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

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