/* GLOBAL STYLES - TOP LEVEL */

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

html {
    scroll-behavior: smooth;
}

:root {
    font-size: 16px;
    --primary: #577399;
    --accent: #fe5f55;
    --black: #25252c;
    --white: #f7f7ff;
}

.wrapper {
    margin-inline: auto;
    padding-inline: 1rem;
    max-width: 70rem;
    background-color: var(--white);
}

.flow > * + * {
    margin-top: var(--flow-space, 1em);
}

/* BLOCKS */

header {
    min-height: 5vh;
    display: flex;
    padding-block: 1rem;
}

header > i {
    font-size: 1.2rem;
    align-self: center;
}

nav {
    margin-inline-start: auto;
}

nav > a {
    margin-top: 2%;
}

footer {
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 10vh;
    font-size: 1.4rem;
    gap: 0.4rem;
}

/* ELEMENTS & TAGS */

h1, h2, h3, h4, h5 {
    font-family: 'Overpass', sans-serif;
    line-height: 1.1em;
    color: var(--black);
    --flow-space: 1.5rem;
    max-width: 21ch;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3rem);
    font-weight: 900 ;
}

h2 {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 600;
}
h5 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 500;
}

p {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    font-family: Roboto, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--black);
    max-width: 80ch;
}

nav > a {
    padding: 1rem;
}

a {
    display: inline-block;
    text-decoration: none;
    color: var(--black);
    font-size: 1.2rem;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
}

a::after {
    content: '';
    width: 0px;
    height: 0.2rem;
    display: block;
    background: var(--accent);
    transition: ease-in-out 300ms;
    border-radius: 10% 24% 18% 38%;
}


a:hover::after {
    width: 100%;
}

strong {
    position: relative;
    font-weight: inherit;
    font-size: inherit;
    font-family: inherit;
}

strong::before {
    background-color: var(--accent);
    position: absolute;
    width: calc(100% + 0.8rem);
    height: 55%;
    bottom: 5%;
    border-radius: 10% 24% 18% 38%;
    content: '';
    z-index: -1;
    left: -0.3rem;
    transform: rotate(-6deg);
}