@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url("fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url("fonts/fraunces-latin.woff2") format("woff2");
}

html {
    background-color: #b4b0c9;
    font-family: "Figtree", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 600;
}

body {
    box-sizing: border-box;
    line-height: 1.55;
    margin: 0;
    padding: 0 1.5rem 4rem;
}

header > hr {
    border: 0;
    border-top: 1px dashed #4f4a57;
    margin-block: 0.85rem;
}

main {
    max-width: 48rem;
    padding-top: 0;
}

main > section > :first-child {
    margin-top: 0;
}

nav {
    color: #4f4a57;
}

nav a {
    color: inherit;
    font-weight: normal;
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: #000;
    font-weight: bold;
}

nav a:hover,
nav a:focus-visible {
    color: #000;
}

main a {
    color: #3d4a1f;
    text-decoration-color: #667343;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

main a:hover,
main a:focus-visible {
    color: #000;
    text-decoration-color: currentColor;
}

.project-title {
    text-decoration: underline;
}

.photo-gallery {
    column-count: auto;
    column-gap: 1rem;
    column-width: 22rem;
    width: calc(100vw - 3rem);
}

.photo-gallery > header {
    column-span: all;
}

.photo-gallery figure {
    break-inside: avoid;
    margin: 0 0 1rem;
}

.photo-gallery img {
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.6rem rgb(0 0 0 / 12%);
    display: block;
    height: auto;
    max-width: 100%;
    transition: box-shadow 220ms ease, transform 220ms ease;
    width: 100%;
}

.photo-gallery img:focus-visible {
    outline: 3px solid #3d4a1f;
    outline-offset: 4px;
}

.photo-gallery figure:hover img {
    box-shadow: 0 0.8rem 1.5rem rgb(0 0 0 / 20%);
    transform: translateY(-0.45rem);
}

body.photo-lightbox-open {
    overflow: hidden;
}

.site-pet {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: grab;
    height: 104px;
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    touch-action: none;
    transform: translate3d(0, 0, 0);
    user-select: none;
    width: 128px;
    will-change: transform;
    z-index: 900;
}

.site-pet:active {
    cursor: grabbing;
}

.site-pet:focus-visible {
    border-radius: 0.75rem;
    outline: 2px dashed #3d4a1f;
    outline-offset: 3px;
}

.site-pet__sprite {
    background-repeat: no-repeat;
    display: block;
    height: 104px;
    image-rendering: pixelated;
    pointer-events: none;
    transform-origin: center;
    width: 128px;
}

.site-pet--casting-left .site-pet__sprite {
    transform: scaleX(-1);
}

.site-pet-projectile {
    display: block;
    height: 64px;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform-origin: center;
    width: 64px;
    will-change: transform;
    z-index: 910;
}

.site-pet-projectile__sprite {
    background-repeat: no-repeat;
    display: block;
    height: 64px;
    image-rendering: pixelated;
    width: 64px;
}

.site-pet-explosion {
    display: block;
    height: 128px;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 128px;
    will-change: transform;
    z-index: 915;
}

.site-pet-explosion__sprite {
    background-repeat: no-repeat;
    display: block;
    height: 128px;
    image-rendering: pixelated;
    width: 128px;
}

.site-pet-shatter-placeholder {
    visibility: hidden;
}

.site-pet-partially-shattered-link {
    pointer-events: none;
}

.site-pet-partially-shattered-link .site-pet-link-survivor {
    pointer-events: auto;
}

.site-pet-fully-shattered-link {
    visibility: hidden;
}

.site-pet-shard {
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    text-align: center;
    transform-origin: center;
    white-space: pre;
    will-change: opacity, transform;
    z-index: 920;
}

body.site-pet--screen-shaking > header,
body.site-pet--screen-shaking > main {
    animation: site-pet-screen-shake 260ms ease-out;
}

@keyframes site-pet-screen-shake {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    16% {
        transform: translate3d(-2px, 1px, 0);
    }

    32% {
        transform: translate3d(2px, -1px, 0);
    }

    48% {
        transform: translate3d(-1px, -1px, 0);
    }

    64% {
        transform: translate3d(2px, 1px, 0);
    }

    80% {
        transform: translate3d(-1px, 0, 0);
    }
}

.site-pet-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    bottom: 0.75rem;
    color: #77737e;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.35rem;
    position: fixed;
    right: 0.75rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    z-index: 950;
}

.site-pet-toggle:hover,
.site-pet-toggle:focus-visible {
    color: #4f4a57;
}

.site-pet-toggle:focus-visible {
    border-radius: 0.2rem;
    outline: 2px dashed currentColor;
    outline-offset: 2px;
}

body.photo-lightbox-open .site-pet {
    pointer-events: none;
}

body.photo-lightbox-open .site-pet-toggle {
    opacity: 0;
    pointer-events: none;
}

body.photo-lightbox-open .site-pet-projectile,
body.photo-lightbox-open .site-pet-explosion {
    display: none;
}

.photo-lightbox {
    background: rgb(13 12 16 / 0%);
    box-sizing: border-box;
    display: grid;
    inset: 0;
    padding: 1.5rem;
    place-items: center;
    position: fixed;
    transition: background-color 300ms ease;
    z-index: 1000;
}

.photo-lightbox.is-visible {
    background: rgb(13 12 16 / 86%);
}

.photo-lightbox:focus {
    outline: none;
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox__image {
    border-radius: 0.75rem;
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 45%);
    height: auto;
    max-height: 82dvh;
    max-width: min(80rem, 85vw);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    width: auto;
}

.photo-lightbox.is-visible .photo-lightbox__image {
    opacity: 1;
    transform: scale(1);
}

ul {
    list-style: none;
    margin-block: 1rem;
    padding-left: 0;
}

ul > li {
    padding-left: 1.75rem;
    position: relative;
}

ul > li + li {
    margin-top: 0.35rem;
}

ul > li::before {
    content: "✰";
    left: 0.5rem;
    position: absolute;
}

main :is(p, h1, h2, h3, h4, h5, h6):has(+ ul) {
    margin-bottom: 0.35rem;
}

main :is(p, h1, h2, h3, h4, h5, h6) + ul {
    margin-top: 0.35rem;
}

main > section + section,
main article + article {
    margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .photo-gallery img,
    .photo-lightbox,
    .photo-lightbox__image {
        transition: none;
    }

    body.site-pet--screen-shaking > header,
    body.site-pet--screen-shaking > main {
        animation: none;
    }
}
