@font-face {
  font-family: "CAD Mono";
  src: url("/assets/DejaVuSansMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #000;
  --echo: #ddd;
  --type-size: clamp(19px, 2.22vw, 32px);
  --row-height: 1.5em;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #fff; }
body { overflow: hidden; font-family: "CAD Mono", monospace; font-weight: 700; }
.brand {
  position: fixed;
  z-index: 2;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  width: 88px;
  background: #fff;
}
.brand img { display: block; width: 100%; height: auto; }
main { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.message-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--type-size);
  line-height: var(--row-height);
  white-space: nowrap;
  text-align: center;
}
h1 { margin: 0; padding: 0 0.16em; font: inherit; color: var(--ink); background: #0074FF; }
.echoes { position: absolute; left: 0; right: 0; color: var(--echo); user-select: none; pointer-events: none; }
.above { bottom: 100%; }
.below { top: 100%; }
@media (max-width: 600px) {
  :root { --type-size: clamp(17px, 4.85vw, 23px); }
  .brand { top: max(16px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); width: 48px; }
}

.site-date {
  position: fixed;
  z-index: 2;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  color: #000;
  background: #fff;
  font-family: "CAD Mono", monospace;
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .site-date { top: max(16px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); font-size: 12px; }
}

/* Public page links follow the photo archive's year navigation. */
.site-nav{position:fixed;left:32px;top:112px;z-index:3;display:flex;flex-direction:column;gap:8px;background:#fff;font:700 16px "CAD Mono",monospace}
.site-nav a{color:#000;text-decoration:none;padding:4px 0}
.site-nav a[aria-current="page"],.site-nav a:hover{color:#0074ff;text-decoration:underline;text-underline-offset:4px}
.site-nav a:focus-visible,.brand a:focus-visible{outline:2px solid #0074ff;outline-offset:4px}
@media(max-width:700px){
 .site-nav{left:32px;top:112px;flex-direction:row;gap:16px;font-size:13px}
 .has-page-nav::before{content:'';position:fixed;top:0;left:0;right:0;height:154px;background:#fff;z-index:2}
 body.music.has-page-nav main{margin-top:174px}
 body.visitors.has-page-nav main{padding-top:174px}
}
@media(max-width:600px){
 .site-nav{left:16px;top:65px;max-width:calc(100% - 32px);overflow-x:auto}
 .has-page-nav::before{height:104px}
 body.music.has-page-nav main{margin-top:124px}
 body.visitors.has-page-nav main{padding-top:124px}
}
