/* The site's header and footer, the same on every page but the home page
   (2026-11-20, the user's call: every page links home the same way).

   <header class="site-bar">: kwigbo's head and "kwigbo.com" in Pixelify
   Sans, always linking to "/". <footer class="site-foot">: the copyright.
   Both run the page's full width with a rule, their content lined up with
   the pages' 700px column (16px sides). Colours are the dark pages' own:
   rule #2b3a69, muted text #a9bbe6, link hover #9ec3ff. The journal's
   entry pages carry the head in their own fixed top bar instead. */
@font-face {
  font-family: "Pixelify Sans";
  src: url(Fonts/PixelifySans-variable.ttf) format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

.site-bar,
.site-foot {
  box-sizing: border-box;
  padding-left: max(16px, calc((100% - 700px) / 2 + 16px), env(safe-area-inset-left, 0px));
  padding-right: max(16px, calc((100% - 700px) / 2 + 16px), env(safe-area-inset-right, 0px));
}

.site-bar {
  display: flex;
  align-items: center;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
  border-bottom: 1px solid #2b3a69;
}

.site-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font: 700 22px/1 "Pixelify Sans", system-ui, sans-serif;
}

/* 20px art at 2x: whole pixels. */
.site-home img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.site-home:hover,
.site-home:focus-visible {
  color: #9ec3ff;
}

/* margin and text-transform are reset because a page's own `footer` rule
   (the journal's is uppercase, with a margin) would otherwise reach it. */
.site-foot {
  margin: 0;
  text-transform: none;
  padding-top: 20px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #2b3a69;
  text-align: center;
  font: 400 13px/1.4 "Rubik", system-ui, sans-serif;
  letter-spacing: 0.3px;
  color: #a9bbe6;
}
