/* home.css */

:root {

    --grid-cols: 10;
    --grid-rows: 7;
    --grid-gap: 3px;
}

.home {

    position: relative;

    height: 100vh;

    width: 100vw;

    overflow: hidden;

    background: #ffffff;

}


/* ------------------
   TILE GRID
------------------- */


.tile-grid {

    position: absolute;

    inset: 0;

    display: grid;

    grid-template-columns: repeat(var(--grid-cols), 1fr);

    grid-template-rows: repeat(var(--grid-rows), 1fr);

    gap: var(--grid-gap);

    padding: 0;

    z-index: 1;

}

.tile.light {
    background: #f2f2f2;
}

.tile.dark {
    background: #111;
}

.tile.accent {
    background: #ff6a00;
}


/* future image tiles */

.tile img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

/* ------------------
   HOMEPAGE
------------------- */

.home-container {
    height: 100vh;
}

/* ------------------
   HERO
------------------- */
.hero-container {

    position: absolute;

    z-index: 10;

    left: calc(5 * (100% / 10) + var(--grid-gap) * 5);

    top: calc(1 * (100% / 7));

    width: calc(5 * (100% / 10) - 6px);

    height: calc(4 * (100% / 7) - 9px);

}

.hero {
    /* grid scaling */
    
    width: 100%;
    height: 100%;

    position: relative;

    background: rgba(255,255,255,0.92);

    padding: 
        clamp(1.5rem, 3vw, 3rem)
        clamp(1rem, 3vw, 3rem);

    font-family:"Roboto Condensed", sans-serif;

    text-align: left;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.hero h1 {
    transform: translateX(-0.04em);
    margin: 0;


    font-size: clamp(4rem, 9vw, 8rem);


    font-weight: 700;


    line-height: .85;


    letter-spacing: .08em;


    text-transform: uppercase;


    color: black;

}



.hero p {


    margin-top: 0px;


    font-size: clamp(.8rem, 1.2vw, 1.2rem);


    letter-spacing: .15em;


    text-transform: uppercase;

    color: black;
}


/* ------------------
   SOCIAL LINKS
------------------- */
.social-links {

    margin-top: auto;

    width:90%;

    display: flex;

    padding-top: 0.75rem;

    border-top: 2px solid #ff6a00;

    flex-direction: row;

    gap: clamp(.75rem, 1.5vw, 1.5rem);

}

.social-links a {

    color: #111;

    opacity: 0.7;

    filter: grayscale(100%);

    font-size: clamp(1.25rem, 2vw, 2rem);

    transition:
        opacity .2s ease,
        transform .2s ease;

}


.social-links a:hover {

    opacity: 1;

    transform: translateY(-3px);

}

.social-links img {

    color: #111;

    width: clamp(1.25rem, 2vw, 2rem);

    height: clamp(1.25rem, 2vw, 2rem);

    filter: grayscale(100%);

    opacity: 0.7;

}

/* special treatment for substack since diff CDN */
.social-links a .substack-icon {
    width: clamp(1.25rem, 2vw, 2rem);
    height: clamp(1.25rem, 2vw, 2rem);

    display: block;

    opacity: 0.9;
    filter: grayscale(100%) brightness(1);
}



/* ------------------
   HOME LINKS
------------------- */

.homelinks {

    margin-top: 0.15rem;

    display: flex;

    flex-direction: row;

    gap: 2rem;

}


.homelinks a {

    transform: translateY(-6px);

    color: #111;

    font-family: "Roboto Condensed", sans-serif;

    /* default 1.3 btw */
    font-size: clamp(1rem, 2vw, 2rem);

    font-weight: 500;

    letter-spacing: 0.01em;

    text-decoration: none;


    transition: opacity 0.2s ease;

}


.homelinks a:hover {
    color: #ff6a00;
    opacity: 0.6;

}

.homelinks a::before {
    content: "[";
    color: #ff6a00;
}

.homelinks a::after {
    content: "]";
    color: #ff6a00;
}


/* ------------------
   RESIZE HANDLING
------------------- */

@media (max-width: 1200px) {

    .hero h1 {
        font-size: clamp(3rem, 7vw, 6rem);
    }


    .hero {
        padding: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

}

@media (max-width: 900px) {

    .hero-container {

        left: 10%;

        top: 15%;

        width: 80%;

        height: 70%;

    }

    .homelinks {

        flex-direction: column;
        gap: .75rem;

    }

    .homelinks a {
        font-size: clamp(2.5rem, 7vw, 6rem);
    }

    .hero h1 {

        font-size: clamp(3rem, 12vw, 6rem);

    }

    .social-links {

        margin-top:auto;

        width:100%;

    }



}
