/*Paleta de cores */

:root {
    --cor-fundo: #fefbf7;
    --cor-principal: #3a2e2d;
    --cor-secundaria: #7c6e64;
    --cor-link: #91633f;
    --cor-fundo-codigo-inline: rgba(145, 99, 63, 0.15);
    --cor-texto-codigo-inline: #584738;
}

html.dark-theme {
    --cor-fundo: #181511;
    --cor-principal: #fffaf3;
    --cor-secundaria: #e4ddc9;
    --cor-link: #e6c68b;
    --cor-fundo-bloco-codigo: #2c241f;
    --cor-texto-codigo-inline: #f7f4ec;
}

/*Fonte: Outfit (Self-hosted) */

@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/outfit/outfit-v11-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/outfit/outfit-v11-latin-700.woff2') format('woff2');
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
    color: var(--cor-principal);
    background-color: var(--cor-fundo);
    margin: 0;
    padding: 0;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

#site-header {
    padding-top: 50px;
}

.header-inner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.site-title-wrapper .site-title {
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    color: var(--cor-principal);
}

.site-nav-wrapper ul {
    list-style-type: none;
    margin: 0;
    display: flex;
}

.site-nav-wrapper ul li {
    margin-left: 20px;
}

.site-nav-wrapper ul li a {
    text-decoration: none;
    color: var(--cor-principal);
    font-size: 1em;
    font-weight: 500;
}
.site-nav-wrapper ul li a:hover {
    color: var(--cor-principal);
    text-decoration: underline;
}

#site-main {
    padding-top: 20px;
}

#site-main > *:first-child,
#site-main h1:first-child {
    margin-top: 0 !important;
}

#site-footer {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 0.8em;
    color: var(--cor-secundaria);
}

a {
    color: var(--cor-link);
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--cor-principal);
    font-weight: bold;
    line-height: 1.5;
    margin-top: 1em;
    margin-bottom: 1em;
}
h1 {
    font-size: 1.1em;
}
article.post .post-header h1 {
    max-width: 75%;
}
h2, h3 {
    font-size: 1em;
}

p {
    line-height: 1.5em;
    font-size: 1em;
    font-family: 'Outfit', sans-serif;
    color: var(--cor-secundaria);
}

.post-list-detailed {
    list-style-type: none;
    padding-left: 0;
}
.post-list-detailed li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0;
    padding-bottom: 20px;
}
.post-list-detailed li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.post-list-detailed .post-title-link {
    text-decoration: none;
    color: var(--cor-principal);
    font-size: 1em;
    margin-right: 20px;
    line-height: 1.5;
    max-width: 65%;
}
.post-list-detailed .post-title-link:hover {
    text-decoration: underline;
}
.post-list-detailed .post-date {
    font-size: 0.8em;
    color: var(--cor-secundaria);
}

article.post .post-header .post-meta {
    font-size: 1em;
    color: var(--cor-secundaria);
    margin-bottom: 1.5em;
    margin-top: -0.5em;
}

:not(pre) > code {
    background-color: var(--cor-fundo-codigo-inline);
    color: var(--cor-texto-codigo-inline);
    padding: 0 0.5em;
    border-radius: 0;
    font-family: 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9em;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    line-height: 1.25;
    vertical-align: middle;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/*Ajustes de tema */

#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#theme-icon-svg svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: middle;
    position: relative;
    top: -1px;
    color: #3a2e2d;
    transition: color 0.5s;
}
html.dark-theme #theme-icon-svg svg {
    color: #fffaf3;
    color: #3a2e2d;
    transition: color 0.5s;
}
html.dark-theme #theme-icon-svg svg {
    color: #fffaf3;
}
