
body {
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + var(--footer-h) + 12px);
}

.tree { max-width: 700px; margin-left: var(--xshift); }

.top-gap { height: var(--top-gap); }

.line {
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.root {
  font-size: 22px;
  margin-bottom: 6px;
}

.icon { margin-left: 4px; margin-right: 4px; }

.content {
  margin-left: 52px;
  padding: 4px 0;
  line-height: 1.2;
}

#about, #contact {
  padding-top: 10px;
  padding-bottom: 10px;
}

.indent { margin-left: 4.5ch; }

a.filelink, a.filelink:visited, a.filelink:hover, a.filelink:active {
  color: var(--fg);
  text-decoration: none;
  display: block;
}

canvas.photo-icon {
  width: auto !important;
  height: 16px !important;
  aspect-ratio: 4 / 3;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 0;
}

.photo {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.last-updated {
  position: fixed;
  left: calc(var(--pad) + var(--xshift));
  right: var(--pad);
  bottom: var(--pad);
  font-size: 14px;
  color: var(--muted);
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  body {
    padding-top: var(--pad);
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
    padding-bottom: calc(var(--pad-mobile) + var(--footer-h) + 12px);
  }

  .last-updated {
    left: var(--pad-mobile);
    right: var(--pad-mobile);
    bottom: var(--pad-mobile);
  }

  .tree { margin-left: 0; }

  .indent { margin-left: 4.5ch !important; }

  .content { margin-left: 52px !important; }

  #about.content,
  #contact.content {
    margin-left: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  #photography .content {
    margin-left: calc(-4.5ch) !important;
    width: calc(100% + 4.5ch);
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #photography .photo-meta,
  #photography .photo {
    width: 100%;
    box-sizing: border-box;
  }
}

.post {
  user-select: text;
  -webkit-user-select: text;
}

.post-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px 0;
}

.post-header {
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: baseline;
}

.post-title {
  margin-left: 6px;
}

.post-date {
  font-size: 14px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  margin-left: auto;
}

.post-body {
  padding: 4px 0;
  line-height: 1.2;
  user-select: text;
  -webkit-user-select: text;
}

.post-error {
  padding: 4px 0;
}

@media (max-width: 768px) {
  .post-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .post-date {
    margin-left: 0;
    white-space: normal;
  }
}
