/* Base: reset leve sobre o Bootstrap, tipografia e utilitários */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
.container { max-width: var(--container); padding-inline: 20px; }

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
p { color: inherit; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
strong { font-weight: 700; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
main:focus { outline: none; }

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 2000;
    padding: .6rem 1rem; background: var(--accent); color: #fff; border-radius: var(--radius-sm);
    transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 1rem;
    display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-sm { font-size: .7rem; margin-bottom: .5rem; }

.display-title { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -.04em; max-width: 18ch; }
.section-title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.035em; max-width: 22ch; }
.text-center .section-title, .text-center .section-lead { margin-inline: auto; }
.section-lead, .hero-lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 60ch; }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

.text-grad {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* Fundo em grade técnica */
.grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .7rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; }
.todo { border: 1px dashed var(--border-strong); padding: .1rem .45rem; border-radius: 4px; font-family: var(--font-mono); font-size: .85em; color: var(--text-dim); }
