/* Prazeria — base: reset, fontes, tipografia, utilitários */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/InterVariable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

@font-face {
    font-family: "Fraunces";
    src: url("/assets/fonts/Fraunces-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
}

/* Reset moderno */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
html { -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; }
html:focus-within { scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.55; text-rendering: optimizeSpeed; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* Tipografia */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
}

h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); font-variation-settings: "opsz" 36; }
h4 { font-size: var(--fs-xl); font-variation-settings: "opsz": 24; }

p { color: var(--text); }
.lead { font-size: var(--fs-md); color: var(--text-soft); max-width: 56ch; }
small { font-size: var(--fs-sm); color: var(--muted); }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-base) var(--ease);
}

/* Selecção */
::selection { background: var(--accent); color: var(--text); }

/* Foco visível (acessibilidade AA) */
:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
    .container { padding-inline: var(--sp-6); }
}

@media (min-width: 1280px) {
    .container { padding-inline: var(--sp-7); }
}

.container-sm { max-width: var(--container-sm); }

/* Section spacing */
.section { padding-block: var(--sp-8); }
.section--lg { padding-block: var(--sp-9); }
@media (min-width: 768px) {
    .section { padding-block: var(--sp-9); }
    .section--lg { padding-block: var(--sp-10); }
}

/* Utilitários */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.text-muted   { color: var(--muted); }
.text-soft    { color: var(--text-soft); }
.text-accent  { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.text-center  { text-align: center; }

.eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-weight: 500;
}

.divider { height: 1px; background: var(--line); border: 0; }

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