@import url('https://fonts.googleapis.com/css2?family=Short+Stack&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: url('../assets/dgTip.png'), auto;
}

a, 
a:hover, 
button, 
.home-gif:hover, 
.blog-thumb:hover {
    cursor: url('../assets/dgTipHover.png'), auto;
}

body {
    background: #fff url('../assets/paperBg.gif') fixed center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Short Stack', cursive;
}

main {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 50px;
}

h1 { 
    font-size: 2.5rem; 
    margin: 0 0 10px 0; 
    letter-spacing: -1px; 
}

h2 { 
    font-size: 1.6rem; 
    padding: 0 0 30px 0;
    letter-spacing: -1px; 
}

p {
    font-family: 'Nunito';
}

nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

nav li { font-size: 2rem; 
    margin-bottom: 12px; 
}

.home-gif {
    width: 350px;
    filter: grayscale(100%);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

.blog-thumb { 
    width: 140px;
    height: 140px;
    object-fit: contain; 
    display: block; 
    margin: 0 auto;
    filter: grayscale(100%);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

.blog-thumb:hover, 
.home-gif:hover {
    filter: grayscale(0%);
    transform: rotate(2deg) scale(1.02);
}

a, a:visited { color: #242526; text-decoration: none; }
a:hover { text-decoration: underline; }

nav a, 
.back-link,
.hobby-label {
    position: relative;
    display: inline-block;
    color: #242526;
    text-decoration: none;
}

nav a::after, 
.back-link::after,
.hobby-label::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #242526;
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}

nav a:hover::after, 
.back-link:hover::after,
.hobby-cell a:hover .hobby-label::after {
    transform: scaleX(1);
}

nav a:hover, 
.back-link:hover {
    text-decoration: none;
}

.main-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin: 0 auto;
}

.header-cell {
    text-align: left;
    padding: 8vh 0 40px 10%;
}

.content-cell, 
.blog-list-cell {
    text-align: left;
    padding-left: 10%; 
    padding-right: 10%;
    vertical-align: top;
}

.content-cell p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.blog-header {
    margin: 0;
    padding: 0 0 20px 0; 
    line-height: 1.1;
}

.footer-cell {
    padding-left: 10%;
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: left;
}

.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.info-column { 
    flex: 1.2;
}

.image-column { 
    flex: 1; 
    display: flex;
    justify-content: center;
}

.blog-table { 
    width: 100%; 
    max-width: 800px; 
    border-collapse: collapse; 
    margin-top: 10vh; 
}

.hobby-grid-cell {
    padding: 20px 10%; 
    vertical-align: top;
}

.hobby-wrapper {
    display: flex;
    justify-content: flex-start; 
    gap: 30px;
    width: 100%;
}

.hobby-item {
    flex: 0 1 auto;
    text-align: center;
}

.hobby-label {
    margin-top: 10px;
    font-size: 1rem;
}

.content-cell {
    text-align: left;
    max-width: 700px;
    line-height: 1.6;
}

.content-cell h2 {
    margin: 60px 0 0 0;
    display: inline-block;
    padding: 0;
}

.content-cell h3 {
    margin: 20px 0 5px 0;
    font-size: 1.2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.grid-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 2px solid #242526;
    cursor: pointer;
    filter: grayscale(100%);
    transition: 0.3s ease;
}

.grid-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #242526;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #242526;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.blog-list-cell {
    text-align: left;
    width: 100%;
}

.category-title {
    font-family: 'Short Stack', cursive;
    font-size: 1.4rem;
    margin: 40px 0 10px 0;
    color: #242526;
}

.entry-item {
    width: 100%;
    border-bottom: 2px solid #242526;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.entry-link {
    font-size: 1.2rem;
    color: #242526;
    display: block;
    transition: transform 0.2s ease;
}

.entry-link:hover {
    transform: translateX(10px);
    text-decoration: none;
}

.profile-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0 40px;
    margin-top: 20px;
    width: 100%;
}

.profile-pic {
    float: right;
    width: 180px;
    height: 180px;
    margin-left: 25px;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    filter: grayscale(100%);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

.profile-pic:hover {
    filter: grayscale(0%);
    transform: rotate(3deg) scale(1.05);
}

.me-section::after {
    content: "";
    display: table;
    clear: both;
}

.memoir-chapter {
    margin-bottom: 60px;
}

.memoir-chapter h2 {
    font-family: 'Short Stack', cursive;
    margin-top: 40px;
    border-bottom: 1px dashed #242526;
    display: block;
}

.memoir-chapter .image-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.memoir-chapter .grid-img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.asset-container {
    margin: 30px 0;
    text-align: center;
}

.caption {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 8px;
    color: #666;
}

.video-placeholder {
    background: #f0f0f0;
    border: 2px dashed #242526;
    padding: 40px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .home-container { flex-direction: column; text-align: center; gap: 0; }
    
    .info-column, .image-column, .image-column a { display: contents; }
    
    .info-column { white-space: normal; }
    
    h1 { order: 1; font-size: 1.8rem; margin-top: 20px; white-space: nowrap; }
    h2 { order: 2; font-size: 1.2rem; margin-bottom: 20px; }

    .home-gif { 
        order: 3; 
        max-width: 15rem; 
        margin: 0 auto 30px auto;
        filter: grayscale(100%);
    }

    .home-nav { order: 4; }
    nav li { font-size: 1.5rem; }

    .main-table, 
    .main-table tbody, 
    .main-table tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-table tr .hobby-cell {
        display: block;
        width: 100%;
        margin: 2rem 0 2rem 0;
        padding: 0;
        text-align: center;
    }

    .hobby-label {
        position: relative;
        display: inline-block;
        margin-top: 10px;
        color: #242526;
        font-family: 'Short Stack', cursive;
        font-size: 1.2rem;
    }

    .hobby-cell a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }

    .hobby-label::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: -2px;
        left: 0;
        background-color: #242526;
        transform-origin: bottom left;
        transition: transform 0.3s ease-out;
    }

    .hobby-cell a:hover .hobby-label::after {
        transform: scaleX(1);
    }

    .hobby-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .hobby-grid-cell {
        padding: 20px 0;
    }

    .header-cell, .footer-cell {
        display: block;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .content-cell h3 {
        margin: 20px 0 5px 0;
        font-size: 1rem;
    }

    .content-cell p {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .profile-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-pic {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 150px;
        height: 150px;
    }

    .footer-cell {
        margin-top: 20px;
    }
}
