/* Always night. Cairo after midnight: blue-black sky, paper-coloured ink, sodium-lamp links. */
:root{--bg:#14161d;--fg:#d9d4ca;--muted:#8f8a80;--link:#f0b35a;--visited:#c9964f;--rule:#2c2f3a;--sel:#3a2f1c;color-scheme:dark}
@font-face{font-family:Amiri;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/amiri-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Amiri;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/amiri-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
html{background:var(--bg);color:var(--fg)}
body{max-width:38em;margin:0 auto;padding:2em 1em 3em;font:17px/1.55 Georgia,"Times New Roman",Amiri,"Noto Naskh Arabic",serif}
::selection{background:var(--sel)}
a{color:var(--link)}a:visited{color:var(--visited)} /* reading steiner: you remember where you have been */
header{margin-bottom:2.5em}
header .site{font-weight:bold;text-decoration:none;color:var(--fg)}
header .site small{font-weight:normal;font-size:1em;color:var(--muted)}
nav{margin-top:.3em}nav a{margin-right:.6em}
h1{font-size:1.5em;font-weight:normal;margin:0 0 .2em}
h2{font-size:1.15em;font-weight:normal;margin:2em 0 .5em}
.date{color:var(--muted);font-size:.9em;margin:0 0 1.6em}.date a{color:var(--muted)}
ul.posts{list-style:none;padding:0;margin:0;font:15px/1.7 ui-monospace,Menlo,Consolas,monospace}
ul.posts li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
ul.posts .d{color:var(--muted);margin-right:1em}ul.posts .t{color:var(--muted)}
ul.posts [dir=rtl]{font-family:Amiri,"Noto Naskh Arabic",serif;font-size:1.1em}
article p{margin:0 0 1em}
article img{max-width:100%;display:block;margin:1em 0}
main[dir=rtl]{font-family:Amiri,"Noto Naskh Arabic",Georgia,serif;font-size:19px;line-height:1.9}
main[dir=rtl] h1{font-weight:bold;font-size:1.35em}
/* The fermata: a hold. Ends every essay and signs the footer. It is also an eye, so it
   blinks: the pupil shuts to a line and opens again, once every eleven seconds. The
   keyframes are percentages of that cycle, and 0.9% of 11s is a tenth of a second,
   which is how long a real blink takes. transform-origin is the dot's own centre in
   viewBox units, so it closes onto itself instead of sliding. It blinks under reduced
   motion too: a 3px dot shutting for a tenth of a second is not the sweeping movement
   that setting exists to stop, and an eye that never blinks is a dead eye. */
.fermata{width:1em;height:1em;vertical-align:-.1em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;overflow:visible}
.fermata circle{fill:currentColor;stroke:none;transform-box:view-box;transform-origin:12px 15.5px;animation:blink 11s ease-in-out 1.2s infinite}
@keyframes blink{0%,1.8%,100%{transform:scaleY(1)}0.9%{transform:scaleY(.06)}}
footer .night{margin:.6em 0 0;font-variant-numeric:tabular-nums}
.end{color:var(--muted);text-align:center;margin:2em 0 1.5em}
.end .fermata{width:1.4em;height:1.4em}
footer{margin-top:3em;padding-top:.8em;border-top:1px solid var(--rule);color:var(--muted);font-size:.85em}
footer p{margin:0}
footer .fermata{margin-right:.3em}
/* The divergence meter: nixie tubes glow the same amber as the streetlamps. 1.048596 is the world line where everyone makes it. */
footer .divergence{float:right;font:14px/1.7 ui-monospace,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;color:var(--link);letter-spacing:.06em;cursor:default}
hr{border:0;border-top:1px solid var(--rule);margin:2em 0}
/* Papers carry a table of contents. Narrow: a list above the paper. Wide: it sits in the
   left margin and stays put while you read; the section you are in is lit. */
.toc{font-size:.9em;line-height:1.5;color:var(--muted);margin:0 0 2.5em}
.toc p{margin:0 0 .6em;font-weight:bold;color:var(--fg)}
.toc ul{list-style:none;padding:0;margin:0}
.toc li{margin:0 0 .5em}
.toc li.l3{padding-left:1.2em;font-size:.95em}
.toc a{color:inherit;text-decoration:none}
.toc a:hover{color:var(--link)}
.toc li.here a{color:var(--fg)}
article h2[id],article h3[id]{scroll-margin-top:2em}
/* Narrow screens with script: the list hides behind a small button in the corner and opens as a
   full-screen panel. Without script the list simply stays in the flow. */
.toc-toggle{display:none;position:fixed;right:1em;bottom:1em;z-index:3;width:2.8em;height:2.8em;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--rule);background:var(--bg);color:var(--fg);font:20px/1 Georgia,serif;cursor:pointer}
.toc-toggle:focus-visible{outline:2px solid var(--link);outline-offset:2px}
@media (max-width:73.99em){
  html.js .toc{display:none;position:fixed;inset:0;z-index:2;margin:0;padding:2em 1.5em 5em;overflow-y:auto;background:var(--bg);font-size:1.05em;line-height:1.6}
  html.js .toc.open{display:block}
  html.js .toc-toggle{display:flex}
  html.js .toc li{margin:0 0 .8em}
}
@media (min-width:74em){
  .toc{position:sticky;top:2em;float:left;width:14em;margin:0 0 0 -17em;max-height:calc(100vh - 4em);overflow-y:auto}
}
@media (max-width:480px){ul.posts li{white-space:normal}ul.posts .d{display:block;margin:0}}
.contact{display:flex;flex-wrap:wrap;gap:.4em 1.4em;list-style:none;padding:0;margin:0 0 2em}
.contact a{display:inline-flex;align-items:center;gap:.4em;text-decoration:none}
.contact a:hover{text-decoration:underline}
.contact svg{width:1.1em;height:1.1em;fill:currentColor;flex:none}
