:root {
    --text: #1a1a1a;
    --muted: #666;
    --border: #ddd;
    --bg: #fff;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--muted);
}

a:hover {
    border-bottom-style: solid;
}

.wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

header {
    border-bottom: 1px solid var(--border);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    gap: 0.75rem;
}

.brand {
    font-weight: 600;
    border-bottom: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

nav ul a {
    border-bottom: none;
    color: var(--muted);
}

nav ul a:hover,
nav ul a.active {
    color: var(--text);
}

main {
    padding: 2.5rem 0 3rem;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 1.7rem;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

p {
    margin: 0.75rem 0;
}

ul.insights {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

ul.insights li {
    margin: 0.35rem 0;
}

.subtitle {
    color: var(--muted);
    margin-top: 0;
}

section + section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border);
}

.tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: none;
}

.stack {
    font-size: 0.9rem;
    color: var(--muted);
}

article + article {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.date {
    font-size: 0.85rem;
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery a {
    display: block;
    border-bottom: none;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.gallery img:hover {
    filter: grayscale(0%);
}

.email-btn {
    display: inline-block;
    border: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
}

.email-btn:hover {
    background: var(--text);
    color: var(--bg);
}

footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    nav.wrap {
        justify-content: center;
        text-align: center;
    }

    nav ul {
        gap: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img {
        height: 150px;
    }
}
