* {
    box-sizing: border-box;
    outline: none;
}

/* custom properties */
:root {

    /* colors & typography */

    --clr-accent: #FF0000;
    --clr-accent2: #FF6A00;
    --clr-darkgray: #211D1D;
    --clr-black: #000000;
    --clr-white: #FFFFFF;
    --ff-primary: "Source Serif 4", serif;
    --ff-secondary: "Montserrat", sans-serif;
    --fw-bold: 700;
    --fw-semibold: 600;
    --fw-regular: 400;

    /* font size cambiar a tamaño xxl xl l m s xs*/
    --fs-xxl: clamp(2.625rem, 3.148vw + 1rem, 4.8125rem);
    --fs-xl: clamp(1.625rem, 1.024vw + 1rem, 2.125rem);
    --fs-l: clamp(1.125rem, 0.41vw + 1rem, 1.625rem);
    --fs-m: 1rem;
    --fs-s: clamp(1rem, 0.4vw + 1rem, 1.5rem);
    --fs-xs: clamp(.88rem, 1vw + 0.68rem, 1rem);

    /* margins */

    --margin-xxl: 2.618em;
    --margin-xl: 1.618em;
    --margin-l: 1em;
    --margin-m: 0.618em;
    --margin-s: 0.272em;
    --margin-xs: 0.128em;

    /* layers */

    /* --bg-layer-1: linear-gradient(to top right, rgba(36, 36, 36, 0.82), rgba(36, 36, 36, 0.82)); */
    --bg-layer-1: linear-gradient(to top right, rgba(58, 58, 58, 0.45), rgba(25, 13, 13, 0.72));
    --bg-layer-2: rgb(255, 181, 128);
    --bg-layer-3: rgb(240, 240, 240);
    /* trasition */

    --hover-transition: all ease-in-out 200ms;
}

html {
    font-size: 100%;
    scroll-padding-top: 90px;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    text-rendering: optimizeSpeed;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-family: var(--ff-secondary);
}

h1 {
    margin-bottom: var(--margin-xl);
    font-size: var(--fs-xxl);
}

h2 {
    margin-bottom: var(--margin-s);
    font-size: var(--fs-xl);
}

h3 {
    margin-bottom: var(--margin-s);
    font-size: var(--fs-l);
}

h4 {
    margin-top: 0;
    margin-bottom: var(--margin-xl);
    font-size: var(--fs-m);
}

p {
    margin-bottom: var(--margin-m);
    line-height: 1.6;
    font-size: var(--fs-s);
}

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

h2,
h3 {
    font-weight: var(--fw-semibold);
}

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

ul {
    width: fit-content;
}

li {
    list-style: none;
    font-size: var(--fs-xs);
}

a {
    color: var(--clr-white);
    text-decoration: none;
}

a:visited {
    color: var(--clr-white);
}

.cp {
    border-bottom: 2px solid var(--clr-accent);
}

.center {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 1rem;
}

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

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

/* 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;
    }
}