:root {
    color-scheme: light;
    --background: #fafaf8;
    --text: #252a30;
    --muted: #626970;
    --accent: #305e80;
    --line: #dedfdb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

main, footer {
    width: min(960px, calc(100% - 3rem));
    margin-inline: auto;
}

.site-header {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 650;
}

.intro {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
}

.projects { padding: 2.5rem 0 4rem; }
.section-heading { margin-bottom: 1.5rem; }
h2 { margin-bottom: 0; font-size: 1.25rem; font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.4;
    font-weight: 650;
}

.card p { max-width: 42rem; margin-bottom: 0.75rem; color: var(--muted); }
.card strong { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.card:hover h3, .card:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    main, footer { width: calc(100% - 2rem); }
    .site-header { padding-top: 2rem; }
    .projects { padding-top: 2rem; }
}

.project-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.project-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .project-copy { padding: 1.25rem; }
}
