/* FONTS */

@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Road+Rage&family=Space+Grotesk:wght@300..700&family=Special+Elite&display=swap');

@font-face {
    font-family: 'CookieMonster';
    src: url('https://raiderk.ing/fonts/cookie-monster.ttf') format('truetype');
}

:root {
    --z-nav: 100;
    --z-nav-button: 105;

    --z-overlay: 101;
    --z-panel: 102;
    --z-button: 103;
}

@property --sidebar-width {
    syntax: '<number>';
    initial-value: 0; /* rem scale, calculated later with calc(var(--sidebar-width) * 1rem)*/
    inherits: true;
}

@keyframes openSidebar {
    from {
        --sidebar-width: 0
    }
    to {
        --sidebar-width: 16;
    }
}

@keyframes closeSidebar {
    from {
        --sidebar-width: 16;
    }
    to {
        --sidebar-width: 0
    }
}

/* GLOBALS */

html, body {
    margin: 0;
    padding: 0;
    background-color: #FFEDD8;
    font-family: 'Space Grotesk','Lucida Grande','Lucida Sans Unicode',Verdana,Helvetica,sans-serif,'GNU Unifont';
}

h1, h2, h3, h4 {
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

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

p {
    margin: 0;
    padding: 0;
}

img {

}

img.icon.social {
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    opacity: 0.9;
    display: inline-block;
}

img.icon.social.background-dark {
    background: #111;
    border-radius: 50%;
    border: 4px solid #111;
}

/* NAV */

body > nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-nav);
    background-color: #00ff00;
}

body > nav > div {
    position: absolute;
    top: 1rem;
    left: 1rem;

    width: fit-content;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    cursor: pointer;
    padding: 0.6rem;
    box-sizing: border-box;

    /*background-color: #240A34;*/
    background-color: #ffd5a6;
    border: 1px solid #ffc480;
    border-radius: 0.5rem;

    z-index: var(--z-nav-button);
}

body:has(nav > details[open]) > nav > div {
    background-color: transparent;
    border: none;
}

body > nav > div > div {
    width: 1rem;
    height: 0.25rem;
    margin: 0.125rem 0.25rem;
    background-color: purple;
}

body:has(nav > details[open]) > nav > div > div {
    /*background-color: #0f0;*/
}

body > nav > details {
    position: relative;
}

body > nav > details > summary {
    list-style: none;
    /*position: relative;*/
}

body > nav > details[open] > summary {
    background: none;
    border: none;
    box-sizing: border-box;
    background: hsla(277deg, 81%, 5%, 0.75);
    position: fixed;
    inset: 0;
    width: 100dvw;
    margin: 0;
    padding: 1rem;
    align-items: start;
    justify-content: start;
}

body > nav > details > ul {
    position: fixed;
    top: 0;
    left: 0;

    box-sizing: border-box;
    width: clamp(16rem, 24rem, 40dvw);
    height: 100dvh;
    margin: 0;
    padding: 4rem 1rem 0;

    list-style: none;

    transform: translateX(-110%);
    transition: transform 0.2s ease-in, opacity 0.3s ease-in;
    will-change: transform, opacity;
    z-index: var(--z-panel);

    color: #EABE6C;
    background: #240A34 linear-gradient(to right, hsla(277deg, 81%, 5%, 0.75) 0%, #240A34 96%, hsla(277deg, 81%, 5%, 0.75) 100%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

body > nav > details[open] > ul {
    transform: translateX(0);
    animation: fade .15s ease-out;

}

body > nav > details > ul > li {
    line-height: 1.5;
    font-size: 1.5rem;
    font-family: 'Bebas Neue', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';

    width: 100%;
}

body > nav > details > ul > li:hover {

}

body > nav > details > ul > li:last-of-type {
    margin-top: auto;
}

body > nav > details > ul > li > * {

}

body > nav > details > ul > li > a {
    padding: 0.75em 1em;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

body > nav > details > ul > li > a[data-selected="true"] {
    color: #bf307a;
}

body > nav > details > ul > li:hover > a {
    transform: translateY(-0.25em);
    transition: 0.25s;
    color: #ebad3b;
    background: rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

body > nav > details > ul > li > p {
    color: hsl(15 50% 60% / 1);
    /*text-align: center;*/
    padding: 0.75em 1em;
    font-family: Breakable, sans-serif;
}

body > nav > details > ul > li > p::before {
    content: '✨ ';
}

body > nav > details > ul > li > p::after {
    content: ' ✨';
}

body > nav > details > ul > li > div.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*gap: 0.75rem;*/
    justify-content: space-between;
    padding: 5rem 1rem 2rem;
    gap: 1rem;
}

body > nav > details > ul > li > div.socials > * {
    /*flex: 1;*/
}

body > nav > details > ul > li > div.socials img {
    width: 32px;
    max-width: initial;
    height: 32px;
    margin: 0;
    padding: 0;
    opacity: 90%;
}

body > nav > details > ul > li > div.socials .twitter {
    width: 32px;
    height: 32px;
}

body > nav > details > ul > li > div.socials .twitter img {
    width: 24px;
    height: 24px;
    padding: 4px;
}

/*body > nav > details > div.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

body > nav > details > div.socials > * {

}

body > nav > details > div.socials img {
    width: 32px;
    max-width: initial;
    height: 32px;
    margin: 0;
    padding: 0;
    opacity: 90%;
}

body > nav > details > div.socials .twitter img {
    width: 24px;
    height: 24px;
}*/

@keyframes fade {
    from { opacity:0; transform:translateY(-4px); }
    to { opacity:1; transform:none; }
}

body > header {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #240A34;
    color: #EABE6C;
    padding: 1em;
    gap: 1em;
}

body > header h1 {
    font-family: "Satisfy", cursive;
    font-weight: normal;
    font-size: 3em;
}

body > header h2 {
    font-family: "Satisfy", cursive;
    font-weight: normal;
}

body > header nav {
    width: 100%;
}

body > header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 70%;
}

body > header nav ul li {
    flex-grow: 1;
    font: 1.25em/1.125 'Bebas Neue','Lucida Grande','Lucida Sans Unicode',Verdana,Helvetica,sans-serif,'GNU Unifont';
    text-align: center;
}

body > header nav ul li a[data-selected="true"] {
    color: #e62588;
}

/* CONTENT */

body > main {
    padding: 1em;
    box-sizing: border-box;
    max-width: 100vh;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100dvh - 5.75rem);
}

body > main h1, body > main h2 {
    padding: 0.25em;
}

body > main > header {

}

body > main > main > h1 {
    font-family: "Special Elite", sans-serif;
    font-weight: normal;
}

body > main > main > article > h1 {
    font-family: "Amatic SC", sans-serif;
    font-size: 2.5em;
}

body > main article img {
}

/* LARP */

body > main.larp {

}

body > main.larp img {
    display: block;
    width: fit-content;
    max-width: 70%;
    border-radius: 1em;
    margin: 1em auto;
}

/* WORKS */

figure.work.book {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    background-color: #ad8fbf;
    gap: 4em;
    border: 0.25em solid #240A34;
    position: relative;
    margin: 0 auto;
    max-height: 80vh;
    max-height: calc(round(nearest, 80vh, 2px) + 1px);
    /*width: 74vw;*/
    width: calc(round(nearest, 74vw, 2px) + 1px);
    height: calc(round(nearest, 74vw, 2px) + 1px);
}

figure.work.book > * {
    padding: 1em;
}

figure.work.book .back, figure .front {
    flex: 4;
}

figure.work.book .spine {
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    max-width: 80vh;
    max-width: calc(round(nearest, 80vh, 2px) + 1px);
    width: calc(round(nearest, 74vw, 2px) + 1px);
    height: 4em;
    border: 1em solid transparent;
    border-top: 1em solid #240A34;
    border-bottom: 1em solid #240A34;
    vertical-align: center;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(90deg);

    background-color: #f00;
}

figure.work.book .spine .subspine {
    /*transform-origin: 0 0;
    transform: rotate(90deg);*/
}

figure.work.book .front {
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure.work.book .front h1 {

}

/* WORK - POSTER */

a.work {
    display: block;
    margin: 2em;
}

figure.work.poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #EABE6C;
    gap: 1.0em;
    border: 0.25em solid #240A34;
    padding: 1em;
    margin: 0 auto;
    max-width: 80vw;
    width: 55vh;
    height: 80vh;
    border-radius: 0.25em;
    box-sizing: border-box;
}



figure.work.poster .title, figure.work.poster .subtitle {
    flex-grow: 0;
}

figure.work.poster .summary {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5em;
}

figure.work.poster .summary p {
    padding: 0;
    margin: 0.4em 0;
}

figure.work.poster blockquote {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0.5em;
    border-left: 4px solid #b60;
    padding-left: 1em;
}

figure.work.poster blockquote p:first-of-type {
    margin-top: 0;
}

figure.work.poster blockquote p:last-of-type {
    margin-bottom: 0;
}

figure.work.poster > * {
    /*margin: 1em;*/
}

figure.work.poster .title {
    font-size: 2.5em;
    font-weight: bold;
    font-family: "Satisfy", cursive;
    text-align: center;
    margin: 2.5em 1em 0.5em;
    flex-grow: 0.25;
}

figure.work.poster .subtitle {
    margin: 1em;
}



/* FOOTER */

body > footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #240A34;
    color: #EABE6C;
    padding: 0.75rem;
    gap: 0.75rem;
}

body > footer > p {
    line-height: 1.5;
}

body > footer .socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

body > footer .socials > * {
    flex: 1;
}

body > footer .socials img {
    width: 32px;
    max-width: initial;
    height: 32px;
    margin: 0;
    padding: 0;
    opacity: 90%;
}

body > footer .socials .twitter img {
    width: 24px;
    height: 24px;
    padding: 4px;
}