:root {
    color-scheme: light;
    --text: #1c1c1c;
    --muted: #5f5f5f;
    --line: #e2e2e2;
    --link: #1a4f8b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font: 1rem/1.5 system-ui, sans-serif;
}

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

.container {
    width: min(46rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header,
.site-footer {
    border-color: var(--line);
    border-style: solid;
}

.site-header {
    border-width: 0 0 1px;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.site-name {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-main {
    padding: 2rem 0 3rem;
}

.site-footer {
    border-width: 1px 0 0;
    padding: 1rem 0 2rem;
    color: var(--muted);
}

.article-image,
.article-content img,
.article-gallery img {
    max-width: 100%;
    height: auto;
}

.article-image {
    display: block;
    margin: 0 0 1.25rem;
}

.article-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.article-gallery img {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
}
