body {
    margin: 0;
    background-color: #fff;
    color: #111;
    font-family: "Platypi", serif;
}

h1, h2, h3 {
    font-family: "Geom", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container {
    width: min(100% - 2rem, 64rem);
    margin: 0 auto;
}

.site-title {
    font-weight: 700;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

section {
    margin-bottom: 3rem;
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

header {
    background-color: #ccf;
    border-bottom: 3px solid black;
}

header a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

p {
    font-family: "Platypi";
}

code,
pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

code {
    background-color: #f3f3f3;
    border-radius: 0.2rem;
    padding: 0.1rem 0.25rem;
    font-size: 0.92em;
}

.highlight {
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #d9d9d9;
    border-radius: 0.35rem;
    background-color: #f8f8f8;
}

.highlight pre {
    margin: 0;
    padding: 1rem;
    line-height: 1.55;
}

.highlight code {
    background: none;
    padding: 0;
    font-size: 0.95rem;
}

.highlight .c,
.highlight .cm,
.highlight .cp,
.highlight .c1,
.highlight .cs {
    color: #6a737d;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
    color: #005cc5;
}

.highlight .s,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .s1 {
    color: #032f62;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo {
    color: #005cc5;
}

.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .no,
.highlight .nd,
.highlight .ni,
.highlight .ne,
.highlight .nf,
.highlight .nl,
.highlight .nn,
.highlight .nt,
.highlight .nv {
    color: #6f42c1;
}

.highlight .o,
.highlight .ow {
    color: #d73a49;
}

.post,
.post-list {
    margin-top: 3rem;
}

.post {
    max-width: 42rem;
}

.post-meta {
    margin-bottom: 0.25rem;
    color: #555;
    font-size: 0.95rem;
}

.post h1,
.post-list h2 {
    margin-top: 0;
}

.post-list article {
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
}

.post-list article:first-child {
    padding-top: 0;
}

.banner-photo {
    position: relative;
    margin: 0;
}

.banner-photo img {
    display: block;
    width: 100%;
    height: 16rem;
    /*margin-top: 2rem;*/
    object-fit: cover;
}

.banner-photo figcaption {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    max-width: min(22rem, calc(100% - 2rem));
    padding: 0.35rem 0.55rem;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.9rem;
    line-height: 1.3;
}

.main-photo {
    text-align: center;
}

.main-photo p {
    margin-top: 0;
    font-style: italic;
    color: #555;
}

.main-photo img {
    max-width: clamp(300px, 65%, 800px);
    height: auto;
}

.photos-page {
    margin-top: 3rem;
}

.photos-page > p {
    max-width: 38rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-card {
    margin: 0;
    min-width: 0;
}

.photo-trigger {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: zoom-in;
}

.photo-trigger:focus-visible {
    outline: 3px solid #111;
    outline-offset: 0.25rem;
}

.photo-card img,
.photo-dialog img {
    display: block;
}

.photo-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card figcaption {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.photo-dialog {
    width: min(100% - 2rem, 76rem);
    max-height: calc(100% - 2rem);
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
}

.photo-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.82);
}

.photo-dialog img {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    margin: 0 auto;
    object-fit: contain;
}

.photo-dialog p {
    margin: 0.75rem 3rem 0;
    text-align: center;
}

.photo-dialog-close {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 0.75rem auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: none;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
}

.photo-dialog-close::before,
.photo-dialog-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.15rem;
    height: 0.125rem;
    background-color: white;
    content: "";
    transform-origin: center;
}

.photo-dialog-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.photo-dialog-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.photo-dialog-close:focus-visible {
    outline: none;
    background-color: rgba(255, 255, 255, 0.18);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-family: "Platypi";
}

@media (max-width: 350px) {
    header .container {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
    }
}
