:root{
    --font-xs: 0.833rem;
    --font-s: 1rem;
    --font-m: 1.2rem;
    --font-l: 1.44rem;
    --font-xl: 1.728rem;
    --font-2xl:  2.074rem;
    --font-3xl: 2.488rem;
    --font-4xl: 2.986rem;

    --space-0: 0px;
    --space-s: 0.25rem;
    --space-m: 0.5rem;
    --space-l: 1rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --primary-color: #FCFCFC;
    --secondary-color:#02111B;
    --tertiary-color: #50D8D7;
    --accent-dark: #DDBEA8;
    --accent-light: #F3DFC1;
    --accent-red: #A44A3F;

    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-secondary: "Lora", Georgia, serif;
}

[inert]
{display: none}

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

html{
    scroll-behavior: smooth;
}

body{
    line-height: 1.4;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

h1{
    font-size: clamp(var(--font-2xl), calc(var(--font-2xl) + 2vw), var(--font-4xl));
    font-weight: 600;
    font-family: var(--font-primary);
}

h2{
    font-size: var(--font-3xl);
    font-family: var(--font-secondary);
    font-weight: 500;
    margin-bottom: var(--space-s);
}

h3{
    font-size: var(--font-2xl);
    font-family: var(--font-primary);
    font-weight: 400;
}

h4{
    font-size: var(--font-xl);
    font-family: var(--font-primary);
    font-weight: 500;
}

h5{
    font-size: var(--font-l);
    font-family: var(--font-secondary);
    font-weight: 400;
}

h6{
    font-size: var(--font-m);
    font-family: var(--font-secondary);
    font-weight: 400;

}

p{
    font-size: var(--font-s);
    font-family: var(--font-primary);
    font-weight: 400;
}

a{
    font-size: var(--font-s);
    font-family: var(--font-primary);
    font-weight: 400;
    text-decoration: none;
    transition: 0.5s;
}


.main{
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.mini-hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main_title{
    opacity: 0;
    animation: fade-in 1.5s ease-in forwards;
}

.main_subtitle{
    opacity: 0;
    animation: fade-in 1s ease-in 1s forwards;
}

.main_subtext{
    opacity: 0;
    animation: fade-in 1.5s ease-in 1.5s forwards;
}

.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    opacity: 1;
    transition: 0.5s ease-in 2.5s;
    visibility: visible;
    width: 20rem;
    height: 15rem;
    border-radius: 1rem;
    background-color:antiquewhite;
    box-shadow: 0 0 0.5rem #A44A3F;
}

@starting-style{
    .contact{
        visibility: hidden;
        opacity: 0;
        transform: translateY(2rem);
    }
}

.link_card {
    width: 90%;
    margin: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.25rem;
}

.link_card:hover,
.link_card:focus-within {
    transform: scale(1.03);
    box-shadow: 0 0 0.7rem var(--accent-red);
    border-radius: 0.25rem;
    
}

.link_card a{
    display: flex;
    align-items: center;
}
.link_card img{
    width: 15%;
    margin-right: 0.5rem;
}

.link_card img.email_icon {
    width: 1.5rem;
}

@keyframes fade-in {
    0%{opacity: 0;}
    100%{opacity: 1;}

}
