html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    max-height: 100%;
    font-size: 62.5%;
}

body {
    margin: 0;
    height: 100%;
    max-height: 100%;
    font-family: "Open Sans", sans-serif;
    letter-spacing: 0.01rem;
    font-size: 1.8rem;
    line-height: 1.75em;
    color: #3A4145;
    text-rendering: geometricPrecision;
}

.home-page {
    color: #0047AB;
    background: #fff;
}

.nav-page {
    color: #0047AB;
    background: #fff;
}

.home-page a,
.home-page a:hover,
.home-page h1,
.home-page h2,
.home-page h4 {
    color: #0047AB;
}

.nav-page a,
.nav-page a:hover,
.nav-page h1,
.nav-page h2,
.nav-page h4 {
    color: #0047AB;
}

.site-nav {
    position: static;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin: 2.4rem 2.8rem 0;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1;
}

.site-logo,
.site-menu a {
    color: #0047AB;
    text-decoration: none;
}

.site-logo {
    font-weight: 700;
}

.site-menu {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    text-align: right;
    white-space: nowrap;
}

.home-wrapper {
    color: #0047AB;
}

.home-content,
.about-content {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    padding: 7.2rem 2.8rem;
    box-sizing: border-box;
}

.about-content {
    min-height: calc(100vh - 4.8rem);
    padding-top: 0;
    padding-bottom: 0;
}

.home-frame {
    width: min(58vh, 62vw, 52rem);
    max-width: 100%;
}

.home-frame .site-nav {
    position: static;
    width: 100%;
    margin: 0 0 1.2rem;
}

.home-feature {
    display: block;
    width: 100%;
    color: #0047AB;
    line-height: 0;
}

.home-meta {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    margin-top: 1.2rem;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    box-sizing: border-box;
}

.home-piece {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    color: #0047AB;
}

.home-piece {
    height: auto;
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 1.6rem;
        line-height: 1.7em;
    }

    body.home-page {
        height: var(--home-locked-height, 100vh);
        max-height: none;
        overflow: hidden;
    }
    
    .site-wrapper main {
        justify-content: flex-start !important;
        padding-top: 0;
    }

    .site-nav {
        margin: 1.2rem 1.6rem 0;
        font-size: 1.6rem;
    }

    .site-wrapper .home-content,
    .site-wrapper .about-content {
        justify-content: flex-start !important;
        min-height: 0;
        height: var(--home-locked-height, 100vh);
        padding: 1.2rem 1.6rem 0;
        overflow: hidden;
    }

    .site-wrapper .about-content {
        align-items: center;
        justify-content: center !important;
        height: calc(100vh - 2.8rem);
        min-height: calc(100vh - 2.8rem);
        padding: 0 1.6rem;
        overflow: visible;
    }

    .home-frame {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        height: 100%;
    }

    .home-frame .site-nav {
        flex: 0 0 auto;
        margin-bottom: 1.2rem;
    }

    .home-feature {
        flex: 1 1 auto;
        min-height: 0;
    }

    .home-piece {
        height: 100%;
        aspect-ratio: auto;
    }

    .home-meta {
        flex: 0 0 auto;
        margin-top: 1.2rem;
        font-size: 1.6rem;
    }
}

a {
    color: #4A4A4A;
    transition: color 0.3s ease;
}

a:hover {
    color: #111;
}

h2, h4 {
    color: #2E2E2E;
    line-height: 1.15em;
    margin: 0 0 0.4em 0;
    font-family: "Open Sans", sans-serif;
    text-rendering: geometricPrecision;
}

h2 {
    font-size: 3.6rem;
    letter-spacing: -1px;
}

h4 {
    font-size: 2.5rem;
}

p {
    margin: 0 0 1.75em 0;
    text-rendering: geometricPrecision;
}

.site-wrapper {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
}

main {
    margin-bottom: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.post {
    position: relative;
    width: 80%;
    max-width: 710px;
    margin: 4rem auto;
    padding-bottom: 4rem;
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 3.6rem;
    margin-bottom: 0;
}

.post-excerpt {
    margin-top: 0;
}

.post-excerpt p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.7em;
}

.post-meta {
    display: block;
    margin: 0.5rem 0 0 0;
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #9EABB3;
}

.post-date {
    display: inline-block;
    margin-left: 8px;
    padding-left: 12px;
    border-left: #d5dbde 1px solid;
    text-transform: uppercase;
    font-size: 1.3rem;
    white-space: nowrap;
}

.nav-page .site-wrapper {
    min-height: 100vh !important;
}

.nav-page main {
    justify-content: flex-start !important;
}

.nav-page .post {
    width: min(72rem, calc(100% - 5.6rem));
    max-width: none;
    margin: 6rem auto 6rem;
    padding-bottom: 0;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
}

.nav-page .post-header {
    margin-bottom: 1.2rem;
}

.nav-page .post-title {
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    letter-spacing: 0;
}

.nav-page .post-excerpt {
    margin-top: 0;
}

.nav-page .post-excerpt + br {
    display: block;
    content: "";
    height: 2.4rem;
}

.nav-page .post-excerpt p {
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 1.5rem;
}

.nav-page .post-excerpt a {
    color: #0047AB;
    text-decoration: none;
}

.nav-page .post-excerpt p:has(.description) a {
    display: block;
    font-weight: 700;
}

.nav-page .description {
    display: block;
    margin-top: 0.25rem;
    color: #0047AB;
}

.about-links {
    display: grid;
    gap: 1.2rem;
    justify-items: center;
    text-align: center;
}

.about-link {
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.about-link a {
    color: #0047AB;
    text-decoration: none;
}

.gallery-content {
    width: min(62rem, calc(100% - 5.6rem));
}

.gallery-content > .post-excerpt p {
    max-width: 56rem;
    margin-bottom: 0;
}

.gallery-feed {
    --gallery-intro-gap: 3.2rem;
    --gallery-item-gap: 5.2rem;
    display: grid;
    gap: var(--gallery-item-gap);
    margin-top: var(--gallery-intro-gap);
}

.gallery-item {
    margin: 0;
}

.gallery-preview {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid #0047AB;
    box-sizing: border-box;
    color: #0047AB;
    background: #fff;
}

.gallery-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.gallery-copy {
    margin-top: 1.2rem;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
}

.gallery-copy h3 {
    margin: 0 0 0.4rem;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
}

.gallery-copy h3 a {
    color: #0047AB;
    text-decoration: none;
}

.gallery-copy p {
    margin: 0;
    color: #0047AB;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.45;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 5.2rem;
    padding-top: 1.2rem;
    border-top: 2px solid #0047AB;
    color: #0047AB;
    font-family: "Space Mono", "Open Sans", monospace;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
}

.gallery-footer a {
    color: #0047AB;
    text-decoration: none;
}

/* Footer styles for wave animation */
.footer-wrapper {
    position: relative;
    flex-shrink: 0;
    height: 84px;
}

#waveCanvas {
    width: 100%;
    height: 84px;
    background: #ffffff;
    color: #000000;
    border: none;
    outline: none;
}

@media only screen and (max-width: 600px) {
    .nav-page {
        overflow-x: hidden;
    }

    .nav-page .site-nav {
        margin: 1.2rem 1.6rem 0;
        font-size: 1.6rem;
    }

    .nav-page .post {
        width: auto;
        margin: 4.8rem 1.6rem 4rem;
        padding-bottom: 0;
    }

    .nav-page .post-title {
        font-size: 1.6rem;
        line-height: 1;
    }

    .nav-page .post-excerpt p {
        font-size: 1.4rem;
        line-height: 1.45;
        margin-bottom: 1.6rem;
    }

    .about-link {
        font-size: 1.6rem;
    }

    .nav-page .gallery-content {
        width: auto;
        padding-bottom: calc(10rem + env(safe-area-inset-bottom));
    }

    .gallery-feed {
        --gallery-intro-gap: 3rem;
        --gallery-item-gap: 4.8rem;
    }

    .gallery-preview {
        border-width: 2px;
    }

    .gallery-copy h3,
    .gallery-copy p {
        font-size: 1.4rem;
    }

    .gallery-footer {
        margin-top: 4.8rem;
        font-size: 1.4rem;
    }

    .post {
        width: auto;
        margin: 1.5rem 16px;
        padding-bottom: 1.5rem;
    }
    
    .post-header {
        margin-bottom: 0.5rem;
    }

    .post-title {
        font-size: 3.0rem;
        line-height: 1.2em;
        margin-bottom: 0;
    }

    h4 {
        font-size: 2.2rem;
        line-height: 1.3em;
    }

    .post-excerpt p {
        font-size: 1.0em;
        line-height: 1.6em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.6em;
    }

    .post-excerpt p:has(.description) {
        margin-bottom: 0.7em;
    }

    .post-meta {
        font-size: 1.6rem;
        line-height: 0;
        margin-bottom: 2rem;
    }

    .post-date {
        display: inline-block !important;
    }
    
    /* Keep title and description inline on mobile */
    .description {
        display: inline;
        line-height: 1.5em;
    }
} 
