body {
    color: var(--ink, #1a1713);
    font-family: "IBM Plex Mono", monospace;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    padding: 40px 50px;
    color: var(--ink, #1a1713);
    font-size: 1.1rem;
}

.sub-header a,
.text-section a {
    color: var(--ink, #1a1713);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.sub-header a:hover,
.text-section a:hover,
.github-btn:hover {
    color: #000;
}

.text-page-content {
    max-width: 1050px;
    margin: 80px auto 120px 100px;
    padding: 0 50px;
    font-size: 1.1rem;
    line-height: 2;
}

.text-section {
    margin-top: 40px;
}

.bottom-footer {
    color: var(--ink, #1a1713) !important;
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    position: relative;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line, #dcd3c6);
    border-radius: 4px;
    background: transparent;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    background-color: #f2ebe1;
    transform: translateY(-5px);
}

.project-card h3 {
    min-height: 3.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.github-btn {
    visibility: hidden;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--line, #dcd3c6);
    font-size: 0.95rem;
    font-weight: bold;
    opacity: 0;
    text-decoration: none !important;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project-card:hover .github-btn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
