/* FILENAME: projects.css */

:root {
    color-scheme: light;
    --ink: #17231d;
    --muted: #5c6b63;
    --paper: #f6f4ed;
    --card: #fffdf7;
    --accent: #287356;
    --line: #d8ddd7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 0%, rgba(64, 145, 108, 0.15), transparent 34rem),
        var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(70rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.site-name {
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.home-link,
footer a {
    color: var(--accent);
    text-underline-offset: 0.22em;
}

main {
    padding-block: clamp(4rem, 10vw, 8rem);
}

.intro {
    max-width: 48rem;
    margin-bottom: 3.5rem;
}

.eyebrow,
.project-meta {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 10vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.intro > p:last-child {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 1rem 3rem rgba(29, 52, 41, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 1.25rem 3.5rem rgba(29, 52, 41, 0.13);
}

.project-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.project-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.project-content {
    padding: 1.4rem;
}

.project-content h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.project-content > p {
    margin: 0.8rem 0 1.4rem;
    color: var(--muted);
    line-height: 1.55;
}

.project-details {
    color: var(--muted);
    font-size: 0.82rem;
}

.loading,
.notice {
    color: var(--muted);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 36rem) {
    footer {
        flex-direction: column;
    }
}

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