html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--base);
    color: var(--text);
    font-family: "Libre Baskerville", "Times New Roman", Times, serif;
    font-size: var(--body-m);
    line-height: 2;
}

* {
    box-sizing: border-box;
}

main {
    width: clamp(10rem, calc(100% - 2 * var(--space-m)), 36rem);
    margin: auto;
    padding: var(--space-xxl) 0;
}

article {
    padding-bottom: var(--space-xl);
}

article header {
    font-family: "InterVariable", ui-sans-serif, system-ui, "Helvetica", sans-serif;
    font-size: var(--heading-xs);
    line-height: 1.5;
    margin-bottom: var(--space-xxl);
}

.path {
    font-family: "InterVariable", ui-sans-serif, system-ui, "Helvetica", sans-serif;
    font-size: var(--body-m);
}

h1 {
    margin: 0;
}

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

a:hover {
    color: var(--accent);
}

pre:has(code) {
    background-color: var(--surface);
    border-radius: var(--space-xs);
    padding: var(--space-m);
    overflow-x: auto;
}
  
code {
    font-size: var(--body-m);
    font-family: "JetBrains Mono", monospace;
}

blockquote {
    color: var(--subtext);
    margin: 0;
    padding-left: var(--space-l);
    border-left: 2px solid var(--surface);
}

hr {
    border: 1px solid var(--surface);
    margin: var(--space-xl) 0;
}

small {
    font-size: var(--body-s);
    color: var(--subtext);
}

sup {
    line-height: 0;
}

.date {
    font-family: "InterVariable", ui-sans-serif, system-ui, "Helvetica", sans-serif;
}
