/* --- 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;
}

/* ============================================
   FIX CRÍTICO: Oculta footer que aparece no topo
   e remove espaço em branco antes do header
   ============================================ */

body > footer:first-child,
body > .site-width:first-child,
body > .footer-bar:first-child {
    display: none !important;
}

body > footer:nth-child(1),
body > footer:nth-child(2) {
    display: none !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

body > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page,
.page_header,
header,
.header,
.site-header,
.topbar,
.navbar,
[data-css-preset] .page,
[data-css-preset] .container {
    margin-top: 0 !important;
}

[data-css-preset] .container:first-child,
.page:first-child {
    padding-top: 0 !important;
}

.page::before,
.container::before,
header::before {
    display: none !important;
}

/* --- 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;
}

a:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

a:active {
    opacity: 1.0;
}

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.5;
}

[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) --- */
[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;
    opacity: 1 !important;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

[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) --- */
[data-predefined-style=true] h1 a {
    color: #000000 !important;
    opacity: 1 !important;
    border-bottom: 0 solid #292929;
    transition: color 0.2s ease;
}

[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: #e90505;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0 !important;
}

[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);
    padding-top: 0 !important;
}

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;
}

/* =============================================
   TÍTULOS E TAGS DOS PROJETOS
   — ajuste os valores marcados com "← ajuste"
   ============================================= */

/* Espaçamento e tipografia do título */
.thumbnails .title {
    margin-top: 1.0rem;      /* ← espaço entre imagem e título */
    margin-bottom: 0.0rem;
    padding-top: 0;
    font-size: 1.1rem;       /* ← tamanho da fonte do título */
    text-align: left;
    line-height: 1.3;        /* ← espaço entre linhas do título */
    color: #000;
    transition: color 0.8s ease;
}

/* Cor azul no hover do título */
.thumbnails .thumbnail:hover .title,
body.mobile .thumbnails .thumbnail:hover .title {
    opacity: 1;
    color: rgb(0, 0, 255);
}

/* Tags visíveis abaixo do título */
.thumbnails .tags,
.thumbnails .tags span,
.thumbnails .tags a,
.thumbnails [class*="tag"],
.thumbnail .tags {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    visibility: visible !important;
    color: #000;   /* ← cor das tags */
    font-size: 0.85rem !important;        /* ← tamanho da fonte das tags */
    font-family: "Diatype Mono Variable", Icons;
    font-variation-settings: 'slnt' 0, 'MONO' 1;
    margin-top: 0.24rem;                  /* ← espaço entre título e tags */
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* --- Site Navigation & Menu --- */
#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;
    }
}