/* ===========================
   Fontes
   =========================== */

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-display: swap;
}

/* ===========================
   Layout
   =========================== */

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    padding-top: 24px;
}

body > footer {
    margin-top: auto;
}

main,
article {
    max-width: 1100px !important;
    width: 100%;
    box-sizing: border-box;
}

/* ===========================
   Cabeçalho / Menu
   =========================== */

header {
    width: 100%;
}

header hr {
    display: block;
    width: 100%;
    height: 0;
    margin: 1rem 0 2rem;
    border: 0;
    border-top: 1px dotted #d0d0d0;
    clear: both;
    flex: none;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #f3f3f3;
    transition: background 0.2s;
}

nav a:hover {
    background: #e8e8e8;
}

/* ===========================
   Títulos
   =========================== */

h1 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
}

h2 {
    margin-top: 2rem;
}

h3 {
    margin-top: 1.5rem;
}

/* ===========================
   Links
   =========================== */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Código inline
   =========================== */

code {
    font-family:
        "JetBrains Mono",
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 0.15em 0.35em;
}

/* ===========================
   Blocos de código
   =========================== */

pre {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0.9rem;
    font-family:
        "JetBrains Mono",
        monospace;
}

/* ===========================
   Imagens
   =========================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 6px;
}

/* ===========================
   Legendas
   =========================== */

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: -0.8rem;
    margin-bottom: 2rem;
}

/* ===========================
   Tabelas
   =========================== */

table {
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.8rem;
}

/* ===========================
   Rodapé
   =========================== */

.site-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 2rem 0;
}

.site-footer p {
    margin: 0.5rem 0;
}

.site-footer a {
    color: inherit;
}

/* ===========================
   Redes Sociais
   =========================== */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-link:hover svg {
    opacity: 1;
}

/* ===========================
   Blockquote
   =========================== */

blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
}

/* ===========================
   Seleção de texto
   =========================== */

::selection {
    background: #d9ecff;
}

@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }
}


header {
    width: 100%;
    text-align: center;
}

header hr {
    display: block;
    width: 100%;
    height: 0;
    margin: 1rem 0 2rem;
    border: 0;
    border-top: 1px dotted #d0d0d0;
    clear: both;
}

nav {
    display: block !important;
    float: none !important;
    width: 100%;
    text-align: center;
    margin: 0 0 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin: 0 14px;
}

nav a {
    display: inline-block;
    padding: 0;
    background: transparent;
}

nav a:hover {
    background: transparent;
    text-decoration: underline;
}