@view-transition {
  navigation: auto;
}

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

body {
    font-family:
        Decimal A,
        Decimal B;
    font-weight: 300;
    font-size: 14px;
    background-color: #1a202c;
}

.size-4 {
    height: 1rem;
    width: 1rem;
}

header {
    border-bottom: 3px solid #374151;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.container {
    max-width: 40rem;
    margin: 0 auto;
}

main.content {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem;

    @media (min-width: 800px) {
        padding: 0;
    }
}

.slides-container {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;

    &::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 3rem;
        background: linear-gradient(to right, transparent, var(--bg));
        pointer-events: none;
        z-index: 1;
    }

    @media (min-width: 800px) {
        margin-left: 0;
        margin-right: 0;
    }
}

.slides {
    display: flex;
    gap: 0.7rem;

    padding-left: 1rem;
    padding-right: 3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
        display: none;
    }

    @media (min-width: 800px) {
        gap: 1rem;
        scroll-padding-left: 0;
        max-width: 40rem;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 3rem;
    }

    .slide {
        border-radius: 0.5rem;
        overflow: hidden;
        width: 240px;
        flex-shrink: 0;
        aspect-ratio: 3/5;
        position: relative;
        scroll-snap-align: start;

        @media (min-width: 800px) {
            width: 200px;
        }

        img {
            object-fit: cover;
            height: 100%;
            width: 100%;
        }

        div {
            h3 {
                color: white;
                font-size: 0.8em;
                text-overflow: ellipsis;
                overflow: hidden;
            }

            p {
                display: none;
                text-wrap: balance;

                color: #a0aec0;
                font-size: 0.7em;
                display: block;
            }

            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2em 1rem 1rem 1rem;

            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.8) 50%,
                rgba(0, 0, 0, 0.8) 100%
            );
        }

        @media (min-width: 800px) {
            div {
                h3 {
                    font-size: 0.9em;
                }

                p {
                    font-size: 0.8em;
                }

                padding: 5rem 1rem 1rem 1rem;
            }
        }
    }
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    color: white;

    img {
        width: 2rem;
        border-radius: 50%;
    }

    span {
        font-size: 1.25rem;
    }
}

.content {
    > h2,
    > h3 {
        font-family: "Decimal 2 A", "Decimal 2 B";
        color: #d8dee5;
    }

    figure {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;

        img {
            margin-bottom: 0;
        }
        figcaption {
            font-size: 0.8rem;
            color: #c0c0c0;
            padding-top: 0.5rem;

            .arrow {
                opacity: 0.5;
            }
        }
    }

    p,
    ul {
        margin-bottom: 1rem;
        line-height: 150%;
        color: #a0aec0;
    }

    ul {
        list-style: none;
        padding-left: 0;

        li {
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: 0.5rem;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0.25em;
                width: 0.9rem;
                height: 0.9rem;
                background: cornflowerblue;
                mask: url("/assets/icon/bullet.svg") no-repeat center / contain;
                -webkit-mask: url("/assets/icon/bullet.svg") no-repeat center /
                    contain;
            }
        }
    }

    ul.fancy {
        list-style: none;
        padding-left: 0;

        li {
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: 0.5rem;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0.25em;
                width: 0.9rem;
                height: 0.9rem;
                background: wheat;
                mask: url("/assets/icon/blog.svg") no-repeat center / contain;
                -webkit-mask: url("/assets/icon/blog.svg") no-repeat center /
                    contain;
            }
        }

        li.photo::before {
            mask: url("/assets/icon/photo.svg") no-repeat center / contain;
            -webkit-mask: url("/assets/icon/photo.svg") no-repeat center /
                contain;
            background: aquamarine;
        }

        li.video::before {
            mask: url("/assets/icon/video.svg") no-repeat center / contain;
            -webkit-mask: url("/assets/icon/video.svg") no-repeat center /
                contain;
            background: plum;
        }

        li.life::before {
            mask: url("/assets/icon/life.svg") no-repeat center / contain;
            -webkit-mask: url("/assets/icon/life.svg") no-repeat center /
                contain;
            background: goldenrod;
        }

        li.travel::before {
            mask: url("/assets/icon/travel.svg") no-repeat center / contain;
            -webkit-mask: url("/assets/icon/travel.svg") no-repeat center /
                contain;
            background: cornflowerblue;
        }
    }

    img,
    video {
        width: 100%;
        border-radius: 0.25rem;
        height: auto;
        margin-bottom: 1rem;
    }

    a {
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-color: #434d5e;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    a {
        color: #f9f9f9;
    }

    a:hover {
        text-decoration-color: #889bba;
    }

    /*a:visited {*/
    /*    color: #f9f9f9;*/
    /*    text-decoration-color: #897eff;*/
    /*}*/

    /*a:visited:hover {*/
    /*    text-decoration-color: #402EFF;*/
    /*}*/

    p.opening {
        font-size: 1rem;

        @media (min-width: 1050px) {
            font-size: 1.2rem;
        }
    }
}

.filmstrip {
    display: flex;
    align-items: center;
    gap: 1rem;

    img {
        width: auto;
        border-radius: 0;
        border: 3px solid white;
    }
}

h1 {
    font-family: "Decimal 2 A", "Decimal 2 B";
    color: #d8dee5;
    border-bottom: 2px solid #374151;
    font-size: 1.5rem;
    padding-bottom: 0.75em;

    @media (min-width: 1050px) {
        font-size: 2rem;
    }
}

h2 {
}

hr {
    # border: 0.5px solid #374151;
    border: 2px solid #202736;
}

h3 {
    font-family:
        Decimal A,
        Decimal B;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1rem;
}

.highlight {
    background-color: #dbf4ff;
    /*border: 1px solid #26a134;*/
    padding: 0.3rem;
    border-radius: 0.2rem;
    text-transform: uppercase;
    font-size: 0.6rem;
    color: #114e54;
}

site-footer li {
    display: flex;
    align-items: center;
    color: #6c6c6c;
}

site-footer li a {
    color: #6c6c6c;
    text-decoration: none;
}

site-footer li a:hover {
    text-decoration: underline;
}

.socials {
    list-style: none;
    display: flex;

    svg {
        width: 1rem;
    }
}

.sr-only {
    display: none;
}

.portrait-wrapper {
    aspect-ratio: 1/1;
    margin-bottom: 1rem;

    img {
        height:100%;
        width: auto;
        margin: 0 auto;
    }
}
