:root {
    --bg: #ffffff;
    --surface: #f5f6f8;
    --text: #1f2933;
    --muted: #5b6573;
    --accent: #1f5f8b;
    --border: #e3e6ea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--accent); }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 26px 24px;
}

.site-header .wrap { max-width: 820px; margin: 0 auto; }

.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.site-header .subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Main */
main { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; }

.headshot {
    float: right;
    width: 180px;
    height: auto;
    border-radius: 10px;
    margin: 4px 0 16px 28px;
    border: 1px solid var(--border);
}

.intro p { margin: 0 0 16px; }

/* Project experience */
.proj-section { margin-top: 42px; clear: both; }
.proj-section h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.proj-intro { color: var(--muted); margin-top: 0; }

details.proj-cat { border-bottom: 1px solid var(--border); }
details.proj-cat:first-of-type { border-top: 1px solid var(--border); }

details.proj-cat > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.proj-cat > summary::-webkit-details-marker { display: none; }
details.proj-cat > summary::after { content: "+"; font-size: 1.35rem; color: var(--muted); }
details.proj-cat[open] > summary::after { content: "\2013"; }

.proj-list { list-style: none; padding: 0 4px 20px; margin: 0; }
.proj-list li { margin-bottom: 20px; }
.proj-list li:last-child { margin-bottom: 0; }
.proj-name { font-weight: 600; color: var(--text); }
a.proj-name { color: var(--accent); text-decoration: none; }
a.proj-name:hover { text-decoration: underline; }
.proj-loc { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-left: 8px; }
.proj-list p { margin: 5px 0 0; color: var(--muted); font-size: 0.95rem; }

.contact { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); }

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    padding: 24px;
    text-align: center;
}

.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
    .headshot { float: none; display: block; margin: 0 auto 22px; width: 170px; }
}
