/* --- Global Settings & Variables --- */
:root {
    --container-w: 85%;
}

/* --- SEO & Performance Optimizations --- */
@font-face {
    font-family: "MinhaFonte";
    src: url("minha-fonte.woff2") format("woff2");
    font-display: swap;
}

/* --- Resets & Base Typography --- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fff; 
    color: #000;
}

hr,
img {
    border: 0;
    padding: 0;
}

hr {
    background: rgb(127 127 127 / .2);
    height: 1px;
    display: block;
}

/* --- FIX: Critical Accessibility Reset for Focus --- */
a:hover {
    text-decoration: none;
}

/* Hides outline for mouse users, BUT keeps it for keyboard users */
a:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

/* Styles the visible focus ring for keyboard/assistive tech */
a:focus-visible {
    outline: 2px solid #000; 
    outline-offset: 2px;
}

a:active {
    opacity: 0.8;
}

em,
i {
    font-style: italic;
}

b,
strong {
    font-weight: bolder;
}

sub,
sup {
    position: relative;
    vertical-align: baseline;
}

sub {
    top: .3em;
}

sup {
    top: -.4em;
}

s {
    text-decoration: line-through;
}

ol,
ul {
    margin: 0;
    padding: 0 0 0 1em;
}

blockquote {
    margin: 0;
    padding: 0 3em 0 0;
}

/* --- Predefined Content Styles --- */
.gallery_image_caption,
[data-predefined-style=true] bodycopy,
[data-predefined-style=true] h1 {
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
}

[data-predefined-style=true] bodycopy {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.4;
    font-family: "Diatype Mono Variable", Icons;
    font-style: normal;
    font-weight: 400;
    color: rgb(0 0 0 / .9);
	font-variation-settings: 'slnt' 0, 'MONO' 1;
}

/* --- LINKS DO TEXTO (Work, About, Behance, Linkedin) --- */
/* CORREÇÃO: Forçado cor preta e opacidade 1 para evitar o tom cinza */
[data-predefined-style=true] bodycopy a,
.page a {
    font-family: "Nitti Grotesk", Icons;
    font-style: normal;
    font-weight: 400;
    padding: 0;
    margin: 0;
    color: #000000 !important; /* Força o preto do WORK */
    opacity: 1 !important;      /* Remove o efeito cinza/transparente */
    font-size: 1.4rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* Mouse Over Azul para Links de Texto/Menu */
[data-predefined-style=true] bodycopy a:hover,
.page a:hover {
    color: rgb(0, 0, 255) !important;
}

bodycopy a.icon-link,
bodycopy a.icon-link:hover,
bodycopy a.image-link,
bodycopy a.image-link:hover {
    border-bottom: 0;
    padding-bottom: 0;
}

[data-predefined-style=true] h1 {
    padding: 0;
    margin: 0;
    font-size: 2.6rem;
    color: rgb(0 0 0 / .9);
    line-height: 1;
	font-family: "Diatype Mono Variable", Icons;
	font-style: normal;
	font-weight: 400;
	font-variation-settings: 'slnt' 0, 'MONO' 1;
}

.thumbnails .title,
[data-predefined-style=true] h1 {
    letter-spacing: 0.02em;
    font-family: "Nitti Grotesk", Icons;
}

/* --- TÍTULO PRINCIPAL (Paulo Mariano) --- */
/* CORREÇÃO: Forçado preto idêntico ao WORK */
[data-predefined-style=true] h1 a {
    color: #000000 !important;
    opacity: 1 !important;
    border-bottom: 0 solid #292929;
    transition: color 0.2s ease;
}

/* Mouse Over Azul para o Nome */
[data-predefined-style=true] h1 a:hover {
    color: rgb(0, 0, 255) !important;
}

[data-predefined-style=true] h2 {
    font-family: "Diatype Mono Variable", Icons;
    font-style: normal;
    font-weight: 200 700;
    padding: 0;
    margin: 0;
    color: rgb(0 0 0 / .9);
    font-size: 1rem;
    line-height: 1.3;
	font-variation-settings: 'wght' 400, 'slnt' 0, 'MONO' 1;
}

[data-predefined-style=true] h2 a {
    color: rgb(0 0 0 / .9);
    border-bottom: 0 solid #292929;
}

[data-predefined-style=true] small {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.4;
    font-family: "Diatype Mono Variable", Icons;
    font-style: normal;
    font-weight: 400;
    color: rgb(0 0 0 / .9);
	font-variation-settings: 'slnt' 0, 'MONO' 1;
}

[data-predefined-style=true] small a {
    color: rgb(0, 0, 0);
    border-bottom-width: 0;
}


/* --- Layout & Presets --- */
[data-css-preset] body {
    background-color: #fff;
}

[data-css-preset] .page {
    background-color: initial;
}

.mobile .page,
[data-css-preset].mobile .page {
    position: relative;
    min-height: 10px;
    max-width: 100%;
    width: 100%;
    background-color: transparent;
}

[data-css-preset] .container {
    text-align: left;
    color: transparent;
    margin-left: auto;
    margin-right: auto;
}

[data-css-preset] .container_width {
    width: 85%;
}

[data-css-preset] text-limit {
    display: inline-block;
    max-width: 66rem;
}

header,
.page_header,
.header,
.topbar,
.navbar,
.site-header {
    box-sizing: border-box;
    padding-left: calc((100% - var(--container-w)) / 2);
    padding-right: calc((100% - var(--container-w)) / 2);
}

header .inner,
.page_header .inner,
.header .inner,
.topbar .inner,
.navbar .inner,
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}


/* --- Components --- */

.content img {
    float: none;
    margin-bottom: .5em;
}

.loading[data-loading] {
    position: fixed;
    bottom: 8px;
    left: 8px;
}

div[thumbnails] {
    justify-content: flex-start;
}

[data-css-preset] .thumbnails {
    background-color: #fff;
}

[data-css-preset] .thumbnails_width {
    width: 86%;
}

[data-css-preset] [thumbnails-pad] {
    padding: 1.0rem;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -0.9rem;
}

.thumbnails .thumb_image {
    outline: rgb(255 255 255) solid 0;
    outline-offset: 1px;
    position: relative;
}

.thumbnails .title {
    margin-top: 1rem;
    margin-bottom: 1.3rem;
    font-size: 1.1rem;
    text-align: center;
    line-height: 2.4;
    color: #000;
    transition: color 0.2s ease;
}

/* --- PROJECT TITLES TURN BLUE ON HOVER --- */
.thumbnails .thumbnail:hover .title,
body.mobile .thumbnails .thumbnail:hover .title {
    opacity: 1; 
    color: rgb(0, 0, 255);
}

/* --- FIX: Made tags accessibly hidden --- */
.thumbnails .tags {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.thumbnails .thumbnail .title {
    background: 0 0;
    padding: 0.8rem;
    margin: 0;
    color: #000;
    align-content: left;
    display: contents;
    position: absolute;
    text-align: center;
    left: 0;
    top: 0;
    z-index: 9;
    opacity: 0;
    transition: color 0.2s ease;
}

/* --- Site Navigation & Menu --- */
/* CORREÇÃO: Desativado a opacidade baixa que tornava os links ativos cinzentos */
#site_menu a.active,
.page a.active {
    opacity: 1 !important;
    color: #000 !important;
}

#site_menu {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Icons;
    background: rgb(20 20 20 / .95);
    font-size: 20px;
    padding: 20px 30px 90px;
    max-width: 400px;
    min-width: 300px;
}

/* Audio Player */
.audio-player {
    max-width: 36rem;
    height: 3.3rem;
    outline: rgb(0 0 0 / .15) solid 1px;
    color: rgb(0 0 0 / .6);
    background: #fff;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: -apple-system, Icons;
    margin: 1px 1px 1em;
}

@media (max-width: 768px) {
    div[grid-col="6"] a,
    div[grid-col="6"] span {
        display: inline;
    }
}