html {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    color: #333333;
    margin: 0px;
    background-color: #FAF9F6;
}

:root{
    --lh: 1.35;
    --gap-s: 0.75rem;
    --gap-m: 1.125rem;
    --gap-l: 1.75rem;
}

body{ 
    line-height: var(--lh); 
}

.section{
    margin-top: var(--gap-l);
}

.section:first-child{ 
    margin-top: 0; 
}

canvas {
    display: block;
}

.main-container {
    max-width: 700px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
}

#fractal-tree {
    width: 100%;
    height: 210px;
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-weight: normal;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    column-gap: 10px;
    justify-content: center;
    margin-top: -1.5rem;
}

h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    color: #222;
    margin: 0;
}

h2 {
    font-size: 1.25em;
}

h3 {
    font-size: 1em;
}

h4 {
    font-size: 0.95em;
}

h4.italic {
    font-style: italic;
}

.company{ 
    font-weight: 500; 
}

.role{ 
    color:#666;
}

.dates{ 
    font-style: italic; color:#777; 
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.about-text {
    margin-top: 0;
    margin-bottom: 8px;
}

.about-text:last-child {
    margin-bottom: 0;
}

.projects-container,
.experience-container {
    display: flex;
    flex-direction: column;
    row-gap: var(--gap-m);
}

.experience-item ul {
    line-height: var(--lh);
    gap: 0.35rem;
    padding-left: 1.5rem;
    margin: 0;
}

.experience-item-metadata {
    display: flex;
    flex-direction: column;
    /* gap: 0.2rem; */
}

.project-item p {
    margin-top: 0px;
    margin-bottom: 2px;
}

.footer {
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    padding-block: 2em;
    padding-inline: 2rem;
    margin-top: auto;
}
