:root {
    --clr-primary-300: #D9E3EA;
    --clr-primary-500: #566ba8;
    --clr-primary-600: #383F6A;

    --clr-neutral-100: #FFFFFF;
    --clr-neutral-200: #F0F4F7;
    --clr-neutral-500: #767474;
    --clr-neutral-900: #000000;

    --clr-box-shadow: rgba(0, 0, 0, 0.25);

    --ff-primary: "Be Vietnam Pro", sans-serif;
    --ff-body: var(--ff-primary);
    --ff-heading: var(--ff-primary);

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    --fs-900: 3.5rem; /* 56 px */
    --fs-800: 2.625rem; /* 42 px */
    --fs-700: 2.25rem; /* 36 px */
    --fs-600: 1.75rem; /* 28 px */
    --fs-500: 1.5rem; /* 24 px */
    --fs-400: 1.125rem; /* 18 px */
    --fs-300: 0.75rem; /* 12 px */

    --fs-primary-heading: var(--fs-700);
    --fs-secondary-heading: var(--fs-500);
    --fs-display: var(--fs-600);
    --fs-title: var(--fs-500);
    --fs-button: var(--fs-400);
    --fs-body: var(--fs-400);
    --fs-footer: var(--fs-300);

    --size-100: 0.25rem; /* 4 px */
    --size-200: 0.5rem; /* 8 px */
    --size-300: 1rem; /* 16 px */
    --size-500: 2rem; /* 32 px */
    --size-700: 4rem; /* 64 px */
    --size-900: 8rem; /* 128 px */

    --spacing-regular: var(--size-300);
    --spacing-medium: var(--size-500);
    --spacing-large: var(--size-700);
}

@media (min-width: 65em) {
    :root {
        /* Font sizes */
        --fs-primary-heading: var(--fs-900);
        --fs-secondary-heading: var(--fs-600);
        --fs-display: var(--fs-800);
        --fs-title: var(--fs-600);
        /* Spacing sizes */
        --spacing-regular: var(--size-500);
        --spacing-medium: var(--size-700);
        --spacing-large: var(--size-900);
    }
}

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

/* Remove default margin */
* {
    margin: 0;
    padding: 0;
    font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

/* Set core body defaults */
body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility classes */

/* Text Colors */

.text-primary-600 {
    color: var(--clr-primary-600);
}

.text-primary-300 {
    color: var(--clr-primary-300);
}

.text-neutral-100 {
    color: var(--clr-neutral-100);
}

.text-neutral-500 {
    color: var(--clr-neutral-500);
}

.text-neutral-900 {
    color: var(--clr-neutral-900);
}

/* Background Colors */

.bg-primary-600 {
    background-color: var(--clr-primary-600);
}

.bg-primary-300 {
    background-color: var(--clr-primary-300);
}

.bg-neutral-100 {
    background-color: var(--clr-neutral-100);
}

.bg-neutral-200 {
    background-color: var(--clr-neutral-200);
}

.bg-neutral-900 {
    background-color: var(--clr-neutral-900);
}

/* Font Weight */

.fw-bold {
    font-weight: var(--fw-bold);
}

.fw-medium {
    font-weight: var(--fw-medium);
}

.fw-regular {
    font-weight: var(--fw-regular);
}

/* Font Size */

.fs-primary-heading {
    font-size: var(--fs-primary-heading);
}

.fs-secondary-heading {
    font-size: var(--fs-secondary-heading);
}

.fs-display {
    font-size: var(--fs-display);
}

.fs-title {
    font-size: var(--fs-title);
}

.fs-button {
    font-size: var(--fs-button);
}

.fs-body {
    font-size: var(--fs-body);
}

.fs-footer {
    font-size: var(--fs-footer);
}

/* General styling */

.padding-block-medium {
    padding-block: var(--spacing-medium);
}

.padding-block-large {
    padding-block: var(--spacing-large);
}

.container {
    --max-width: 1110px;
    --padding: 1rem;

    width: min(var(--max-width), 100% - (2 * var(--padding)));
    margin-inline: auto;
}

.even-columns {
    display: grid;
    gap: 0;
}

:where(.flow :not(:first-child)) {
    margin-top: var(--flow-spacer, var(--spacing-medium));
}

body {
    font-size: var(--ff-body);
    font-family: var(--ff-body), sans-serif;
    color: var(--clr-neutral-900);
}

h2 {
    text-align: center;
}

h3 {
    padding-top: var(--spacing-regular);
}

@media (min-width: 65em) {
    .even-columns {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: var(--spacing-medium);
        align-items: center;
        justify-items: center;
    }
}

/* header */

header {
    background-color: var(--clr-primary-300);

    .header-logo {
        padding-top: var(--spacing-medium);

        img {
            height: var(--size-500);
            margin: auto;
        }
    }
}

/* hero */

.hero-text {
    line-height: normal;
    text-align: center;
}

@media (min-width: 65em) {
    .hero-text {
        text-align: left;
    }
}

/* button */

.button {
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 100vmax;
    padding: 1em 2.5em;
    font-weight: var(--fw-regular);
    color: var(--clr-neutral-100);
    background-color: var(--clr-primary-600);
}

.button:hover,
.button:focus-visible {
    background-color: var(--clr-primary-500);
}

/* cta */

.cta {
    text-align: center;

    a {
        text-decoration: none;
    }

    .highlight-txt {
        text-decoration: underline;
    }

    a .highlight-txt:hover {
        color: var(--clr-primary-300);
    }
}

/* footer */

.footer-infos {
    text-align: center;
    --flow-spacer: var(--size-200);
    a {
        text-decoration: none;
    }
    a span {
        color: var(--clr-neutral-500);
    }
    a :hover {
        text-decoration: underline;
    }
}

@media (min-width: 65em) {
    .footer-infos {
        --flow-spacer: 0;
        padding-left: var(--size-700);
        padding-right: var(--size-700);
        text-align: left;
        display: flex;
        justify-content: space-between;


        .left, .right {
            display: flex;

            div + div {
                margin-left: var(--size-700);
            }
        }
    }
}

/* offers */

.offers-image {
    img {
        height: 235px;
        width: 100vh;
        border-radius: var(--size-500);
        object-fit: cover;
        box-shadow: 2px 2px 4px var(--clr-box-shadow);
        object-position: var(--image-positioning, center);
    }
}

.offers-list {

    li {
        display: flex;

        img {
            margin-right: var(--size-200);
        }

        p {
            margin-top: 0;
        }
    }
}

@media (min-width: 65em) {
    .offers-list {
        margin-top: var(--size-500);

        ul {
            columns: 2;
            -webkit-columns: 2;
            -moz-columns: 2;
        }
    }

    .offers-image {
        img {
            height: 352px;
        }
    }

    .reverse {
        display: flex;
        flex-direction: row-reverse;
    }
}

/* hero */

.hero-columns {
    display: block;
    text-align: center; /* Center inline elements like images within this block */
}

.hero-slogan {

}

.hero-character {
    img {
        height: 339px;
        display: inline-block;
        margin-left: -89px;
    }
}

@media (min-width: 100em) {
    .hero-character {
        img {
            height: 678px!important;
        }
    }
}

@media (min-width: 65em) {
    .hero-columns {
        display: flex;
        justify-content: center;
        align-items: center;

        .hero-text {
            max-width: 50%;
        }

        .hero-character {
            margin-left: -177px;

            img {
                height: 600px;
                display: block;
                margin: 0;
            }
        }
    }
}
