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

a {
    text-decoration: none;
}

:root {
    --black: #010D14;
    --white: #F1FAFF;
    --blue: #4D6270;
    --dark-blue: #28373F;
    --light-blue: #00FBFF;
    --green: #00FFAA;
    --font-size: 1.3rem;
    --mono: "Roboto Mono", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gradient: linear-gradient(121deg, #010C11 41.54%, #02131D 90.56%);
}

html {
    box-sizing: border-box;
}

/* Generic styles for the page */

body {
    padding: 0;
    margin: 0;
    font-family: var(--sans);
    background-color: var(--black);
    background-image: var(--gradient);
    color: var(--black);
    font-size: var(--font-size);
    min-height: 100dvh;
}

h1, h2, h2 {
    font-family: var(--mono);
    color: var(--white);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.32px;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(93deg, #F1FAFF 5.33%, #C5D5DE 81.84%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2, h2 {
    font-size: var(--font-size);
    font-weight: 300;
    color: #C5D5DE;
}

h3 {
    font-size: 0.6875rem;
    font-weight: 300;
}

nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-direction: row;
    align-items: center;
    height: 32px;
    color: var(--dark-blue);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0 0.75rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 16px;
}

nav a {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 500;
    
}

nav h3 {
    min-width: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    height: 32px;
    padding: 0 0.75rem;
    color: var(--dark-blue);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100vw;
    min-height: 100dvh;
    background-color: none;
    text-transform: uppercase;
    text-decoration: none;
}

main {
    display: flex;
    flex: 1;
    min-height: 0;
    background-color: none;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.main-grid {
    position: relative;
    max-width: 720px;
    display: grid;
    row-gap: 3rem;
    column-gap: 16px;
    grid-template-columns: 112px 1fr;
    grid-template-rows: 112px 1fr;
    border: none;
}

.white {
    color: var(--white);
}

.light {
    font-weight: 300;
}

.contact {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;   /* lets Safari finish the tap faster */
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 12px;
    color: var(--green);
    font-size: 1.25rem;
    font-family: var(--mono);
    border-radius: 10px;
    background: #012624;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

a.contact-linkedin {
    flex: 0 0 56px;
    padding: 0;
    justify-content: center;
    transition: color 0.2s;
    color: var(--green);
    transition:
        background 0.2s,
        color 0.2s;
}

.contact a.contact-linkedin > div {
    display: none;
}

a.contact-email {
    transition: color 0.2s;
    color: var(--green);
    transition:
        background 0.2s,
        color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    
    .contact a:hover {
        background: #002838;
    }
    
    a.contact-linkedin:hover, a.contact-email:hover {
        color: #00FBFF;
    }

}

a.contact-email:active {
    color: #00FBFF;
    background: #002838;
}

a.contact-linkedin svg, a.contact-email svg {
    fill: currentColor;
}



.contact a > div {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.contact a > div > span {
    text-transform: none;
    letter-spacing: 0.44px;
    font-weight: 300;
    font-size: 0.6875rem;
}

.decal-stripes {
    height: 12px;
    width: 100%;
    margin-top: 1.75rem;
    background-image: url('../assets/decal-stripes.svg');
}

.about {
    max-width: 480px;
    grid-column: 2/3;
    grid-row: 2/3;
}

.logo {
    display: none;
}

.logo-decal {
    position: absolute;
    top: -110px;
    left: -110px;
    z-index: 1;
}

.logo-decal-mobile {
    position: absolute;
    top: -110px;
    left: 0px;
    z-index: 1;
    display: none;
}

.logo-sygnet {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 112px;
    height: auto;
}

.logo-label {
    width: 100%;
    max-width: 230px;
    height: auto;
}

.contact a > div.tooltip {
    position: absolute;
    flex-direction: row;
    align-items: center;
    width: max-content;
    gap: 8px;
    bottom: 101%;
    left: 58%;
    transform: translateX(-50%);
    background: rgba(50, 55, 1, 0.90);
    color: #EAFF00;
    font-size: 1.25rem;
    font-family: var(--mono);
    padding: 0.4rem 0.8rem 0.5rem 0.8rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity .3s,
        bottom .3s;
}

.contact a > div.tooltip.show {
    opacity: 1;
    bottom: 111%; 
}

.contact a > div.tooltip > span {
    font-size: 1.25rem;
}

@media only screen and (max-width: 880px) {

    .decal-desktop {
        display: none;
    }

    .logo-decal {
        display: none;
    }
    
    .logo-decal-mobile {
        display: block;
    }

}

@media only screen and (max-width: 680px) {

    .decal-tablet {
        display: none;
    }

    main {
        margin: 0;
    }

    .main-grid {
        max-width: 720px;
        row-gap: 2.5rem;
        column-gap: 16px;
        grid-template-columns: fit-content(112px) 1fr;
        grid-template-rows: fit-content(112px) 1fr;
        padding: 0 24px;
    }

    h1 {
        font-size: 1.625rem;
    }

    .about {
        grid-column: 1/3;
        grid-row: 2/3;
    }

    .logo-label {
        display: none;
    }

    .logo-sygnet {
        display: none;
    }

    .logo {
        display: block;
        grid-column: 1/3;
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .logo-decal-mobile {
        display: none;
    }

    .contact > h2 {
        width: 100%;
    }

    .contact a > div.tooltip {
        bottom: 101%;
        left: 0;
        transform: translateY(100%);
    }

    .contact a.contact-linkedin > div {
        display: inline-block;
    }

    a.contact-linkedin {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: left;
        gap: 12px;
        height: 56px;
        padding: 0 12px;
        color: var(--green);
        font-size: 1.25rem;
        font-family: var(--mono);
        border-radius: 10px;
    }

    .contact a > div.tooltip.show {
        bottom: 106%; 
    }

    nav, footer {
        padding: 0 1.5rem;
    }

}