/* Optional typography layer, loaded when params.typography = "refresh" in hugo.toml.
   Remove that line (or set it to "classic") to return to the original Georgia setup. */
:root {
    --text-body: #2e2e33;
    --font-stack: "Source Serif 4", Georgia, "Palatino", "Palatino Linotype", "Book Antiqua", serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
}

:root[data-theme="dark"] {
    --text-body: #cfcfd5;
}

body {
    font-size: 1.0625rem;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
}

.container > header .site-title a {
    font-size: 1.3125rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4 {
    font-weight: 650;
    letter-spacing: -0.012em;
    line-height: 1.25;
}

article > header h1 {
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

article > header .meta {
    margin-top: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.content {
    font-size: 1.09375rem;
    line-height: 1.72;
}

.content h2 {
    font-size: 1.6875rem;
    margin: 2.8rem 0 0.9rem;
}

.content h3 {
    font-size: 1.3125rem;
    margin: 2.2rem 0 0.75rem;
}

.content h4 {
    font-size: 1.125rem;
    margin: 1.8rem 0 0.6rem;
}

body.page-about .content h3 {
    font-size: 1.25rem;
    margin: 36px 0 14px;
}

.content p,
.content li {
    color: var(--text-body);
}

.content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content a:hover {
    text-decoration-color: currentColor;
}

.post-list li {
    margin-bottom: 16px;
}

.post-list li .date {
    font-size: 0.84375rem;
    color: var(--text-tertiary);
}

/* Homepage intro stays at the original 16px; only the color/feel of the font changes. */

/* Article and note pages: a slightly smaller reading scale. About keeps the sizes above. */
body.page-inner:not(.page-about) article > header h1 {
    font-size: 1.75rem;
}

body.page-inner:not(.page-about) article > header .meta {
    font-size: 0.8125rem;
}

body.page-inner:not(.page-about) article .content {
    font-size: 1rem;
    line-height: 1.68;
}

body.page-inner:not(.page-about) article .content h2 {
    font-size: 1.40625rem;
}

body.page-inner:not(.page-about) article .content h3 {
    font-size: 1.15625rem;
}

body.page-inner:not(.page-about) article .content h4 {
    font-size: 1.03125rem;
}
