@font-face {
    font-family: "Merriweather Sans";
    src: url("fonts/MerriweatherSans_Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Merriweather Sans";
    src: url("fonts/MerriweatherSans_Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: light-dark(#f4eff2, #141113);
    --surface: light-dark(#fbfbfb, #1d191b);
    --border: light-dark(#e5e5e5, #3a3236);
    --text: light-dark(#28302f, #ece4e7);
    --muted: light-dark(#5f5a5d, #b3a8ad);
    --accent: light-dark(#77556e, #e3b8d4);
    --on-accent: light-dark(#ffffff, #44283c);
    --accent-soft: light-dark(#f6d8ec, #3b2a35);
    --todo: light-dark(#fff1e0, #3a2610);
    --font: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    color-scheme: light dark;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-header,
main,
.site-footer {
    width: min(100% - 2rem, 46rem);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.brand img {
    width: 2.5rem;
    height: 2.5rem;
}

main {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.25;
}

h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.35;
}

.lead {
    font-size: 1.1rem;
}

.updated {
    margin-top: 0;
    color: var(--muted);
}

li {
    margin-bottom: 0.4rem;
}

.callout {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--accent-soft);
    border-radius: var(--radius);
}

.callout h2 {
    margin-top: 0;
}

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1rem;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.links {
    padding-left: 1.25rem;
}

mark {
    padding: 0 0.25rem;
    background: var(--todo);
    color: inherit;
    border-radius: 4px;
}

.site-footer {
    padding-block: 1.5rem 2.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
