/* 
*   hoyikto.com
*   page-index.css - Homepage specific styles
*/

html, body {
    width: 100vw;
    height: 100dvh;
}

body {
    /* Controls the massive homepage size */
    font-size: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    min-width: 0;
    max-width: 1100px; 
    text-align: left;
}

/* OVERRIDES: Reverts the global fixed vertical header back to horizontal */
header {
    position: static; 
    width: 100%;
    text-align: left;
    white-space: nowrap;
    
    /* FIX: Forces the header to use the 35px body size instead of the 14px global size */
    font-size: inherit; 
    line-height: 2em;
}

header h1 {
    margin-bottom: 0;
    font-size: inherit;
}

header h1, 
header nav {
    width: 100%;
    text-align: left;
}

header li {
    display: inline-block; /* Aligns links horizontally */
    margin-right: 1.5em; 
    margin-bottom: 0;
}

main {
    padding-left: 0;
    min-height: auto; 
}

/* --------------------------------- */
/* Responsive (Mobile View)          */
/* --------------------------------- */
@media screen and (max-width: 960px) {
    body { 
        font-size: 6vw; 
        padding: 2rem;
        box-sizing: border-box;
        align-items: center; 
        max-width: 100vw;
    }
    
    header {
        white-space: normal;
    }

    header, 
    header h1, 
    header nav {
        text-align: center;
    }
    
    header li {
        display: block; /* Stacks vertically on mobile screens */
        margin-right: 0;
        margin-bottom: 0.5em;
    }
}