/* =========================================================================
   Axios — Base: reset, tipografia e elementos nativos
   ========================================================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink-700);
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ------------------------------------------------------------- Títulos */

h1, h2, h3, h4, h5 {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    color: var(--ink-900);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.018em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, var(--text-4xl)); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.5vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); letter-spacing: -0.012em; }
h4 { font-size: var(--text-lg); letter-spacing: -0.008em; font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; }

p {
    margin: 0 0 var(--space-4);
    max-width: 68ch;
}

p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- Links */

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--fast) var(--ease);
}

a:hover { color: var(--brand-500); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ------------------------------------------------------------- Listas */

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.35rem; }
li { margin-bottom: var(--space-2); }
li:last-child { margin-bottom: 0; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0; }

/* -------------------------------------------------------------- Mídia */

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

figure { margin: 0; }

/* -------------------------------------------------------- Texto e marcas */

strong, b { font-weight: 600; color: var(--ink-900); }
em { font-style: italic; }
small { font-size: var(--text-sm); }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--space-7) 0;
}

blockquote {
    margin: 0;
    padding-left: var(--space-5);
    border-left: 3px solid var(--brand-200);
    color: var(--ink-600);
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
}

code, kbd, samp {
    font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    background: var(--canvas-alt);
    border-radius: 5px;
    padding: 0.1em 0.38em;
}

address { font-style: normal; }

/* ------------------------------------------------------------ Tabelas */

table { border-collapse: collapse; width: 100%; }
th { text-align: left; }

/* --------------------------------------------------------- Formulários */

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button { cursor: pointer; }

::placeholder { color: var(--ink-300); opacity: 1; }

::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}

/* ------------------------------------------------------- Acessibilidade */

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

.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 999;
    background: var(--brand-700);
    color: #fff;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top var(--fast) var(--ease);
}

.skip-link:focus { top: var(--space-4); color: #fff; text-decoration: none; }

/* ------------------------------------------------------------ Utilidades */

.muted { color: var(--ink-500); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
