@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@200..700&display=swap');

:root {
    --bgcolor: #1C1C1C;
    --pcolor: #FAFAFF;
    --scolor: #EEF0F2;
    --tcolor: #ECEBE4;
    --acolor: #DADDD8;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bgcolor);
}

header {
    align-content: center;
    justify-content: center;
    padding-top: 25px;

    height: clamp(200px, 35vw, 500px);
    background-color: #0b0b0b;
}

main {
    flex: 1;
}

p, h1, h2, h3, h4, h5 {
    text-align: center;
}

p {
    font-family: "Oswald", sans-serif;
    font-weight: 100;
    font-size: 12px;
}

h1 {
    font-family: "Anton", sans-serif;
    font-weight: 500;
    font-size: clamp(30px, 7vw, 8vw);
    letter-spacing: 3px;
    text-wrap: nowrap;
    text-transform: uppercase;
    
    color: var(--pcolor);

    line-height: 0;
}

h2 {
    font-family: "Oswald", sans-serif;
    font-weight: normal;
    font-size: clamp(18px, 4vw, 5vw);
    font-style: italic;
    text-transform: uppercase;

    color: var(--scolor);
}

h3 {
    font-family: "Oswald";
    font-weight: 300;

    color: var(--tcolor)
}

h4 {
    font-family: "Oswald";
    color: var(--tcolor);
    
    word-spacing: 1px;
    line-height: 1.5em;
}

h5 {
    font-family: "Anton";
    font-weight: 100;
    color: var(--acolor)
}

.contacts-container {
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(3, 3fr);
    gap: 5%;
    width: min(90vw, 540px);
    margin: auto;
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform .5s ease-out;
    
    aspect-ratio: 1 / 1;
    width: 100%;
}

.contact-box:hover {
    transform: scale(1.1);
}

.contact-text {
    z-index: 1;
    font-size: clamp(0px, 5vw, 30px);
    padding-bottom: 55%;
}

.contact-icon {
    position: absolute;
    width: 80%;
    height: auto;
    bottom: 0%;
}