.projects {
    column-count: 2;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    padding: 1.5rem;
    border: 2px solid color-mix(in srgb, var(--text) 40%, transparent);
    animation: fadeIn 0.4s ease both;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.project-title {
    margin: 0 0 0.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-title a {
    font-size: inherit;
}

.project-subtitle {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    opacity: .45;
    font-style: italic;
}

.project-desc {
    margin: 0 0 1.2rem;
    font-size: 1.325rem;
    line-height: 1.55;
}

.project-desc a {
    font-size: inherit;
}

.lang-bar {
    display: flex;
    height: 6px;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    margin-bottom: 0.7rem;
}

.lang-bar .seg {
    display: block;
    height: 100%;
}

.seg.html     { background: #e34c26; }
.seg.css      { background: #563d7c; }
.seg.js       { background: #f1e05a; }
.seg.go       { background: #00add8; }
.seg.makefile { background: #427819; }
.seg.lua      { background: #000080; }
.seg.shell    { background: #89e051; }
.seg.vim      { background: #199f4b; }
.seg.python   { background: #3572A5; }

.lang-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin: 0;
    font-size: 1rem;
    opacity: .75;
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-html     { background: #e34c26; }
.dot-css      { background: #563d7c; }
.dot-js       { background: #f1e05a; }
.dot-go       { background: #00add8; }
.dot-makefile { background: #427819; }
.dot-lua      { background: #000080; }
.dot-shell    { background: #89e051; }
.dot-vim      { background: #199f4b; }
.dot-python   { background: #3572A5; }

@media (max-width: 960px) {
    .projects {
        column-count: 1;
    }
}
