@import url('reset.css');

html {
    font-size: 12pt;
}

:root {
    --font: 'Public Sans', sans-serif;
    --background-color: #f6f6f6;
    --foreground-color-1: #111;
    --foreground-color-2: #111a;
    --foreground-color-3: #1116;
    --underline-color: #1114;
}

body {
    font-family: var(--font);
    color: var(--foreground-color-1);
    background: var(--background-color);
    display: grid;
    grid-template-columns: 1fr 180px 100px 1.5fr 1fr;
    grid-auto-rows: min-content;
    row-gap: 3rem;
}

header {
    text-align: right;
    grid-column: 2;
    font-weight: 500;
    font-size: 16pt;
    position: relative;
    margin-top: 5rem;
    margin-bottom: 1rem;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 35px;
    height: 1px;
    background: var(--foreground-color-2);
}

.about,
.contact,
.experience,
.projects,
.posts {
    display: contents;
}

.label {
    grid-column: 2;
    text-align: right;
    color: var(--foreground-color-3);
}

.content {
    grid-column: 4;
    font-weight: 200;
    color: var(--foreground-color-1);
}

a {
    text-decoration-color: var(--underline-color);
    display: block;
    margin-bottom: 0.5rem;
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: var(--foreground-color-2);
}

a:hover .link-arrow {
    fill: var(--foreground-color-2);
}

.project {
    margin-bottom: 1.5rem;
}

.project>a {
    margin-bottom: 0.3rem;
}

.project-description {
    color: var(--foreground-color-2);
    font-size: 0.9em;
}

.link-arrow {
    height: 1em;
    width: 1em;
    vertical-align: text-bottom;
    fill: var(--underline-color);
    transition: fill 0.2s ease;
    white-space: nowrap;
}

.experience-entry {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    background-color: var(--foreground-color-3);
    border-radius: 50%;
    z-index: 1;
}

.experience-entry:first-child::before {
    background-color: var(--foreground-color-1);
}

.experience-entry::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 0.95em;
    height: calc(100% + 1rem);
    width: 1px;
    background-color: var(--foreground-color-3);
}

.experience-entry:last-child::after {
    display: none;
}

.experience-date {
    color: var(--foreground-color-3);
    font-size: 0.9em;
    margin-bottom: 0.3rem;
}

.experience-entry:first-child .experience-date {
    color: var(--foreground-color-1);
}

.experience-title {
    color: var(--foreground-color-1);
}

.company {
    text-decoration: underline;
    text-decoration-color: var(--underline-color);
}

footer {
    grid-column: 1 / -1;
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.footer-content {
    text-align: center;
    color: var(--foreground-color-3);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        row-gap: 2rem;
    }
    
    header {
        text-align: left;
        grid-column: 1;
        margin-top: 2rem;
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    header::after {
        left: 0;
        right: auto;
    }
    
    .label {
        grid-column: 1;
        text-align: left;
        margin-bottom: 0;
        font-weight: 600;
        font-size: 14pt;
    }
    
    .content {
        grid-column: 1;
        margin-bottom: 1.5rem;
    }
    
    footer {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
}
