* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 20px;
    background-color: #ffffff;
    background-image: url("/assets/images/website/lost-sean.png");
    background-repeat: no-repeat;
    background-position: right 32px bottom 120px;
    background-size: 180px auto;
    background-attachment: fixed;
    color: #333333;
    font-family: 'Ubuntu', sans-serif;
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 14px 22px;
    background: #242424;
    border-radius: 12px;
    color: #ffffff;
}

.site-nav__brand {
    color: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__toggle {
    display: none;
}

.site-nav__toggle[hidden],
.site-nav__links[hidden] {
    display: none;
}

.site-nav__links a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #eeeeee;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
    background: #414141;
    color: #ffffff;
}

.site-nav__links a.is-active {
    background: #ffffff;
    color: #242424;
}

.site-nav__brand:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.content {
    background: #f1f1f1;
    padding: 20px 32px;
    border-radius: 16px;
}

.content h2 {
    clear: both;
}

.content li + li {
    margin-top: 12px;
}

.captioned-image {
    display: table;
    width: fit-content;
    max-width: min(45%, 420px);
    margin: 12px 0 20px;
}

.captioned-image--left {
    float: left;
    margin-right: 20px;
}

.captioned-image--right {
    float: right;
    margin-left: 20px;
}

.captioned-image--center {
    clear: both;
    margin-right: auto;
    margin-left: auto;
}

.captioned-image--no-caption {
    max-width: min(80%, 420px);
}

.captioned-image--full-width {
    width: 100%;
    max-width: none;
}

.captioned-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.captioned-image--no-caption img {
    border-radius: 10px;
}

.captioned-image--full-width img {
    width: 100%;
}

.captioned-image figcaption {
    padding: 10px 12px;
    border-radius: 0 0 10px 10px;
    background: #333333;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.character {
    position: fixed;
    right: 32px;
    bottom: 24px;
    width: 180px;
    max-width: 25vw;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 600px) {
    body {
        padding: 20px 16px;
        background-image: none;
    }

    body::after {
        content: "";
        display: block;
        height: 270px;
        background-image: url("/assets/images/website/lost-sean.png");
        background-repeat: no-repeat;
        background-position: right 12px bottom;
        background-size: 100px auto;
    }

    .content {
        padding: 14px 22px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 14px;
    }

    .site-nav__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 9px;
        border: 1px solid #666666;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .site-nav__toggle:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }

    .site-nav__toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #ffffff;
    }

    .site-nav__links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 4px;
    }

    .site-nav__links a {
        padding: 8px 10px;
    }

    .site-nav__links a.is-active {
        background: #ffffff;
        color: #242424;
    }

    .captioned-image--left,
    .captioned-image--right {
        max-width: 48%;
        margin-right: 12px;
        margin-left: 12px;
    }

    .character {
        width: 110px;
        right: 16px;
        bottom: 16px;
    }
}