/* || Variables */

:root {
    /* Fontsizes */
    --fs-page-title:        3rem;
    --fs-item-title:        1.5rem;
    --fs-nav:               1.2rem;
    --fs-nav--l:            3rem;
    --fs-nav--xl:           15vw;

    --fs-s: 0.8rem;
    --fs-m: 1rem;
    --fs-l: 1.5rem;

    --bold: 300;

    /* Spacing */
    --x-xs: 0.25rem;
    --x-s: 0.5rem;
    --x-m: 1rem;
    --x-l: 2rem;
    --x-xl: 4rem;
    --wrap-tx: 600px;
    --wrap-md: 900px; /* media */
    --site-pd: 1rem;
    --header-h: calc(var(--x-s) * 2 + var(--fs-m));

    /* Colors */
    --color-000: #ffffff;
    --color-005: #f2f2f2;
    --color-010: #E5E5E5;
    --color-020: #CCCCCC;
    --color-030: #B2B2B2;
    --color-040: #999999;
    --color-050: #808080;
    --color-060: #666666;
    --color-070: #4D4D4D;
    --color-080: #333333;
    --color-090: #1A1A1A;
    --color-100: #000000;

    --color-yellow: #CCFF00;

    --color-tx-normal:  var(--color-100);
    --color-tx-muted:   var(--color-040);
    --color-tx-faint:   var(--color-020);
    --color-tx-hover:   var(--color-100);

    --color-ui-normal:  var(--color-010);
    --color-ui-hover:   var(--color-100);
    --color-ui-active:  var(--color-100);

    --color-bg-1:       var(--color-000);
    --color-bg-2:       var(--color-005);
    --color-bg-3:       #CCFF0050;
    --color-bg-hover:   var(--color-000);
    --color-bg-active:  #CCFF0080;

    --border-normal: 1px solid var(--color-ui-normal);
    --border-hover: 1px solid var(--color-ui-hover);
    --border-active: 1px solid var(--color-ui-active);

    --shadow-yellow: 0 0 1rem var(--color-yellow);
    --shadow-white:0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white,0 0 1rem white;
    --shadow-white-s:0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white, 0 0 2px white;
}

html {
    font-size: 20px;
}

@media only screen and (max-width: 900px) {
    :root {
        --fs-nav--l: 2rem;
        --fs-l: 1.2rem;
        --fs-page-title: 2rem;
    }
}
@media only screen and (max-width: 600px) {
    :root {
        --fs-nav--xl: 23vw;
        --site-pd: 0.75rem;
    }
    html {
        font-size: 15px;
    }
}
@media only screen and (max-width: 375px) {
    :root {
        --fs-nav--l: 8vw;
    }
}

/* || Utilities */

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.hidden {
    display: none;
}

.flex {
	display: flex;
	gap: var(--x-m);
}
.flex--col {
	flex-direction: column;
}
@media only screen and (max-width: 600px) {
    .flex--mb {
        flex-direction: column;
    }
}
.flex-grow {
	flex-grow: 1;
}
.flex-shrink {
	flex-shrink: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--x-m);
}
@media only screen and (max-width: 1200px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--x-m);
    }
}

.span-2 {
    grid-column: span 2;
}
.span-3 {
    grid-column: span 3;
}
.span-4 {
    grid-column: span 4;
}
.span-6 {
    grid-column: span 6;
}

.bg {
    background-color: var(--color-bg-1);
}

hr {
    border-top: var(--border-normal);
    border-bottom: none;
    margin: var(--x-l) 0 var(--x-l), 0;
}

.wrap-tx {
    max-width: var(--wrap-tx);
    width: 100%;
    margin: 0 auto;
}
.wrap-md {
    max-width: var(--wrap-md);
    width: 100%;
    margin: 0 auto;
}

.arrow-d::before {
    content: "\2193";
}
.arrow-u::before {
    content: "\2191";
}

/* || TOP-LEVEL  */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-tx-normal);
    background: var(--color-bg-1);
}

.site-container {
    position: relative;
    padding: 0 var(--site-pd);
}

.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: var(--color-bg-1);
    border-bottom: var(--border-normal);
}
.header__top {
    padding: var(--x-s) 0;
}
.header__container {
    position: relative;
}

.main {
    min-height: calc(100vh - var(--header-h));
    position: relative;
    margin-bottom: var(--x-l);
}

.footer {
    position: relative;
    padding: var(--x-m) 0;
    border-top: var(--border-normal);
    z-index: 2;
}
.footer__date {
    text-align: right;
}

.section {
    scroll-margin-top: calc(var(--header-h) + 2.5rem);
    padding: var(--x-m) 0;
}

.section-nav {
    position: sticky;
    bottom: 1rem;
    z-index: 1;
    margin: var(--x-m) 0 0 0;
    backdrop-filter: blur(1rem);
    padding-right: 0.25em;
    display: inline-block;
    font-size: var(--fs-nav);
    transition: opacity 0.3s ease-in-out;
}
.section-nav--hide {
    opacity: 0;
}
.section-nav__inner {
    display: flex;
    flex-direction: row;
}
.section-nav__title {
    font-weight: 100;
    font-size: inherit;
}
.section-nav__line {
    margin: 0 0.5em 0 0;
    font-size: inherit;
    height: 1em;
    width: 0.06em;
    background-color: var(--color-tx-normal);
    transition: transform 0.3s ease-in-out;
}
.section-nav:hover .section-nav__line {
    transform: rotate(18deg);
}

.gradient-fade-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--fs-nav--l) * 2);
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, #CCFF0080),linear-gradient(to bottom, transparent, white);
    z-index: 0;
    transition: opacity 0.3s ease-in-out;
}

/* || TEXT */
body {
    font-family: 'Domino-Mono', Arial, Helvetica, sans-serif;
    font-size: var(--fs-m);
    font-weight: 100;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--bold);
    font-family: 'Domino-Mono', Arial, Helvetica, sans-serif;
}
p {
    margin: 0;
}
strong {
    font-weight: var(--bold);
}
em {
    font-style: italic;
}

.plain {
    color: var(--color-tx-normal);
}
.muted {
	color: var(--color-tx-muted);
}
.faint {
	color: var(--color-tx-faint);
}
.smaller {
	font-size: 0.8em;
}
.strong {
    font-weight: var(--bold);
}

.site-title {
    font-size: var(--fs-nav);
    font-weight: 100;
    font-style: italic;
    transition: all 0.3s ease-in-out;
}
.site-title:hover {
    font-style: normal;
}
.site-title--l {
    font-size: var(--fs-nav--l);
    text-shadow: var(--shadow-white);
}
.site-title--xl {
    font-size: var(--fs-nav--xl);
}

.page-title {
    font-size: var(--fs-page-title);
    text-align: center;
    font-weight: 100;
    margin: var(--x-l) 0;
}

.section-title {
    font-size: var(--fs-nav);
    font-weight: 100;
}
.section-title--l {
    font-size: var(--fs-nav--l);
}

.item-title {
    font-size: var(--fs-item-title);
    font-weight: 100;
}

.small-title {
    font-size: var(--fs-s);
    font-weight: var(--bold);
    margin-bottom: var(--x-xs);
    color: var(--color-tx-muted);
}

.tx-large {
    font-size: var(--fs-l);
}
.tx-small {
    font-size: var(--fs-s);
}

/* || LINKS */

a, a:visited {
    color: var(--color-tx-normal);
    cursor: pointer;
}
a:hover {
    text-shadow: var(--shadow-yellow);
    font-style: italic;
}
a.active {
    text-shadow: var(--shadow-yellow);
}
a.plain {
    color: inherit;
    text-decoration: none;
}

/* || BUTTONS */

.button {
    padding: 2px 4px;
    color: var(--color-tx-normal);
    border: var(--border-normal);
    background-color: var(--color-bg-2);
    text-decoration: none;
    text-transform: uppercase;
}
.button:hover {
    box-shadow: var(--shadow-yellow);
    background-color: var(--color-bg-hover);
}
.button.active {
    background-color: var(--color-bg-active);
}
.button.disabled {
    color: var(--color-tx-faint);
    pointer-events: none; 
}
.button-eq {
    margin-top: 3px;
}

/* || META */
.meta {
    font-size: var(--fs-s);
}
.meta__term {
    font-weight: var(--bold);
    color: var(--color-tx-muted);
    margin-bottom: var(--x-xs);
}
.meta__description {
    display: flex;
    flex-wrap: wrap;
    gap: var(--x-xs);
}

/* || ITEMS */

.items {
    display: flex;
    flex-direction: column;
    padding-top: var(--x-m);
}

.items--list {
    display: flex;
    flex-direction: column;
}

.item__inner {
    padding-top: var(--x-s);
    padding-bottom: var(--x-m);
}
/* .items--list .item__inner {
    display: flex;
    column-gap: var(--x-m);
    row-gap: var(--x-xs);
}
@media only screen and (max-width: 480px) {
    .items--list .item__inner {
        flex-direction: column;
    }
} */
/* .items--list .item__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--x-m);
}
@media only screen and (max-width: 1200px) {
    .items--list .item__inner{
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--x-m);
    }
} */

.items--list .item__title {
    margin-bottom: var(--x-s);
    flex-grow: 1;
}

.items--list .item__cover {
    display: none;
}
.items--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: var(--x-m);
}
@media only screen and (max-width: 600px) {
    .items--grid {
        grid-template-columns: 1fr;
    }
}
.items--grid .item__inner {
    display: flex;
    flex-direction: column;
    row-gap: var(--x-s);
}
.items--grid .item__cover {
    margin-top: var(--x-s);
}

.item__link-wrapper {
    grid-column: span 6;
}

.item__meta {
    grid-column: span 6;
    row-gap: var(--x-s);
    column-gap: var(--x-s);
    flex-direction: column;
}
.item__meta__group {
    display: flex;
    column-gap: var(--x-s);
}

.item__meta .meta__item--date {
    flex-grow: 1;
    text-align: right;
}





/* || MENU */

.nav-overlay {
    display: none;
    backdrop-filter: blur(1rem);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 98;
    padding: 0 var(--site-pd);
}
.nav-header {
    padding: var(--x-s) 0;
}
.menuIsOpen .nav-overlay {
    display: block;
}
.menu__item {
    display: flex;
    font-size: var(--fs-nav--l);
}
.menu__item__inner {
    display: flex;
    flex-direction: row;
}
.menu__item__title {
    font-weight: 100;
    font-size: inherit;
    /* text-shadow: var(--shadow-yellow); */
}
.menu__item__line {
    margin: 0 0.5em 0 0;
    font-size: inherit;
    height: 1em;
    width: 0.06em;
    background-color: var(--color-tx-normal);
    transition: transform 0.3s ease-in-out;
}
.menu__item:hover .menu__item__line {
    transform: rotate(18deg);
}

/* || MENU-TOGGLE */
  
.menu-toggle {
    position: absolute;
    right: 0;
    top: 49%;
    transform: translate(0, -50%);
    height: 0.6em;
    width: 2rem;
    cursor: pointer;
    z-index: 99;

    &, &:hover {
        color: var(--color-tx-normal);
    }
}

.menu-toggle__bar--middle {
    opacity: 0;
}

.menu-toggle__bar {
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    right: 0;
    width: 100%;
    font-size: var(--fs-nav--l);
    height: 0.06em;
    background-color: var(--color-tx-normal);
    transition: all 0.3s ease;

    &.menu-toggle__bar--top {
        transform: translate(0, -0.25rem);
    }
    &.menu-toggle__bar--middle {
    }
    &.menu-toggle__bar--bottom {
        transform: translate(0, 0.25rem);
    }

    .menuIsOpen & {
        &.menu-toggle__bar {
            margin-top: 0.5rem;
        }
        &.menu-toggle__bar--top {
        transform: translate(0, 0) rotate(45deg);
        font-size: var(--fs-nav--l);
        }
        &.menu-toggle__bar--middle {
        opacity: 0;
        }
        &.menu-toggle__bar--bottom {
        transform: translate(0, 0) rotate(-45deg);
        font-size: var(--fs-nav--l);
        }
    }
}

/* || BLOCKS */

.blocks {
    display: flex;
    flex-direction: column;
    /* gap: var(--x-m); */
}

.block {
    max-width: var(--wrap-tx);
    width: 100%;
    margin: 0 auto;
    line-height: 1.2;
}

.block p {
    margin-bottom: var(--x-m);
}

.block h3 {
    text-align: center;
    font-size: var(--fs-l);
    font-style: italic;
    color: var(--color-tx-muted);
    margin-bottom: var(--x-l);
    margin-top: var(--x-m);
}
.block h4 {
    font-size: var(--fs-m);
    color: var(--color-tx-muted);
    margin-bottom: var(--x-m);
}
.block h5 {
    font-size: var(--fs-s);
    font-style: italic;
    color: var(--color-tx-muted);
    padding-left: var(--x-m);
    margin-bottom: var(--x-s);
}

.block strong {
    /* text-shadow: var(--shadow-yellow); */
    background-color: var(--color-bg-3);
}

.block a {
    text-shadow: var(--shadow-yellow);
}

.block--video,
.block--gallery,
.block--image,
.block--audio {
    max-width: var(--wrap-md);
    margin: var(--x-l) auto;
}

.block--list ul,
.block--textarea ul,
.block--smalltext ul {
    list-style:circle;
    padding-left: var(--x-m);
    margin-bottom: var(--x-m);
}

.block--line {
    padding: var(--x-l) 0;
}

.block--smalltext {
    font-size: var(--fs-s);
}


.block dl {
    margin-bottom: 1rem;
}
.block dt {
    font-weight: var(--bold);
}
.block dd {
    margin: 0;
}

/* || IMAGES */

img {
    width: 100%;
    vertical-align: bottom;
}

figcaption {
    font-size: var(--fs-s);
    text-align: center;
    margin-top: var(--x-s);
    color: var(--color-tx-muted);
}

/* ||  GALLERY */

.gallery {
    margin: 0;
    padding: 0;
}
.gallery__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--x-m);
}
.gallery__item {

}
.gallery__caption {
    
}

/* || VIDEO */

.video {
    margin: 0 auto;
    max-height: 800px;
    width: auto;
    display: flex;
    flex-direction: column;
}
.video video {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;

}
.video iframe {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: contain;
}

/* || AUDIO */

audio {
    width: 100%;
}

/* || CREDITS */


.credits {
    font-size: var(--fs-s);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.credits .block {
    line-height: 1.3;
}
.credits ul {
    margin-bottom: var(--x-m);
}
.credits strong {
    background: none;
    color: var(--color-tx-muted);
}

.logo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    margin: 2rem 0;
}
.logo img {
    max-height: 3rem;
    max-width: 8rem;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* || Template: ABOUT */



/* || Template: ENTRIES */

.entries__items .meta__item--category {
    display: none;
}
.entries__items .meta__item--date {
    display: block;
}

/* || Template: ENTRY */

.entry__header {
    padding: var(--x-l) 0;
}

.entry__cover__caption {
    text-align: right;
}

.entry__body {
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: 1fr var(--wrap-md) 1fr;
    padding-bottom: var(--x-l);
}
@media only screen and (max-width: 1280px) {
    .entry__body {
        display: block;
    }
}

.entry__meta {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: var(--x-m);
}
@media only screen and (max-width: 1280px) {
    .entry__meta {
        position: relative;
        top: 0;
        max-width: var(--wrap-tx);
        margin: 0 auto;
        margin-bottom: var(--x-l);
    }
}

.entry__credits,
.entry__related {
    padding-bottom: var(--x-l);
}

/* || Template: INDEX */

.index__menu {
    display: flex;
    flex-direction: column;
    gap: var(--x-m);
}
@media only screen and (max-width: 900px) {
    .index__menu__filters {
        display: flex;
        flex-direction: column;
    }
    .index__menu__view-sort {
        display: flex;
    }
}

.filter__group,
.sort__buttons,
.view__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--x-xs);
}

.index__items .meta__item--date {
    display: block;
}


