@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1f1d1a;
  --muted: #6b665e;
  --accent: #2f4a6d;
  --rule: #e4e0d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --text: #e8e4dc;
    --muted: #a39d92;
    --accent: #9db4d3;
    --rule: #34322e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }
@media (max-width: 40rem) { html { font-size: 106.25%; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  font-optical-sizing: auto;
}

.site-header, main, .site-footer { max-width: 65ch; margin-inline: auto; padding-inline: 1.25rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-block: 2rem 3rem;
  font-size: 0.9rem;
}
.site-name { color: var(--text); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.site-header nav a { color: inherit; }
.langs [aria-current] { color: var(--text); }

a { color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 2em 0 0.5em; }
h1 { font-size: 1.8rem; margin-top: 0; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

time, .also-in, .caption { color: var(--muted); font-size: 0.85rem; }
article > header { margin-bottom: 2rem; }
.also-in { margin: 0.25rem 0 0; }

.prose img { display: block; width: 100%; height: auto; margin: 1.5rem 0 0.5rem; }
.caption { display: block; margin-bottom: 1.5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--muted); }
.prose hr { width: 30%; margin: 2.5rem auto; border: 0; border-top: 1px solid var(--rule); }
.prose code { font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 1rem; background: color-mix(in srgb, var(--text) 5%, transparent); }

.year h2 { margin: 2.5rem 0 0.75rem; color: var(--muted); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.08em; }
.year:first-child h2 { margin-top: 0; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { margin-bottom: 1.1rem; }
.post-list time { display: inline-block; min-width: 9.5rem; }
.post-list p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 40rem) { .post-list time { display: block; } }
.empty { color: var(--muted); }

.site-footer { padding-block: 4rem 2rem; color: var(--muted); font-size: 0.8rem; }
.choose-lang { padding-block: 20vh; text-align: center; }

.bg-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

@media print {
  .site-header nav, .site-footer, .bg-canvas { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}
