/*

Theme Name: JF Discreet Theme

Author: Joana Franco

Description: Theme for Joana Franco's website.

Version: 1.0

*/

/*-------------------------------------------------------------------------------
0. VARIABLES
-------------------------------------------------------------------------------*/

:root {
    --color-light: rgb(255, 255, 255);
    --color-mid: rgb(240, 240, 240);
    --color-dark: rgb(0, 0, 0);
    --unit-L: 100px;
    --unit-M: 60px;
    --unit-S: 20px;
    --unit-XS: 10px;
    --content-wrapper-padding: 20px;
    --nav-side-width: 250px;
    --fontsize-S: 12px; /* 9pt */
    --fontsize-M: 16px; /* 12pt */
    --fontsize-L: 32px; /* 24pt */

}

/*-------------------------------------------------------------------------------
1. GENERAL
-------------------------------------------------------------------------------*/

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--color-dark) var(--color-light);
    scrollbar-width: thin;
    border-right: 1px solid var(--color-dark);
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-family: "Inter", sans-serif;
    font-size: var(--fontsize-S);
    line-height: 1.4;
    font-weight: 200;
} body:has(#joanafranco) {
    background-color: var(--color-light);
}

p {
    font-size: var(--fontsize-M);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer !important;
} p a, li a {
    text-decoration: underline;
}

p + p {
    margin-top: var(--unit-S);
}

h1, h2, h3, h4, h5, h6 {
    display: inline-block;
}

h1 {
    font-family: "Lora", serif;
    font-size: var(--fontsize-L);
    font-weight: 400;
    text-wrap: balance;
}

h2 {
    font-size: var(--fontsize-L);
    font-weight: 200;
}

h3 {
    font-size: var(--fontsize-M);
    font-weight: 600;
}

h4 {
    font-size: var(--fontsize-M);
    font-weight: 200;
}

h5 {
    font-size: var(--fontsize-S);
    font-weight: 600;
    /*text-decoration: underline;*/
} a h5 {
    text-decoration: underline;
}

h6 {
    font-size: var(--fontsize-S);
    font-weight: 200;
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
    max-width: max-content;
    max-height: max-content;
}

video {
    width: 100%;
}

iframe {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
} iframe.video {
    height: auto;
    aspect-ratio: 16/9;
} iframe.pdf {
    height: calc(100vh - 2 * var(--unit-S) - 25px);
    border: 1px solid var(--color-dark);
} iframe.p5js {
    height: calc(100vh - 2 * var(--unit-S) - 25px);
}

/*-------------------------------------------------------------------------------
1.1. WORDPRESS CUSTOMS
-------------------------------------------------------------------------------*/

.is-vertically-aligned-top {
    align-self: flex-start !important;
} .is-vertically-aligned-bottom {
    align-self: flex-end !important;
} .aligncenter {
    margin: auto;
    text-align: center;
} .aligncenter img {
    /* width: auto;
    height: auto; */
} .has-text-align-center {
    text-align: center;
} .has-text-align-right {
    text-align: right;
} div.wp-block-image {
    width: 100%;
} div.wp-block-spacer {
    width: 100%;
} .wp-block-list {
    list-style-position: inside;
} .wp-block-list li:before {
    content: "";
    margin-left: var(--unitS);
}

/*-------------------------------------------------------------------------------
1.2. THEME CUSTOMS
-------------------------------------------------------------------------------*/

.lora {
    font-family: "Lora", serif;
}

.content-wrapper {
    padding: var(--content-wrapper-padding);
} body:has(nav.side) .content-wrapper {
    margin-left: var(--nav-side-width);
}

main {
    width: 100%;
    max-width: 860px;
    margin: auto;
    padding: var(--unit-L) 0;
}

.image-cursor {
    height: 60px;
    width: auto;
    position: absolute;
    z-index: 999;
    display: none;
}

.none {
    display: none;
}


/*-------------------------------------------------------------------------------
2. HEADER & FOOTER
-------------------------------------------------------------------------------*/

nav.side {
    width: var(--nav-side-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: scroll;
    padding: var(--unit-S);
    padding-right: calc(var(--unit-S) + 5px);
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-size: var(--fontsize-S);
    line-height: 1.2;
    font-weight: 200;
    text-wrap: balance;
    background-color: var(--color-light);
    border-right: 1px solid var(--color-dark);
    scrollbar-color: var(--color-dark) var(--color-light);
    scrollbar-width: thin;
} nav.side .type {
    margin-bottom: 8px;
    font-weight: 400;
} nav.side .term {
    margin-top: 20px;
    margin-bottom: 4px;
    font-weight: 200;
} nav.side .post {
    margin-bottom: 5px;
    font-weight: 600;
} nav.side .post:hover,
nav.side .post.current {
    text-decoration: underline;
}

nav.top {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    padding: 5px var(--unit-S) 3px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--color-light);
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-dark);
    border-right: 1px solid var(--color-dark);
    font-size: var(--fontsize-S);
    font-weight: 400;
} body:has(nav.side) nav.top {
    width: calc(100% - var(--nav-side-width));
} nav.top .pages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/*-------------------------------------------------------------------------------
3. PAGES
-------------------------------------------------------------------------------*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px
} .gallery div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
} .gallery img {
    display: block;
    max-height: 300px;
    width: auto;
    max-width: 100%;
}

/*-------------------------------------------------------------------------------
3.1. FRONT-PAGE
-------------------------------------------------------------------------------*/

main#joanafranco {
    max-width: 100%;
}

section.index {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: var(--unit-M) var(--unit-S);
}

.posttype {
    width: 50%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--unit-M);
} .posttype .label {
    font-weight: 600;
}

.block {
    display: flex;
    flex-direction: column;
    gap: var(--unit-XS);
}

.term {
    font-weight: 200;
    text-wrap: balance;
} 


main#joanafranco .info {
    text-wrap: balance;
} main#joanafranco .image-cursor {
    display: none;
}

/*-------------------------------------------------------------------------------
4. SINGLES
-------------------------------------------------------------------------------*/

main.single {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

main.single .thumbnail {
    width: 100%;
    margin: auto;
} main.single.design .thumbnail {
    max-width: 300px;
}

main.single section.info {
    display: flex;
    flex-direction: column;
    gap: var(--unit-M);
    text-align: center;
} main.single section.info .other {
    text-wrap: balance;
}

main.single section.design {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
} main.single section.design img.capas-de-albuns {
    height: 255px;
    width: auto;
} main.single section.design img.capas-de-albuns:nth-child(4) {
    border-radius: 50%;
} main.single section.design img.cartazes {
    height: 540px;
    width: auto;
} 

main.single section.link a {
    display: block;
    margin: auto;
    border: 1px solid var(--color-dark) !important;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 2px 8px;
    transition: 400ms;
    cursor: pointer;
    width: fit-content;
} main.single section.link a:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

main.single section.texts {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: var(--unit-L);
} main.single .sinopse {
    width: 100%;
    max-width: 600px;
    margin: auto;
    font-family: "Lora", serif;
    text-align: center;
} main.single .creditos {
    width: fit-content;
    max-width: 600px;
    margin: auto;
    text-align: justify;
} main.single .creditos span {
    font-weight: 400;
}

main.single section.content {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 100px;
}


/*-------------------------------------------------------------------------------
5. ARCHIVES
-------------------------------------------------------------------------------*/



/*-------------------------------------------------------------------------------
6. 404 + SEARCH
-------------------------------------------------------------------------------*/

main.page404, main.search {
    display: flex;
    flex-direction: column;
    gap: var(--unit-M);
}

form.searchform div {
    display: flex;
    flex-direction: column;
    gap: var(--unit-XS);
    width: 100%;
}

input:not([type="submit"]), textarea, select {
    padding: 5px;
    border: 1px solid var(--color-dark) !important;
    width: 100%;
    background-color: var(--color-mid) !important;
    color: var(--color-dark) !important;
    font-size: var(--fontsize-M);
    font-family: "Inter", sans-serif;
}

.forminator-error {
    margin-bottom: var(--unit-S);
}

.forminator-error-message {
    display: block;
    margin-top: 5px;
    color: var(--color-dark);
    font-size: var(--fontsize-S);
    line-height: 1.5 !important;
}

button,
#searchsubmit,
input[type="submit"] {
    border: 1px solid var(--color-dark) !important;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 5px 10px;
    font-size: var(--fontsize-S);
    font-family: "Inter", sans-serif;
    transition: 400ms;
    cursor: pointer;
    width: fit-content;
} button:hover,
#searchsubmit:hover,
input[type="submit"]:hover {
    box-shadow: none !important;
    background-color: var(--color-light);
    color: var(--color-dark);
}

/*-------------------------------------------------------------------------------
9. MOBILE
-------------------------------------------------------------------------------*/

html.mobile nav.side {
    display: none;
}

html.mobile .content-wrapper {
    width: 100%;
    margin-left: 0 !important;
}

html.mobile nav.top {
    width: 100% !important;
}

html.mobile main {
    max-width: 100%;
}

html.mobile .posttype {
    width: 100%;
    max-width: 100%;
}
