/* =====================================================================
   Portfólio · Elementos (reset enxuto e padrões de HTML)
   ===================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* O foco do Tab não para atrás do botão flutuante da música */
    scroll-padding-bottom: 5.5rem;
}

body {
    margin: 0;
    background: var(--preto);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--branco);
    font-stretch: var(--larga);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--branco); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--vermelho-forte); color: var(--branco); }

:focus-visible {
    outline: 2px solid var(--vermelho);
    outline-offset: 3px;
    border-radius: 2px;
}

.so-leitores {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.pular {
    position: fixed; left: 1rem; top: -4rem; z-index: 100;
    background: var(--branco); color: var(--preto);
    padding: .6rem 1rem; border-radius: var(--raio);
    font-weight: 700; text-decoration: none;
}
.pular:focus { top: 1rem; }

.icone { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-cheio { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
