#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec  4 19:35:19 2026

@author: kieranmartin
"""

/* Selected Projects */

.projects-heading {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-top: 40px;
    margin-bottom: 10px;
    border-bottom: none !important;
}

.projects-intro {
    font-size: 0.95rem;
    color: #737973;
    margin-bottom: 24px;
}

/* Two-column card layout */

.project-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0;
}

/* Individual cards */

.project-card {
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    border-radius: 16px;
    padding: 24px;
    color: #252925 !important;
    text-decoration: none !important;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

a.project-card:hover {
    transform: translateY(-4px);
    border-color: #A6B5A4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

/* Header */

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #E8EDE6;
    color: #526B56;
    border-radius: 12px;
    font-size: 1.2rem;
}

.project-arrow {
    color: #526B56;
    font-size: 1.4rem;
}

/* Category */

.project-category {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #526B56;
}

/* Title */

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin: 8px 0 12px !important;
    padding: 0;
    color: #252925;
    border: none;
    text-decoration: none;
}

/* Description */

.project-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #737973;
    margin: 0 0 20px !important;
    text-decoration: none;
}

/* Technology tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tags span {
    display: inline-block;
    background: #F0F2EF;
    color: #526B56;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Individual icon colors */

.project-card:nth-child(1) .project-icon {
    background: #E0E9F5;
    color: #426389;
}

.project-card:nth-child(2) .project-icon {
    background: #F1E7D7;
    color: #967440;
}

.project-card:nth-child(3) .project-icon {
    background: #DFEBDD;
    color: #526B56;
}

.project-card:nth-child(4) .project-icon {
    background: #EBE3F2;
    color: #806597;
}

/* Keyboard accessibility */

.project-card:focus-visible {
    outline: 2px solid #526B56;
    outline-offset: 4px;
}

/* Mobile layout */

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none;
    }

    a.project-card:hover {
        transform: none;
    }
}

/* Standardize project image dimensions */

.project-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #F0F2EF;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin: 0;
}

/* Align project categories */

.project-category {
    min-height: 2.8em;
    line-height: 1.4;
}

/* Align project titles */

.project-card h3 {
    min-height: 2.8em;
    line-height: 1.4;
}

/* Allow sidebar text to wrap */

.author__urls li,
.author__urls li a {
    white-space: normal !important;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    line-height: 1.5;
}