@font-face {
    font-family: 'ABCMarist';
    src: url('fonts/ABCMarist-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABCMarist';
    src: url('fonts/ABCMarist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABCMarist';
    src: url('fonts/ABCMarist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

html {
    background-color: #ffffff;
}

:root {
    --electric-blue: #002FA7;
    --text-color: #666;
    --bg-color: #ffffff;
    --light-gray: #4d4d4d;
}

body {
    font-family: 'ABCMarist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.4;
    font-size: 18px;
    min-height: 100vh;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden;
}


.content {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 0;
    margin-top: 5vh;
}

.name-text {
    margin: 0;
    line-height: 1.3;
    font-size: 18px;
    font-weight: normal;
    font-family: 'ABCMarist', sans-serif;
}

.header-links {
    font-family: 'ABCMarist', sans-serif;
    font-size: 18px;
    font-weight: normal;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.header-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'ABCMarist', sans-serif;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: #000000;
}

.header-link.active {
    color: #000000;
}

.home-link {
    color: #000000 !important;
    text-decoration: none;
    font-family: 'ABCMarist', sans-serif;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.7;
}

.content p {
    margin: 0;
    line-height: 1.3;
    font-size: 18px;
    font-weight: normal;
    font-family: 'ABCMarist', sans-serif;
    color: var(--text-color);
    transition: margin-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.name-text + p {
    margin-top: 1.3em;
}

.content p:not(.name-text) ~ p {
    margin-top: 1.75rem;
    transition: margin-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.content strong {
    font-weight: 600;
    color: var(--electric-blue);
    font-family: 'ABCMarist', sans-serif;
}

.highlight-link {
    font-weight: normal;
    color: var(--electric-blue);
    text-decoration: none;
    font-family: 'ABCMarist', sans-serif;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.highlight-link:hover {
    opacity: 0.7;
}

.highlight-link.active {
    text-decoration: underline;
    opacity: 1;
}

.investing-link {
    color: #666;
    text-decoration: none;
    font-family: 'ABCMarist', sans-serif;
    transition: opacity 0.2s ease;
}

.investing-link:hover {
    opacity: 0.7;
}

.investing-item {
    margin-top: 0.875rem !important;
}

.investing-item:first-of-type {
    margin-top: 1.3em !important;
}

.investing-link + sub {
    margin-left: 0.3em;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

.content sub {
    font-size: 0.7em;
    vertical-align: baseline;
    position: relative;
    bottom: -0.2em;
    color: var(--text-color);
    font-family: 'ABCMarist', sans-serif;
}

.description-text {
    color: #bbb;
    font-family: 'ABCMarist', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    will-change: max-height, margin-top, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.description-text.active {
    max-height: 1000px;
    margin-top: 0.3em;
    margin-bottom: 0;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(0, 0, 0.2, 1), max-height 0.5s cubic-bezier(0, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.description-link {
    color: var(--electric-blue);
    text-decoration: none;
    font-family: 'ABCMarist', sans-serif;
    transition: opacity 0.2s ease;
}

.description-link:hover {
    opacity: 0.7;
}

.content em {
    font-style: italic;
}

.footer-video {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    background-color: #F2F2F2;
    margin-top: 2.6em;
    transition: margin-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-links {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: normal;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.5;
    margin-top: 1.3em;
    transition: margin-top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-link {
    text-decoration: none;
    color: var(--light-gray);
    transition: color 0.2s ease;
    font-family: 'IBM Plex Mono', monospace;
}

.contact-link:hover {
    color: var(--electric-blue);
}

.separator {
    color: var(--light-gray);
    margin: 0 0.2rem;
    font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 768px) {
    .container {
        padding: 4rem 1.5rem;
    }

    .name-text {
        font-size: 17px;
    }

    .content {
        gap: 1.5rem;
        margin-top: 0;
    }

    .content p {
        font-size: 17px;
        line-height: 1.155;
    }

    .description-text {
        font-size: 17px;
        line-height: 1.155;
    }

    .description-text.active {
        margin-top: 0.1em;
    }

    .name-text + p {
        margin-top: 0.0875em;
    }

    .content p:not(.name-text) ~ p {
        margin-top: 0.15625rem;
    }

    .contact-links {
        margin-top: 0.0875em;
    }

    .footer-video {
        margin-top: 0.175em;
    }

    .investing-item {
        margin-top: 0.0rem !important;
    }

    .investing-item:first-of-type {
        margin-top: 0.225em !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 3rem 1rem;
    }

    body {
        font-size: 17px;
    }

    .name-text {
        font-size: 16px;
    }

    .content {
        margin-top: 0;
    }

    .content p {
        font-size: 16px;
        line-height: 1.2;
    }

    .description-text {
        font-size: 16px;
        line-height: 1.2;
    }

    .description-text.active {
        margin-top: 0.1em;
    }

    .name-text + p {
        margin-top: 0.07875em;
    }

    .content p:not(.name-text) ~ p {
        margin-top: 0.1375rem;
    }

    .contact-links {
        font-size: 12px;
        margin-top: 0.07875em;
    }

    .footer-video {
        margin-top: 0.1575em;
    }

    .investing-item {
        margin-top: 0.08rem !important;
    }

    .investing-item:first-of-type {
        margin-top: 0.225em !important;
    }
}
