:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --fg: #1c1c1e;
    --muted: #6b6b70;
    --accent: #0a84ff;
    --rule: #e5e5ea;
    --card: #f7f7f8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --fg: #f2f2f7;
        --muted: #9a9aa0;
        --accent: #0a84ff;
        --rule: #2c2c2e;
        --card: #1c1c1e;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

header.site {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

header.site .brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--fg);
}

nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 1.25rem;
    font-size: 0.95rem;
}

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

h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    margin: 0 0 2rem;
}

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

.muted {
    color: var(--muted);
}

.updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0;
}

ul {
    padding-left: 1.2rem;
}

li {
    margin: 0.35rem 0;
}

.gallery {
    margin: 2.5rem 0;
}

.gallery h2 {
    margin: 0 0 1rem;
}

.gallery .shots {
    margin: 0;
}

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.shot {
    margin: 0;
    text-align: center;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--rule);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.shot figcaption {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 540px) {
    .shots {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    /* Centre the lone third shot on the second row. */
    .shot:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
        margin: 0 auto;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
}

footer.site {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

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

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