body {background-color:#fff0e0;max-width:650px;margin:0px auto;
    font-family: serif;font-size: 16px;color:#222;}
nav {font-family: sans-serif; margin-top: 0px; padding: 5px; background-color: #fdb; image-rendering: pixelated;}
nav a {text-decoration: none;}
nav img {vertical-align: middle;}
.navitem {margin-right: 1em; display:inline-block;}
.navhome {font-weight: bold;}

ul.pagetree { list-style: none; margin: 0; padding-left: 0; overflow: hidden; }
ul.subtree {padding-left: 2ex;}
ul.pagetree li { position: relative; padding: 2px;}
ul.subtree li::before {
  content: '';
  position: absolute;
  border-left: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  right: calc(100% + .25ex);
  top: -5000%; /* 50 lines of skipping upwards */
  width: 1ex;
  bottom: calc(100% - 0.9rem);
}
.pagetree a {text-decoration: none;}
.treedate {color: grey; padding-left: 5px;}

h1, h2, h3, h4 {font-family: serif;}
hgroup h1 {margin-bottom:0;}
hgroup p {margin-top:0;}
.date {font-size: 14px; font-weight: normal;}

a {color:teal; text-decoration: underline dotted;}
a:visited {color:purple;}
a:hover {color: red;}
code {background-color: #eed3c2; padding: 2px;}

figure {margin: 0;}
figcaption {font-style: italic; text-align: center;}
figcaption:empty {display:none;}
figure > img {max-width:100%; display: block; margin: 0 auto; cursor:pointer;}

@media only screen and (max-width: 700px) {#main {margin-left:5px; margin-right:5px;}}

/* based on CSSBox https://notabug.org/SylvieLorxu/CSSBox */
figure:has(> img:focus) {
cursor: pointer;
position: fixed;
height: 100%;
width: 100%;
max-width: 100%;
top: 0;
left: 0;
margin:0;
background-color: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(2px);
}
figure:has(> img:focus) > figcaption {
background-color: black;
color: white;
padding: 5px;
}
figure > img:focus {
cursor: default;
position: fixed;
max-height: 95%;
max-width: 95%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}