@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

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

h1 {
    font-family: "Climate Crisis";
    color: #aa5353;
    font-weight: 100;
    font-style: normal;
    font-size: 4vw;
    letter-spacing: 0.05em;
}

p {
    font-family: "Host Grotesk", serif;
    color: #737373;
    font-weight: 425;
    font-style: normal;
    font-size: 1.5vw;
}

::selection {
    background-color: #d1fae5;
    color: inherit;
}

.link-a {
    color: #303030;
    border-bottom: 1px solid #969696;
    text-decoration: none;
    transition: color 0.3s;
}

.link-a:hover {
    color: #b5a6a6;
    border-bottom: 1px solid #b5a6a6;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline; 
    color: #303030;
    border-bottom: 1px solid #969696;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
}

.link-button:hover {
    color: #b5a6a6;
    border-bottom: 1px solid #b5a6a6;
}

.highlighted {
    background-color: #d1fae5;
}

.hero-container {
    position: absolute;
    top: 30%;
    right: 20%;
    text-align: right;
}

/* MOBILE FIX */
@media (max-width: 767px) {
    .hero-container {
        position: relative;
        right: auto;
        top: auto;
        margin: 20vh auto 0 auto;
        width: 90%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    h1 {
        font-size: 10vw;
        margin-bottom: 1rem;
    }

    p {
        font-size: 4.0vw; 
    }
}

/* fix landscape phone and tablet */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-container {
        position: relative;
        width: 100%;
        height: 100svh;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-container > * {
        display: block;
        margin: 0.5em auto;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 0.7; 
    }

    p {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        line-height: 0.9;
    }
}

.icons {
    display: inline-flex;
    gap: 0.8rem;
    margin-top: 0.4rem;

    opacity: 1;                 
    pointer-events: none;      
}


.icons.show {
    pointer-events: auto;
}

.icons .icon {
    width: 1.15em;
    height: 1.15em;

    opacity: 0;
    transform: translateY(6px);   /* subtle slide */
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;
}

.icons.show .icon {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.icons.show .icon:nth-child(1) { transition-delay: 0.05s; }
.icons.show .icon:nth-child(2) { transition-delay: 0.12s; }
.icons.show .icon:nth-child(3) { transition-delay: 0.19s; }
.icons.show .icon:nth-child(4) { transition-delay: 0.26s; }

.icons .icon {
    transition-delay: 0s;
}

