@font-face { font-family: "Inter"; src: url(fonts/Inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --serif: "Martina Plantijn", "Iowan Old Style", Georgia, serif; --sans: "Inter", -apple-system, system-ui, sans-serif; --ease: cubic-bezier(.2,.7,.2,1); }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); transition: background-color .4s, color .4s; }
a { color: inherit; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: var(--grain, .05); mix-blend-mode: var(--grain-blend, multiply);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* the one link row, same place on every page of both sites */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 13.5px; letter-spacing: -.003em; color: var(--muted); }
.row a { text-decoration: none; transition: color .2s; }
.row a:hover { color: var(--ink); }
.row .push { margin-left: auto; }
.row .theme { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.row .theme:hover { color: var(--ink); }
.row .theme i { width: 9px; height: 9px; border-radius: 50%; border: 1.25px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.row .rule { flex: 0 0 1px; height: 16px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
:root { --footer-icon-ink: #3b2e10; }
:root[data-theme="dark"] { --footer-icon-ink: oklch(.955 .005 85); }
.footer-tools { display: inline-flex; align-items: center; flex: none; gap: 20px; color: var(--footer-icon-ink); }
@media (max-width: 351.98px) { .footer-tools { gap: 14px; } }
@media (max-width: 333.98px) { .footer-tools { gap: 10px; } }
.row .footer-tools .view { position: relative; display: grid; place-items: center; color: inherit; }
.footer-tools .view i { width: 16px; height: 16px; background: currentColor; mask: url(redo/bot.svg) center / contain no-repeat; }
.footer-tools .view.on i { -webkit-mask-image: url(redo/human.svg); mask-image: url(redo/human.svg); }
.footer-tools .view::before { content: ""; position: absolute; inset: -12px -5px; }
.footer-tools .view:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.row .footer-tools .theme-icon { position: relative; flex: none; width: 24px; height: 24px; margin: -4px; color: inherit; }
.row .theme-icon::before, .row .theme-icon::after {
  content: ""; position: absolute; inset: 4px; background: currentColor;
  mask: url(redo/sun.svg) center / contain no-repeat;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.row .theme-icon::after { mask-image: url(redo/moon.svg); opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-icon::before { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-icon::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .row .theme-icon::before, .row .theme-icon::after { transition: none; } }

.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.mark svg { width: 14px; height: auto; transform: translateY(-1px); }
.mark span { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; line-height: 1; }

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.fade { opacity: 0; transform: translateY(6px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.ready .fade { opacity: 1; transform: none; }
html.ready .d1 { transition-delay: .08s; } html.ready .d2 { transition-delay: .16s; } html.ready .d3 { transition-delay: .24s; } html.ready .d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .fade { transition: none; opacity: 1; transform: none; } }
html.still .fade { transition: none !important; opacity: 1; transform: none; }
