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

html {
    font-size: 62.5%;
}

body {
    font-size: 17px;
    font-family: 'Times New Roman', Times, serif;
    color: black;
    max-width: 960px;       /* centraliza tudo */
    margin: 0 auto;
    padding: 0 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
}


/* ==============================================
   HEADER
   ============================================== */
header#banner {
    font-family: 'Futura', sans-serif;
    margin: 25px 0 100px;
    display: flex;
    align-items: baseline;
    gap: 30px;

}

header#banner a {
    color: #313a3d;
    text-decoration: none;
}

header#banner a:hover {
    text-decoration: underline blue;
}

header#banner h2 {
    display: inline;
    font-size: 30px;
    margin: 0 8px 0 0;
}

header#banner nav {
    display: inline-block;
}

header#banner nav ul {
    list-style-type: none;
    font-size: 1.05em;
    text-transform: lowercase;
    margin: 0;
    padding: 0;
}

header#banner nav ul li {
    display: inline;
    margin: 0 3px;
}

header#banner nav ul li a {
    color: #454545;
}

/* ==============================================
   CONTEÚDO
   ============================================== */
main#content a {
    color: inherit;
    text-decoration: none;
    border-bottom: blue 1.7px;
    border-bottom-style: dotted;
}

main#content h1,
main#content h2,
main#content h3,
main#content h4,
main#content h5,
main#content h6 {
    margin-bottom: 0;
    line-height: 2;
    font-weight: 600;
    font-family: 'Futura Std', sans-serif;
}

main#content h1,
main#content h2 {
    font-size: 26px;
}

main#content h3 {
    font-size: 13px;
    font-size: 1.9rem;
}

main#content h1 + p,
main#content h2 + p,
main#content h3 + p,
main#content h4 + p,
main#content h5 + p,
main#content h6 + p {
    margin-top: 16px;
}

main#content p {
    margin: 16px 0;
}

main#content hr {
    height: 1px;
    border: 0;
    background: #d8d8d8;
}

main#content abbr {
    cursor: help;
}

/* lista de posts */
main#content ul#posts {
    list-style-type: none;
    font-size: 16px;
    font-size: 1.6rem;
    margin-top: 0;
    padding: 0;
}

main#content ul#posts li {
    margin: 5px 0;
    padding: 0;
}

main#content ul#posts small {
    font-size: 0.8em;
    color: #767676;
    margin-left: 10px;
}

main#content ul#posts li a {
    text-decoration: none;
    border: none;
}

main#content ul#posts li a:hover {
    color: #369aff;
}

main#content ul#posts li a:hover small {
    color: inherit;
}

/* cabeçalho de post */
main#content header#post-header h1 {
    display: block;
    font-weight: 600;
    line-height: 1.15;
}

main#content header#post-header > div {
    display: block;
    font-size: 0.85em;
    color: #767676;
    margin-top: 10px;
}

main#content img {
    max-width: 100%;
    margin: 0 auto;
}

main#content figure {
    margin: 16px 0;
}

main#content figure img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

main#content figure figcaption {
    font-size: 0.92em;
    font-style: italic;
    line-height: 22px;
    text-align: center;
    margin-top: 6px;
    padding: 0 10px;
}

main#content blockquote {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
    padding-left: 15px;
    color: blue;
}

main#content code,
main#content pre {
    font-family: 'Menlo', monospace;
}

main#content code {
    font-size: 0.96em;
    padding: 0 5px;
}

main#content pre {
    display: block;
    overflow-x: auto;
    font-size: 14px;
    font-size: 1.4rem;
    white-space: pre;
    margin: 20px 0;
    padding: 1.5rem 1.5rem;
    line-height: 1.4;
}

main#content pre code {
    padding: 0;
}

/* ==============================================
   FOOTER
   ============================================== */
footer#footer {
    font-size: 14px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #b3b3b3;
    margin: 40px 0;
}

/* ==============================================
   SIDENOTES
   ============================================== */
:root {
    --col:    580px;   /* largura da coluna de texto  */
    --gap:     100px;   /* espaço texto → nota         */
    --nota-w: 200px;   /* largura da nota marginal    */
}

/* wrapper posiciona as notas absolutas */
.conteudo-wrap {
    position: relative;
}

/* limita o texto principal */
.conteudo {
    max-width: var(--col);
}

/* marcador sobrescrito no texto */
a.fn-ref {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
    color: blue;
    text-decoration: none;
    margin-left: 1px;
    cursor: pointer;
}

/* nota marginal — só aparece em telas largas */
.sidenote {
    position: absolute;
    left: calc(var(--col) + var(--gap));
    width: var(--nota-w);
    font-size: 0.8em;
    line-height: 1.3;
    color: blue;
}

.sidenote .fn-num {
    font-size: 0.85em;
    margin-right: 2px;
    color: blue;
}

/* nota inline — mobile, escondida por padrão */
.nota-inline {
    display: none;
    padding: 4px 10px;
    margin: 4px 0 12px;
    font-size: 0.88em;
    line-height: 1.5;
    color: blue;
}

/* esconde footnotes originais do Hugo */
section.footnotes,
div.footnotes {
    display: none;
}

.sidenote p,
.nota-inline p {
    display: inline;
    margin: 0;
}

/* ==============================================
   MOBILE
   Usa `em` em vez de `px` para que o breakpoint
   responda ao zoom óptico do browser.
   780px / 16px = 48.75em
   ============================================== */

   #fonte-ctrl {
    display: none;
}

@media (max-width: 48.75em) {
    .sidenote {
        display: none !important;
    }
    a.fn-ref {
        color: #007dfa;
    }
}

@media (max-width: 48.75em) {
    #fonte-ctrl {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 16px;
        gap: 6px;
        z-index: 100;
    }
    #fonte-ctrl button {
        background: black;
        color: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 13px;
        cursor: pointer;
    }
}