/*
Theme Name: Theresia Philipp
Author: formdusche — studio für gestaltung
Author URI: https://formdusche.de
Description: Built with love in Berlin
Version: 2025.12.15
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theresiaphilipp
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@font-face {
    font-family: 'Cossette';
    src: url('./fonts/CossetteTexte-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cossette';
    src: url('./fonts/CossetteTexte-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_24pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    color-gamut: srgb;
    color-scheme: light;
}


:root {
    /* Colors */
    --blue: var(--wp--preset--color--blue);
    --dark-blue: var(--wp--preset--color--dark-blue);
    --secondary: var(--wp--preset--color--secondary);
    --black: var(--wp--preset--color--black);
    --white: var(--wp--preset--color--white);
    --dark-white: #ededed;

    /* Font Sizes */
    --font-size-s: var(--wp--preset--font-size--small);
    --font-size-m: var(--wp--preset--font-size--medium);
    --font-size-l: var(--wp--preset--font-size--large);
    --font-size-xl: var(--wp--preset--font-size--xl);
    --font-size-xxl: var(--wp--preset--font-size--xxl);

    /* Font Family */
    --cossette: var(--wp--preset--font-family--cossette);
    --inter: "Inter", var(--cossette), sans-serif;

    /* Content Width */
    --content-narrow: var(--wp--style--global--content-size);
    --content-wide: var(--wp--style--global--wide-size);

    --illustration-height: 400px;

    /* Spacing */
    --spacing-s: var(--wp--preset--spacing--small);
    --spacing-m: var(--wp--preset--spacing--medium);
    --spacing-l: var(--wp--preset--spacing--large);
    --spacing-xl: var(--wp--preset--spacing--xl);
    --spacing-xxl: 150px;


    --debug: 1px dotted rgba(255, 0, 0, 0.2);

    /* Waveform */
    --play-size: 70px;
}

@media screen and (max-width: 1000px) {
    :root {
        /* Content Width */
        --content-narrow: calc(0.6 * var(--wp--style--global--content-size));
    }
}

.no-scroll {
    overflow: hidden;
    pointer-events: none;
}

/* 
============================================================

Typography

============================================================ 
*/

a {
    text-decoration: none;
    color: inherit
}

.inter-symbol {
    display: inline-block;

    transition: translate 0.125s cubic-bezier(0.76, 0, 0.24, 1);
    color: inherit;
    font-family: "Inter", sans-serif;
    margin-left: 0.25em;
    translate: 0 -0.05em;
}

.inter-symbol.arr-r:before {
    content: "→";

}

.inter-symbol.arr-tr:before {
    content: "↗";

}


a:hover .inter-symbol.arr-r {
    translate: 0.25em -0.05em;
}

a:hover .inter-symbol.arr-tr {
    translate: 0.25em -0.25em;
}

.section-h,
.event-description h3,
.release-title,
.composition-title {
    font-weight: 700;
    text-transform: uppercase;
}

/* 
============================================================

Body

============================================================ 
*/

body,
html {
    background: var(--white);
    color: var(--black);
    font-size: var(--font-size-s);
    font-family: var(--cossette);
}

/* 
============================================================

Section Themes

============================================================ 
*/

.blue-on-white {
    color: var(--blue);
    background: var(--white);
}

.blue-on-white .disabled .wp-block-button__link {
    color: var(--white);
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.white-on-blue {
    color: var(--white);
    background: var(--blue);
}

.white-on-blue .wp-block-button__link {
    color: var(--blue);
    background: var(--white);
}

.white-on-blue .disabled .wp-block-button__link {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.blue-on-secondary {
    color: var(--blue);
    background: var(--secondary);
}

.blue-on-secondary .wp-block-button__link {
    color: var(--white);
    background: var(--blue);
}

.white-on-black {
    color: var(--white);
    background: var(--black);
}

.white-on-black .wp-block-button__link {
    color: var(--black);
    background: var(--white);
}


/* 
============================================================

Header

============================================================ 
*/

/* Menubar */

header {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100vw;
    background: var(--blue);
    padding: 1rem;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    z-index: 100;
    align-items: center;
    pointer-events: all;
    font-weight: bold;
    text-transform: uppercase;
}

ul#menubar-nav {
    display: flex;
    list-style: none;
    gap: var(--spacing-m);
}

ul#menubar-nav button {
    appearance: none;
    border: none;
    outline: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    background: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

ul#menubar-nav button:focus,
header a:focus,
footer a:focus,
ul#menubar-nav button:hover,
header a:hover,
footer a:hover {
    background: var(--dark-blue);
    outline: 0.2em solid var(--dark-blue);
    border-radius: 3px;
}

/* Fullscreen Navigation */

nav#main-nav {
    padding: var(--spacing-s);
    width: 100vw;
    height: 100vh;
    background: var(--blue);
    z-index: 99;
    flex-direction: column;
    color: var(--white);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    gap: var(--spacing-s);
    pointer-events: all;
}

nav#main-nav.visible {
    display: flex
}

#main-nav-primary {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    gap: 0em;
    flex-direction: column;
    align-items: end;
    list-style: none;
}

#main-nav-secondary {
    margin-top: 1em;
    display: flex;
    gap: 1.25em;
    flex-direction: column;
    align-items: end;
    list-style: none;
}

#main-nav-primary ul,
#main-nav-secondary ul {
    list-style: none;
    text-align: right;
}

nav#main-nav a {

    line-height: 1em;
    display: inline-block;
    padding: 0.0625em;
}

nav#main-nav a:hover {
    background: var(--dark-blue);
    outline: 0.1em solid var(--dark-blue);
    border-radius: 3px;
}

/* 
============================================================

Sections

============================================================ 
*/

.home-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    gap: var(--spacing-l);
    min-height: 100vh;
    padding: var(--spacing-xxl) var(--spacing-l);
}

.home-section .column.content {
    width: 100%;
    max-width: var(--content-narrow);
    justify-content: stretch;
    flex: 0 1 var(--content-narrow)
}

.home-section .column.content .wp-block-button,
.home-section .column.content .wp-block-button .wp-block-button__link {
    width: 100%;
}

.home-section .column.content .wp-block-button {
    margin-top: var(--spacing-xl);
}

.home-section .column.left,
.home-section .column.right {
    flex: 1;
    width: 100%;
}

.home-section .column.left {
    padding: 0;
    display: flex;
    justify-content: center;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.content-list .wp-block-button,
.content-list .wp-block-button .wp-block-button__link {
    width: 100%;
}

.sticky-box {
    position: sticky;
    height: var(--illustration-height);
    top: calc(50% - 0.5 * var(--illustration-height));
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-box h2 {
    text-align: center;
}



/* Intro */

#intro {
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-l);
    padding-bottom: calc(var(--spacing-l) + var(--header-height));
    width: 100vw;
    height: 100vh;
    position: relative;
}

@supports (mix-blend-mode:multiply) {

    #intro-noise {
        background: url(./css/noise.gif);
        width: 100%;
        height: 100%;
        position: absolute;
        pointer-events: none;
        top: 0;
        left: 0;
        mix-blend-mode: multiply;
    }
}

#intro-frame {
    background: var(--white);
    max-width: var(--content-narrow);
    width: 100%;

    height: 100%;
    max-height: calc(1.25 * var(--content-narrow));
    color: var(--blue);
    font-size: var(--font-size-s);
    justify-content: space-between;
    flex-direction: column;
    z-index: 1;
}


.intro-section {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-section.logo {

    align-items: start;
    justify-content: start;
    width: 100%;
    height: 50%;
    aspect-ratio: 2 / 1;
}

#intro-text-photo {
    display: flex;
    width: 100%;
    gap: var(--spacing-m);
    padding: var(--spacing-m);
    height: 100%;
    align-self: flex-end;
    justify-content: flex-end;
}

#intro-text-photo h2 {
    font-size: var(--font-size-s);

    flex: 0 0 2;
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    font-weight: bold;
    text-transform: uppercase;
}


#intro-text-photo h2:first-child {
    align-items: start;
}

#intro-text-photo #intro-photo {
    flex: 0 0 1;
    width: 70%;
}

#intro-text-photo #intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#intro-logo-interactive {
    width: 100%;
    display: flex;
    position: relative;
    max-width: var(--content-narrow);
    height: 100%;
    max-height: calc(0.5 * var(--content-narrow));
    aspect-ratio: 2 /1;
}

#logo-interactive {
    width: 100%;

    position: relative;
    background: transparent;

}

#logo-interactive canvas {

    width: 100%;
    aspect-ratio: 2 / 1;
}


/* Releases */

#releases-intro {
    display: flex;
    align-items: center;
}

.release,
.project {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--spacing-l);
    width: 100%;
}

.release .release-cover img,
.project .project-cover img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
}

.release .release-cover .cover-placeholder,
.project .project-cover .cover-placeholder,
.release-single .cover-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-white);
    color: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-m);
}

.release .release-info {
    padding-top: var(--spacing-s);
    background: var(--white);
}

.release .release-meta {
    font-weight: 700;
}

.release .release-links,
.project .project-links {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    padding-top: var(--spacing-s);
}



/* Vita */

#vita #vita-text {
    display: flex;
    gap: var(--spacing-s);
    flex-direction: column;
}

#vita #vita-photo img {

    width: 100%;
    height: auto;
    display: block;
}

#vita-media {
    padding: var(--spacing-l);
    padding-bottom: calc(2 * var(--spacing-xxl));
    ;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: calc(2 * var(--spacing-xxl));
}

.vita-row {
    display: flex;
    justify-content: space-between;
    max-width: var(--content-wide);

    width: 100%;
    align-items: center;
    margin: auto 0;
}


.vita-row img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.vita-row.big img {
    max-width: var(--content-wide);
}


/* Compositions*/

#compositions {
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
}

/* Live */

.event {
    display: flex;
    gap: var(--spacing-m);
}

.event-meta {
    font-weight: bold;
    font-size: var(--font-size-s);
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.event-description {
    flex: 0 0 var(--content-narrow);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

.event-link {
    flex: 0 0 20%;

}

#live {
    min-height: auto;
}

#live .event {
    flex-direction: column;
    gap: var(--spacing-s);
}

#live .event .event-description {
    flex: 0 0 0;
}

#live .event .disabled {
    display: none;
}



/* 
============================================================

Illustration

============================================================ 
*/


.home-section .animation {
    width: 100%;
    max-width: var(--illustration-height);
}

.animation video {
    width: 100%;
}

/* 
============================================================

Pages

============================================================ 
*/

.any-page {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

.any-page h1,
.any-page h2 {
    font-weight: 700;
    text-transform: uppercase;
}

.any-page h2,
.any-page h3,
.any-page h4,
.any-page h5,
.any-page h6 {
    margin-top: var(--spacing-m);
}

.page-intro {
    width: 100vw;
    height: 100vh;
    padding: var(--spacing-l);
    padding-bottom: calc(var(--spacing-l) + var(--header-height));
    align-items: center;
    display: flex;
}

.page-intro h1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    text-transform: uppercase;
}

.page-intro.half-height {
    min-height: 50vh;
    height: 100%;
}

.page-intro .intro-animation {
    width: 100%;
    width: 300px;
    height: 300px;
    display: block;
}

.page-intro h1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: var(--spacing-l);
}

.page-intro.half-height h1 {
    text-align: center;
    justify-content: center;
}

.page-intro h1 .animation {
    max-height: 65vh;
    max-width: 65vh;
    display: flex;
    justify-content: center;

    align-items: center;
    height: 100%;
    width: 100%;
}

.page-intro h1 .animation video,
.page-intro h1 .animation video img {
    width: 100%;
    height: 50%;
    object-fit: contain;
    display: block;
}

.page-intro h1 .animation img {
    object-fit: contain;
}

.page-content {
    padding: var(--spacing-xxl) var(--spacing-l);
    width: 100%;
    max-width: var(--content-wide);
    margin: 0 auto;
}

#live-intro {
    background: var(--secondary);
    display: flex;
    align-items: center;
}

/* Releases */


:target {
    scroll-margin-top: var(--spacing-xxl);
}

.release-single {
    display: flex;
    gap: var(--spacing-l);
}

.release-single-year {
    display: flex;
    align-items: center;
}

.release-single-cover {
    flex: 0 0 var(--content-narrow);
}

.release-single-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.release-single-info {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-s);
}

.release-single .wp-block-button {
    display: flex;
    gap: var(--spacing-s);
}

.release-single .wp-block-button .wp-block-button__link {
    white-space: nowrap;
}

/* Compositions */

#compositions-intro h1 {
    flex-direction: column;
    gap: var(--spacing-m);
}

#compositions-intro h1 span {
    font-size: var(--font-size-m);
}

#compositions-intro h1 .animation {
    margin-bottom: 1em;
}

.compositions {
    gap: var(--spacing-xxl);
}

.composition-description {
    padding-left: var(--play-size);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

#compositions .column.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#compositions .column.content .wp-block-button {
    margin-top: 0;
}

/* Vita */

#vita-intro {
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
}

#vita-intro h1 {
    text-align: center;
    width: 100%;
    justify-content: center;
}

.vita-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
}


.vita-content>* {
    width: 100%;
    display: flex;
    gap: var(--spacing-m);
    justify-content: space-between;
    align-items: start;
}

.vita-content>*>p {
    flex: 0 0 1;
}

/* Projects */

#page-projects :target {
    scroll-margin-top: 0;
}

#page-projects .project {
    position: relative;
    top: 0;
}

#page-projects .project .project-image {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#page-projects .project .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#page-projects .project .project-image h2 {
    position: absolute;
    width: calc(100% - 2 * var(--spacing-l));
    text-align: right;
    top: 50%;
    translate: 0 -50%;
    color: var(--white);
}

#page-projects .project .project-description {
    gap: var(--spacing-m);
    display: flex;
    width: 100%;
    max-width: var(--content-wide);
    margin: 0 auto;
    justify-content: space-between;
    padding: var(--spacing-l);
    padding-bottom: var(--spacing-xxl);
}

#page-projects .project .description-content {
    max-width: var(--content-narrow);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

#page-projects .project .empty,
#page-projects .project .description-link {
    flex: 1 1 0;
}

/* Hide Canvas */

.page #defaultCanvas0 {
    display: none;
}

.home #defaultCanvas0,
#vita-media #defaultCanvas0 {
    display: initial;
}


/* 
============================================================

Footer

============================================================ 
*/

footer {
    background: var(--secondary);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-l);
    padding-bottom: calc(var(--spacing-l) + var(--header-height));
    width: 100vw;
    height: 100vh;
}

#footer-frame {
    max-width: var(--content-narrow);
    width: 100%;
    height: 100%;
    display: flex;
    max-height: var(--content-narrow);
    font-size: var(--font-size-s);
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: var(--spacing-m);
}

.footer-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.footer-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
}

.footer-top img {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.legal {
    display: flex;
    width: 100%;
    justify-content: space-between;
    list-style: none;
}



/* 
============================================================

Media Queries

============================================================ 
*/

@media screen and (max-width: 760px) {
    :root {
        --content-narrow: 500px;
        --spacing-xxl: 80px;
    }

    .home-section {
        flex-direction: column-reverse;
    }

    #intro-frame {
        max-height: 70vh;
    }

    #intro-text-photo>* {
        text-align: center !important;
    }

    #intro-text-photo {
        flex-direction: column;
        width: 80%;
        float: 0 0 1;
        align-items: center;
    }

    #intro-text-photo h2 {
        width: 100%;
        align-items: center !important;
    }

    #intro-text-photo *:nth-child(2) {
        order: 1;
        width: 100%;
    }

    #intro-text-photo *:nth-child(1) {
        order: 2;
    }

    #intro-text-photo *:nth-child(3) {
        order: 2;
    }

    .project .project-image {
        height: 50vh;
    }

    .project .project-description {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .project .project-description .empty {
        display: none;
    }

    .sticky-box {
        height: auto;
        width: 100%;
        padding-bottom: var(--spacing-l);
    }

    .sticky-box h2 {
        width: 100%;
    }

    .content-list {
        gap: var(--spacing-xxl)
    }

    .event,
    .release-single {
        flex-direction: column;
    }

    .event-meta {
        flex-direction: row;
        gap: var(--spacing-l)
    }

    .event-description {
        flex: 0 0 0;
    }

    .page-intro h1,
    .page-intro h1 .animation,
    .page-intro h1 .animation video,
    .page-intro h1 .animation video img {
        height: 100%;
    }

    .page-intro,
    .page-intro h1 {
        flex-direction: column;
    }

    .vita-row.small {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .vita-row.small img {
        width: 100%;
        max-width: 100%;
    }

    .vita-row.small #intro-logo-interactive {
        width: 70%;
    }
}