/* 
    Typefaces 
*/

@font-face {
    font-family: BianzhidaiBubble;
    src: url("../fonts/bianzhidai_noBG-Bubble.woff2") format("woff2"), url("../fonts/bianzhidai_noBG-Bubble.woff") format("woff"), url("../fonts/bianzhidai_noBG-Bubble.otf") format("otf");
    font-display: swap;
}

@font-face {
    font-family: BianzhidaiCube;
    src: url("../fonts/bianzhidai_noBG-Bubble.woff2") format("woff2"), url("../fonts/bianzhidai_noBG-Bubble.woff") format("woff"), url("../fonts/bianzhidai_noBG-Cube.otf") format("otf");
    font-display: swap;
}

@font-face {
    font-family: BianzhidaiRing;
    src: url("../fonts/bianzhidai_noBG-Ring.woff2") format("woff2"), url("../fonts/bianzhidai_noBG-Ring.woff") format("woff"), url("../fonts/bianzhidai_noBG-Ring.otf") format("otf");
    font-display: swap;
}

@font-face {
    font-family: BianzhidaiPearl;
    src: url("../fonts/bianzhidai_noBG-Pearl.woff2") format("woff2"), url("../fonts/bianzhidai_noBG-Pearl.woff") format("woff"), url("../fonts/bianzhidai_noBG-Pearl.otf") format("otf");
    font-display: swap;
}

@font-face {
    font-family: BianzhidaiStitches;
    src: url("../fonts/bianzhidai_noBG-Stitches.woff2") format("woff2"), url("../fonts/bianzhidai_noBG-Stitches.woff") format("woff"), url("../fonts/bianzhidai_noBG-Stitches.otf") format("otf");
    font-display: swap;
}

/* 
    Elements 
*/

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-margin-top: 0.5rem;
}

html {
    min-height: 100%;
}

body {
    min-height: calc(100svh - 1rem);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3em;
    font-weight: 600;
    letter-spacing: -0.03em;
}

main {
    min-height: 75vh;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

::selection {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar:hover {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, red, orange, yellow, green, cyan, blue, violet);
    border-radius: 0;
    border: 0;
}

*:focus-visible {
    outline: 1.5px solid gray;
    outline-offset: 2px;
    outline-width: 1.5px;
    outline-style: dashed;
}


a {
    color: inherit;
    text-decoration-thickness: 1.25px;
    text-underline-offset: 0.125em;
}

button {
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    align-self: flex-start;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: underline;
    color: inherit;
}

.colorize a:hover,
.colorize button:hover,
a.colorize:hover,
button.colorize:hover {
    color: black !important;
}

menu.no-style,
ul.no-style {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul {
    padding-inline-start: 0.5em;
    margin-block-start: 0.5em;
    margin-block-end: 2em;
    list-style-type: '\25CF';
}

ul li {
    padding-left: 0.75rem;
}

ul.no-style li {
    padding-left: 0;
}

ul.no-style ul li {
    padding-left: 1.5em;
}

ol {
    padding-inline-start: 1.5rem;
    margin-block-start: 0.5em;
    margin-block-end: 2em;
}

ol li {
    padding-left: 0.75rem;
}

img {
    max-width: 100%;
    height: auto;
    object-position: 50% 50%;
    image-rendering: pixelated;
}

input[type="search"] {
    border: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    width: 100%;
}

input[type="search"]::placeholder {
    color: gray;
}

input[type="submit"] {
    background-color: transparent;
    color: inherit;
    border: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-decoration: underline;
    letter-spacing: -0.03em;
    cursor: pointer;
}

/* 
    Typography 
*/

.text-option-1 {
    font-family: "BianzhidaiBubble", Arial, Helvetica, sans-serif;
}

.text-option-2 {
    font-family: "BianzhidaiCube", Arial, Helvetica, sans-serif;
}

.text-option-3 {
    font-family: "BianzhidaiRing", Arial, Helvetica, sans-serif;
}

.text-option-4 {
    font-family: "BianzhidaiPearl", Arial, Helvetica, sans-serif;
}

.text-option-5 {
    font-family: "BianzhidaiStitches", Arial, Helvetica, sans-serif;
}

.text-option-6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.text-option-7 {
    font-family: "CirrusCumulus", Helvetica, sans-serif;
}

/* Text Sizes */
.text-micro {
    font-size: 11px;
    line-height: 1.3em;
    letter-spacing: -0.005em;
}

.text-smaller {
    font-size: 13px;
    line-height: 1.3em;
    letter-spacing: -0.02em;
}

.text-small {
    font-size: 15px;
    line-height: 1.3em;
    letter-spacing: -0.02em;
}

.text-medium {
    font-size: 17px;
    line-height: 1.25em;
    letter-spacing: -0.03em;
}

.text-large {
    font-size: 20px;
    line-height: 1.25em;
    letter-spacing: -0.03em;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40rem) {
    .text-medium {
        font-size: 18px;
    }

    .text-large {
        font-size: 22px;
        line-height: 1.25em;
        letter-spacing: -0.03em;
    }
}

.text-uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.text-indented {
    margin: 0 0 0.75rem 0;
    padding-left: 1.25rem;
}

.text-italic {
    font-style: italic;
}

/* Kirby Text */

.kt p {
    margin-bottom: 1em;
}

.kt span.footnote {
    text-decoration: underline;
    vertical-align: super;
    font-size: 0.75em;
    line-height: 0.8em;
    padding: 0 0.35rem 0.5em 0.25rem;
    cursor: pointer;
}

.kt h3, 
.kt h4, 
.kt h5, 
.kt h6 {
    margin: 2rem 0 1rem;
}

.kt h3:first-child, 
.kt h4:first-child, 
.kt h5:first-child, 
.kt h6:first-child {
    margin: 0 0 1rem;
}

sup {
    font-size: 0.65em;
    line-height: 0.5em;
}

/* Utilities */

.align-items-center {
    align-items: center;
}

.flex {
    display: flex;
}

/* Tablet (> 768px) */
@media screen and (max-width: 48rem) {
    .hide-mobile {
        display: none !important;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 64rem) {
    .hide-desktop {
        display: none !important;
    }
}

/* Margin */
.margin-bottom-xs {
    margin-bottom: 0.25rem !important;
}

.margin-bottom-s {
    margin-bottom: 0.5rem !important;
}

.margin-bottom-m {
    margin-bottom: 1rem !important;
}

.margin-bottom-l {
    margin-bottom: 2rem;
}

/* Gap */
.gap-xs {
    gap: 0.25rem;
}

.gap-s {
    gap: 0.5rem;
}

/* 
    Header 
*/

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 0.5rem;
    
    background-color: rgba(255, 255, 255, 1);
    
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1.5rem calc(50vh - 7.5rem) 1fr auto;
    gap: 2rem;
}

.header.transparent {
    background-color: transparent;
}

.header.transparent:not(.open) svg * {
    fill: white !important;
    stroke: white !important;
}

.header.transparent .header-title {
    color: white;
}

.header.open.transparent .header-title {
    color: black;
}

.header.open {
    bottom: 0;
    background-color: white;
}

.header.open svg * {
    fill: black !important;
    stroke: black !important;
}

.header-title {
    display: flex;
    height: fit-content;
}

.header-title-logo {
    margin-right: 0.5rem;
}

.header-title-logo svg,
.header-title-logo img {
    width: 3.8rem;
    height: auto;
}

/* Header Menu */
.header-menu {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.header-menu-name {
    font-weight: 700;
}

.header-menu svg {
    width: 1rem;
}

.header-menu line {
    stroke-width: 3.5px;
}

.header.open .header-menu .top-line {
    transform: rotate(45deg);
    transform-origin: 6% 35%;
}

.header.open .header-menu .medium-line {
    display: none;
}

.header.open .header-menu .bottom-line {
    transform: rotate(-45deg);
    transform-origin: 13% 71%;
}

.header-nav {
    display: none;
    padding: 0;
}

.header.open .header-nav {
    display: block;
}

.header-nav-submenu {
    margin-bottom: 1.5rem !important;
}

.header-languages {
    display: flex;
    gap: 0.25rem;
}

.header-languages li {
    opacity: 0.5;
}

.header-languages li.active {
    opacity: 1;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40rem) {
    .header {
        background: transparent;
        width: calc(100vw / 2 - 0.5rem);
    }

    .header.transparent {
        color: white;
    }

    .header-nav {
        display: block;
    }

    .header-menu {
        display: none;
    }
}

/* Tablet (> 1024px) */
@media screen and (min-width: 64rem) {
    .header {
        bottom: 0;
        width: calc(100vw / 4 - 0.5rem);
        border: 0;
    }

}

/* Desktop (> 1280px) */
@media screen and (min-width: 80rem) {
    .header {
        width: calc(100vw / 4 - 0.5rem);
    }
    .header-nav {
        display: block;
    }
}

/* 
    Homepage 
*/

.homepage {
    padding-top: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    min-height: calc(100svh - 1rem);
}

.homepage-headline {
    grid-column: 1 / -1;
    height: 100%;
    /* overflow: hidden; */
}

.homepage-highlights-title:not(:first-child) {
    margin-top: 1.5rem;
}

.homepage-highlights-content {
    padding: 0.5rem 0 0 1rem !important;
}

.highlight {
    margin-bottom: 0.5rem;
}

/* Tablet (> 768px) */
@media screen and (min-width: 48rem) {
    .homepage {
        display: grid;
        padding-top: 0;
        grid-template-columns: repeat(8, 1fr);   
        grid-template-rows: auto 1fr auto;
        height: calc(100svh - 2rem);
        max-height: calc(100svh - 2rem);
        overflow: hidden;
    }

    .homepage-headline {
        grid-column: 4 / -1;
    }

    .homepage-highlights {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
        margin-left: 25vw;
        align-self: center;
        gap: 2rem 0.5rem;
    }

    .homepage-highlights-title {
        grid-column: 1;
        margin-top: 0 !important;
    }

    .homepage-highlights-content {
        grid-column: 2 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 !important;
    }

    .homepage-highlights-content.large {
        display: block;
        padding-right: 20vw !important;
        text-wrap: balance;
    }
}

/* 
    Page
*/

.page {
    padding-top: 2.25rem;
}

.page-cover {
    margin-bottom: 1rem;
}

.page-cover figure {
    margin: 0;
}

.page-header {
    position: relative;
    grid-column: 3 / -1;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    border-top: 1px solid black;
    padding: 0.25rem 0 1rem;
}

.page-header.double {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0.5rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.page-related {
    border-top: 1px solid black;
    margin-top: 3rem;
}

.page-related-title {
    padding-top: 0.25rem;
    margin-bottom: 1rem;
}

.page-aside {
    border-top: 1px solid black;
    margin: 2rem 0 4rem;
    padding-top: 0.5rem;
}

.page-aside-content {
    margin-bottom: 1em;
}

.page-children {
    margin-bottom: 4rem !important;
}

/* Laptop (> 640px) */
@media screen and (min-width: 40rem) {
    .page {
        padding-top: 0;
        min-height: calc(100svh - 1rem);
        
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto 1fr;
        gap: 2rem 0.5rem;
    }

    .page-header {
        border: 0;
        padding: 0;
    }
    
    .page-header.double {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .page-title {
        grid-column: 3/4;
        height: 1.5rem;
        margin-bottom: 0;
    }

    .page-tags {
        height: 1.5rem;
        margin-bottom: 0;
    }

    /* Content */
    .page-cover,
    .page-content {
        grid-column: 3 / -1;
    }

    .page-children {
        grid-column: 3 / -1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Aside */
    .page-aside {
        grid-column: 3 / -1;
        padding-right: 1.5rem;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 64rem) {
    .page-aside {
        grid-column: 2;
        grid-row: 2;
        align-self: flex-start;
        border-top: 0;
        margin-top: 0;
        padding-top: 0;
        position: sticky;
        top: 0;
    }

    .page-children {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footnotes */
.page-footnotes {
    border-top: 1px solid black;
    margin-top: 3rem;
}

.page-footnotes li::marker {
    cursor: pointer;
    text-decoration: underline;
}

.page-footnotes ol li {
    position: relative;
    list-style: none;
    margin-bottom: 0.5em;
}

.page-footnotes ol li .footnote-marker {
    position: absolute;
    left: -1.5em;
    top: 0;
    cursor: pointer;
    text-decoration: underline;
    content: counter(footnotes) ".";
    color: var(--before-color, black);
}

.page-footnotes ol li.footnote-marker:hover {
    color: black;
}


/* Page Background */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 1);
}

.page-background-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 400ms 200ms ease;
}

.page-background-item.active {
    opacity: 1;
    transition: 400ms ease;
}

.page-background-item-picture,
.page-background-item-picture-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    /* mix-blend-mode: overlay; */
}

.page-background-item-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: difference;
    background-image: linear-gradient(to bottom,
        #0A0A0A 0%,
        #282828 20%,
        #646464 40%,
        #141414 60%,
        #282828 79%,
        #787878 80%,
        #141414 100%
    );
}

.page-background-item-gradient.blues {
    background: linear-gradient(180deg, #33322E 7.37%, #543183 35.96%, #3D38EF 72%, #2DDFF1 100%);
}

.page-background-item-gradient.reds {
    background: linear-gradient(180deg, #D4FF27 0%, #FCD62A 13.7%, #FD611E 49.08%, #F03818 70.67%, #36312E 100%);
}

.page-background-item-gradient.greens {
    background: linear-gradient(180deg, #3940F2 7.37%, #24D7F7 30.39%, #24D7F7 41.97%, #6AE03C 72%, #D9F536 100%);
}

/* 
    Text Animation 
*/

.text-animation {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: flex-start;
    text-wrap: balance;
}

.word {
    display: flex;
    justify-content: center;
}

.word:not(:last-child):not(:first-child) {
    margin: 0 0.5rem;
}

.word:not(:last-child) {
    padding-right: 1.2rem;
}

.letter {
    display: block;
    letter-spacing: -0.70rem;
}

.dither-1 {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0.0) 20%);
    background-size: 8px 8px;
    background-repeat: repeat;
    padding: 0 0 0.5rem;
}

.dither-2 {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 25%, rgba(255, 255, 255, 0.0) 25%);
    background-size: 6px 6px;
    background-repeat: repeat;
    padding: 0.25rem 0 0;
}

.dither-3 {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 15%, rgba(255, 255, 255, 0.0) 15%);
    background-size: 8px 8px;
    background-repeat: repeat;
}

@media screen and (min-width: 40rem) {
    .word:not(:last-child):not(:first-child) {
        margin: 0 1rem;
    }
    
    .letter {
        letter-spacing: -0.75rem;
    }
}

/* 
    Components 
*/

/* Figure */
.figure {
    margin: 0;
}


.figure-picture {
    position: relative;
    width: 100%;
    height: auto;
}

.figure-picture-image {
    width: 100%;
    height: auto;
    display: block;
}

.figure-caption {
    margin-top: 0.125rem;
    display: flex;
    justify-content: space-between;
}

.figure-caption a {
    word-break: break-all;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40rem) {
    .figure.margin {
        margin: 2rem;
    }
}

/* Article */
.article {
    margin-bottom: 2rem;
}

.article-cover {
    aspect-ratio: 4/3;
    margin-bottom: 0.125rem;
}

.article-cover figure,
.article-cover picture,
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
    Blocks 
*/

.block-heading {
    padding: 0.25rem 0 0;
    margin: 3rem 0 2rem;
    scroll-margin-top: 0.5rem;
}

.block-heading.border-top {
    border-top: 1px solid black;
}

.block-heading:first-child {
    margin-top: 0;
}

.block-text p:not(:last-child) {
    margin-bottom: 0.75em;
}

.block-text li p {
    margin: 0;
}

.block-quote {
    margin: 1em 0 1.5em;
    padding: 0 1em;
}

.block-quote-footer {
    padding: 0.5em 0 0;
}

.block-image {
    margin: 2em 0 3em;
}

.block-image img {
    width: 100%;
    height: auto;
}

.block-gallery {
    margin: 2rem 0 2rem 0;
    padding: 0;
}

.block-gallery.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.block-gallery.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.block-gallery.logos .figure {
    padding: 1rem;
}

.block-gallery.logos .figure-picture-image {
    width: 12rem;
    min-width: 7rem;
    max-width: 14rem;
    max-height: 6rem;
    object-fit: contain;
    object-position: 50% 50%;
}

/* Tablet (> 768px) */
@media screen and (min-width: 48rem) {
    .block-quote {
        padding: 0 2em;
    }
    
    .block-image {
        margin: 2em;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 64rem) {
    .block-image {
        margin: 2em 0 3em;
        padding: 0 2em;
    }
}

/* 
    Footer
*/

.footer {
    border-top: 1px solid black;
    margin-top: 4rem;
}

/* Desktop (> 1024px) */
@media only screen and (min-width: 64rem) {
    .footer {
        margin-left: calc(50vw - 0.5rem);
    }
}


/* 
    Cookie Consent 
*/
/* 
.cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    border-top: 1px solid gray;
}

.cookie.hidden {
    display: none;
}

.cookie-text {
    margin-right: 0.5rem;
} */