@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("fonts/SourceSerif4-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/SourceSerif4-latin-italic.woff2") format("woff2");
}

:root {
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --rule: #dcdcdc;
    --link: #1a4f8b;
    --bg: #fffefc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    max-width: 42rem;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    margin-bottom: 2.5rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

nav a {
    color: var(--muted);
    margin-right: 1.25rem;
}

nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tagline {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-style: italic;
}

h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.25rem;
}

.entry {
    margin-bottom: 1.1rem;
}

.entry-head,
.entry-sub {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-title {
    font-weight: 600;
}

.entry-date,
.entry-place {
    color: var(--muted);
    font-size: 0.9375rem;
    white-space: nowrap;
}

.entry-role {
    font-style: italic;
    font-size: 0.9375rem;
}

.entry-notes {
    margin: 0.3rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
}

.entry-notes li {
    margin-bottom: 0.2rem;
}

.plain-list {
    padding-left: 1.25rem;
    font-size: 0.9375rem;
}

.plain-list li {
    margin-bottom: 0.3rem;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 0.4rem;
}

.post-date {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.9375rem;
    margin-right: 0.75rem;
}

.all-posts {
    font-size: 0.9375rem;
}

.post-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.post-meta {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

article h2 {
    font-variant: normal;
    letter-spacing: normal;
    font-size: 1.25rem;
    border-bottom: none;
    padding-bottom: 0;
}

article img {
    max-width: 100%;
}

a.zola-anchor {
    color: inherit;
}

a.zola-anchor:hover {
    text-decoration: none;
}

a.zola-anchor:hover::after {
    content: " §";
    color: var(--muted);
    font-weight: normal;
}

blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--rule);
    color: var(--muted);
}

code {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
}

pre {
    padding: 0.9rem 1rem;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 4px;
    line-height: 1.45;
}

table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

th, td {
    border: 1px solid var(--rule);
    padding: 0.3rem 0.6rem;
}

mark {
    background: #fff3b0;
    padding: 0 0.15em;
}

.callout {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid #6b7fb8;
    background: #f4f6fb;
    border-radius: 0 4px 4px 0;
}

.callout-title {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: #3d5285;
}

.callout > :last-child {
    margin-bottom: 0;
}

.callout-warning, .callout-caution, .callout-danger, .callout-bug {
    border-left-color: #b8746b;
    background: #fbf5f4;
}

.callout-warning .callout-title, .callout-caution .callout-title,
.callout-danger .callout-title, .callout-bug .callout-title {
    color: #85453d;
}

.callout-tip, .callout-hint, .callout-success, .callout-example {
    border-left-color: #6bb87f;
    background: #f4fbf6;
}

.callout-tip .callout-title, .callout-hint .callout-title,
.callout-success .callout-title, .callout-example .callout-title {
    color: #3d8551;
}

.note-embed {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
}

.note-embed-title {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.note-embed > :last-child {
    margin-bottom: 0;
}

.badge-private {
    display: inline-block;
    padding: 0 0.4em;
    border: 1px solid #b8746b;
    border-radius: 3px;
    color: #85453d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: 0.1em;
}

footer {
    margin-top: 3.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9375rem;
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--text);
}

@media (max-width: 480px) {
    .entry-date,
    .entry-place {
        white-space: normal;
    }
}

@media print {
    body {
        max-width: none;
        padding: 0;
        font-size: 11pt;
    }

    nav,
    footer,
    .recent-posts {
        display: none;
    }

    a {
        color: inherit;
    }

    .entry,
    .plain-list li {
        break-inside: avoid;
    }

    .site-header::after {
        content: "work@arthurqm.com · github.com/arthur-qm · linkedin.com/in/arthur-queiroz-moura";
        display: block;
        color: var(--muted);
        font-size: 10pt;
    }
}
