@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-regular.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); }
@font-face { font-family: "Nmami Serif"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-latin.woff2) format("woff2"); }
:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #3d5afe;
  --accent-soft: rgba(61, 90, 254, .14);
  --note: #8c9cff;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "Nmami Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--mono);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration: none; }

.read { max-width: 880px; margin: 0 auto; padding-block: 40px 120px; }
.read-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.read-back { display: inline-block; position: relative; padding-bottom: 3px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.read-back::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.read-back:hover::after, .read-back:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.read-back:focus-visible, .lang a:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.lang { display: flex; gap: 6px; font-size: 12px; letter-spacing: .08em; }
.lang a { padding: 2px 6px 3px; }
.lang a[aria-current] { background: var(--fg); color: var(--bg); }
.lang a:not([aria-current]):hover { box-shadow: inset 0 -1px 0 var(--fg); }
.read-head { margin: 72px 0 40px; display: grid; gap: 20px; }
.read-meta { margin: 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-variant-numeric: tabular-nums; }
.read-meta time { color: var(--note); }
.read h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.read-sub { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; text-wrap: pretty; }
.read-body { font-family: var(--text); font-size: 19px; line-height: 1.65; }
.read-body > * { margin: 0 0 1.15em; }
.read-body h2 { scroll-margin-top: 24px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin: 2em 0 .7em; text-wrap: balance; }
.read-body h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; margin: 2.6em 0 .9em; }
.read-body h2 + h3 { margin-top: 1.2em; }
.read-body ul { padding-left: 1.2em; }
.read-body ul ul { margin: .4em 0 .2em; }
.read-body li { margin-bottom: .4em; }
.read-body li::marker { color: var(--accent); content: "■  "; font-size: .7em; }
.read-body strong { font-family: var(--mono); font-size: .76em; font-weight: 500; letter-spacing: .04em; }
.read-body code { font-family: var(--mono); font-size: .84em; font-variant-ligatures: none; }
.read-body p a, .read-body li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.read-body p a:hover, .read-body li a:hover { background: var(--fg); color: var(--bg); text-decoration-color: var(--fg); }
.read-body a:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.read-body figure { margin: 1.8em 0; }
.read-body .note { margin: 1.8em 0; padding: 18px 22px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.read-body .note p { margin: 0; }
.read-body figure img, .read-body figure video { display: block; width: 100%; height: auto; }
.read-end { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--fg); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.read ::selection { background: var(--accent); color: var(--fg); }

.lang .divider { align-self: center; }
.read-body { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .read-head { margin-top: 48px; }
  .read-body { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
