@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700;800;900&display=swap');

/* =========================================================
   PERMEABLE ARTS — GLOBAL STYLESHEET
   Visual language: archival / editorial / slightly uneasy
   ========================================================= */

:root {
    --paper: rgba(250, 248, 242, 0.91);
    --paper-soft: rgba(250, 248, 242, 0.78);
    --ink: #161616;
    --muted: #676767;
    --rule: rgba(22, 22, 22, 0.35);
    --link: #1a0dab;
    --link-hover: #b02a2a;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    --shadow-small: 0 5px 18px rgba(0, 0, 0, 0.10);
    --radius: 2px;
    --serif-display: Georgia, 'Times New Roman', serif;
    --display: 'League Spartan', Impact, Haettenschweiler, sans-serif;
    --body: Geneva, Arial, Helvetica, sans-serif;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 247, 241, 0.82) transparent;
}

/* Chrome / Safari / Edge */

::-webkit-scrollbar {
    width: 7px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-track-piece {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(248, 247, 241, 0.82);
    border-radius: 100px;
    border: none;

    box-shadow:
        0 0 7px rgba(255, 255, 255, 0.2),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 250, 0.95);
}

body,
h1,
h2,
h3,
p,
ul,
figure,
blockquote {
    margin: 0;
}

ul {
    padding: 0;
}

img,
video,
iframe {
    max-width: 100%;
}

/* =========================================================
   PAGE / BACKGROUND
   ========================================================= */

body {
    min-height: 100vh;
    background-image: url('site_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    padding: 18px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.07), rgba(255,255,255,0.08)),
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.018) 0,
            rgba(0,0,0,0.018) 1px,
            transparent 1px,
            transparent 4px
        );
    mix-blend-mode: multiply;
    z-index: -1;
}

body,
a,
button,
input,
textarea,
select {
    cursor: url("mouse_rest.png") 5 1, auto;
}

body:active,
a:active,
button:active,
input:active,
textarea:active,
select:active {
    cursor: url("mouse_click.png") 3 7, auto;
}
/* =========================================================
   TYPOGRAPHY
   ========================================================= */

p,
li,
.sidebar,
.subtitle,
.caption,
.footer {
    word-spacing: 0.17em;
    letter-spacing: 0.008em;
    text-align: justify; /* TEXTO JUSTIFICADO */
    text-justify: inter-word; /* Melhor justificação para web */
}

h1,
h2,
h3,
.sidebar h2,
.content h2 {
    font-family: var(--display);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    text-decoration-color: transparent;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease,
        background-size 160ms ease;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
    text-decoration-color: currentColor;
}

/* =========================================================
   HEADER / SITE MARK
   ========================================================= */

#header-image {
    text-align: center;
    padding: 12px 0 28px;
}

#header-image a {
    display: inline-block;
}

#header-image img {
    display: block;
    width: min(80vw, 600px);
    height: auto;
    margin: 0 auto;
    transition: transform 220ms ease, filter 220ms ease;
}

#header-image a:hover img {
    transform: translateY(-2px) rotate(-0.3deg);
    filter: contrast(1.04);
}
#header-image.header-large {
    padding: 60px 0 50px;
}

#header-image.header-large img {
    width: min(95vw, 900px);
}

/* =========================================================
   HOME PAGE — INDEX
   Distinct composition, shared visual language
   ========================================================= */

.home-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 36px);
}

.home-page .main-container {
    display: grid;
    grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
    align-items: start;
    width: min(1200px, 100%);
    margin: 2px auto 28px;
    gap: 14px;
}

.home-page .sidebar,
.home-page .content {
    background: var(--paper);
    border: 1px solid rgba(22,22,22,0.15);
    box-shadow: var(--shadow-small);
    border-radius: var(--radius);
}

.home-page .sidebar {
    position: relative;
    padding: 20px 18px 24px;
}

.home-page .sidebar::before,
.home-page .content::before {
    content: '';
    display: block;
    width: 100%;
    height: 7px;
    margin-bottom: 18px;
    background: var(--ink);
}

.home-page .sidebar h2,
.home-page .content h2 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem); /* REDUZIDO */
    margin-bottom: 17px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink);
}

.home-page .sidebar .info-item {
    margin-bottom: 13px;
    padding-left: 10px;
    border-left: 1px solid var(--rule);
}

.home-page .sidebar .info-item strong {
    display: block;
    margin-bottom: 1px;
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.home-page .sidebar > p {
    margin-top: 20px !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--rule) !important;
    font-family: var(--serif-display);
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: italic;
}

.home-page .content {
    padding: 22px 28px 30px;
}

.home-page .content h2:not(:first-child) {
    margin-top: 38px;
}

.home-page .content ul {
    list-style: none;
}

.home-page .content li {
    position: relative;
    padding: 12px 0 12px 23px;
    border-bottom: 1px solid rgba(22,22,22,0.16);
    line-height: 1.5;
}

.home-page .content li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 10px;
    font-family: var(--display);
    font-size: 0.9rem;
}

.home-page .content li a {
    font-size: 1.04rem;
}

/* =========================================================
   WORK / ESSAY PAGES
   Distinct composition, same visual language
   ========================================================= */

.work-page {
    padding: 18px;
}

.work-page .page-container {
    width: min(100%, 1000px);
    margin: 0 auto 42px;
    padding: clamp(28px, 5vw, 58px) clamp(20px, 6vw, 64px);
    background: var(--paper);
    border: 1px solid rgba(22,22,22,0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.work-page .page-header {
    position: relative;
    margin-bottom: 42px;
    padding: 0 0 21px 0;
    border-bottom: 2px solid var(--ink);
}

.work-page .page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 92px;
    height: 5px;
    background: var(--ink);
}

.work-page .page-header h1 {
    max-width: 900px;
    margin-bottom: 13px;
    font-size: clamp(1.6rem, 4vw, 2.8rem); /* REDUZIDO */
}

.work-page .page-header .subtitle {
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.work-page .text {
    width: min(100%, 760px);
    margin: 0 auto;
}

.work-page .text p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.82;
    text-align: justify; /* TEXTO JUSTIFICADO */
    text-justify: inter-word;
}

.work-page .text > p:first-of-type::first-letter {
    float: left;
    margin: 0.08em 0.11em 0 0;
    font-family: var(--display);
    font-size: 4.3em;
    line-height: 0.75;
    font-weight: 800;
}

.work-page .text h2 {
    position: relative;
    margin: 52px -1px 21px;
    padding: 13px 0 12px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem); /* REDUZIDO */
}

.work-page .text h2::before {
    content: '§';
    display: inline-block;
    margin-right: 10px;
    font-family: var(--serif-display);
    font-size: 0.8em;
    font-weight: normal;
    letter-spacing: 0;
}

.work-page .text h3 {
    margin: 34px 0 13px;
    font-size: 1.05rem; /* REDUZIDO */
}

/* =========================================================
   MEDIA
   ========================================================= */

.work-page .media,
.work-page .media-small,
.work-page .video {
    position: relative;
    margin: 38px 0;
}

.work-page .media img,
.work-page .media-small img,
.work-page .video video,
.work-page .video-embed {
    display: block;
    width: 100%;
    border-radius: 0;
}

.work-page .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 38px 0;
}

.work-page .image-grid img {
    width: 100%;
}

.work-page .media img,
.work-page .media-small img,
.work-page .video video {
    border: 1px solid rgba(22,22,22,0.16);
}

.work-page .media-small {
    width: min(100%, 600px);
    margin-left: auto;
    margin-right: auto;
}

.work-page .caption {
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--serif-display);
    font-size: 0.78rem;
    line-height: 1.4;
}

.work-page .video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.work-page .video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   BLOCKQUOTES
   ========================================================= */

.work-page blockquote {
    position: relative;
    margin: 42px 0;
    padding: 23px 24px 23px 30px;
    border-left: 5px solid var(--ink);
    background: rgba(255,255,255,0.34);
    font-family: var(--serif-display);
    font-size: 1.04rem;
    line-height: 1.65;
    font-style: italic;
}

.work-page blockquote::before {
    content: '“';
    position: absolute;
    left: 7px;
    top: 8px;
    font-family: var(--serif-display);
    font-size: 2.5rem;
    line-height: 1;
    font-style: normal;
}

/* =========================================================
   FOOTER
   ========================================================= */

.work-page .footer {
    margin-top: 56px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
    body,
    .work-page {
        padding: 10px;
    }

    .home-page .main-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-page .sidebar {
        order: 2;
    }

    .home-page .content {
        order: 1;
    }

    #header-image {
        padding-bottom: 20px;
    }

    #header-image img {
        width: 95%;
    }

    .work-page .page-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .home-page .content,
    .home-page .sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-page .content li a {
        font-size: 0.98rem;
    }

    .work-page .page-header h1 {
        font-size: 1.6rem; /* REDUZIDO */
    }

    .work-page .text p {
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .work-page .text > p:first-of-type::first-letter {
        font-size: 3.7em;
    }
}