@font-face {
    font-family: Erika;
    src: url(../fonts/HALTimezoneTest-Regular.otf) format("opentype");
}

html {
    font-family: Erika, sans-serif;
    letter-spacing: -0.01em;
}

:root {
    --text-size: 33px;
}

body {
    font-size: var(--text-size);
    padding: 0.5rem;
    min-height: min(100dvh, 100vh);
    display: flex;
    flex-direction: column;
    background: white;
}

small, #bio {
    font-size: 20px;
    line-height: 1;
}

#bio {
    margin-top: 4rem;
    max-width: 800px;
}

footer {
    margin-top: 5rem;
}

li {
    display: inline;
}

.link {
    cursor: pointer;
}

.regie-image-wrap {
    position: relative;
    display: inline-block;
    height: var(--text-size);
    --scale: 8;
    --bx: 0px;
    --by: 0px;
}


.regie-image-thumbnail {
    height: 100%;
    object-fit: contain;
    position: relative;
    transform: translate(0, 0);
    z-index: -1;
    cursor: pointer;
    transition: opacity 500ms ease;
}

.regie-image {
    position: absolute;
    object-fit: contain;
    top: 0;
    left: 0;
    width: calc(var(--scale) * 100%);
    height: calc(var(--scale) * 100%);
    transform: translate(var(--bx), var(--by)) scale(calc(1/var(--scale)));
    transition: transform 600ms ease, opacity 500ms ease;
    max-width: none;
    opacity: 0;
}

.regie-link:hover .regie-image {
    transform: translate(var(--bx), var(--by)) scale(1);
    opacity: 1;
}

.regie-link:hover .regie-image-thumbnail {
    opacity: 0;
}

.regie-link.is-touch-hover .regie-image {
    transform: translate(var(--bx), var(--by)) scale(1);
    opacity: 1;
}

.regie-link.is-touch-hover .regie-image-thumbnail {
    opacity: 0;
}

.regie-link-text {
    position: relative;
}

.regie-link small {
    display: inline-block;
}

.link:hover .link-text, .link:hover small {
    position: relative;
    color: rgb(213, 0, 0);
    mix-blend-mode: difference;
    z-index: 20;
    /* -webkit-text-fill-color: black;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: white; */
}

a:hover .link-text {
    /* text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-underline-offset: 0.2rem; */
    color: orange;
    z-index: 20;
}



/* nav styles */

header {
    margin-bottom: 1rem;
}
 
/* .header-link.is-active:before {
    content: '×';
} */

nav a:hover, nav a.is-active {
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-underline-offset: 0.2rem;

}

.type {
    margin-right: 0.2rem;
}

body.active-regie .type, body.active-text .type, body.active-vita .type {
    /* background: rgb(255, 79, 15); */
}

body.active-regie .type-text,
body.active-regie .type-vita, 
body.active-regie .type-music{
    background: none;
    opacity: 0.1;
    pointer-events: none;
}

body.active-text .type-regie,
body.active-text .type-vita,
 body.active-text .type-music{
    background: none;
    pointer-events: none;
    opacity: 0.1;
}

body.active-music .type-regie,
body.active-music .type-text,
body.active-music .type-vita {
    background: none;
    pointer-events: none;
    opacity: 0.1;
}

h2 {
    margin-bottom: 2rem;
    font-size: 60px !important;
}

main > header {
    font-size: 20px;
}

main > header.project-meta {
    margin-bottom: 1rem;
}

main > header.project-meta p {
    display: grid;
    grid-template-columns: 13ch minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: baseline;
}

main > header.project-meta .meta-label {
    white-space: break-space;
}

@media (max-width: 900px) {
    main > header.project-meta p {
        grid-template-columns: 10ch minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    main > header.project-meta p {
        grid-template-columns: 1fr;
        row-gap: 0.1rem;
    }
}

main .small {
    font-size: 20px;
    margin-top: 2rem;
}

main .small p {
    margin-top: 1rem;
}

h2 a {
    font-size: var(--text-size);
    display: inline-block;
    transform: translateY(-20%);
    margin-right: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 900px) {
    body {
        line-height: 1.1;
    }
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :root {
        --text-size: 25px;
    }
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}