/* The site's frame (038 W7): the top bar and the footer of the landing, legal, 404 and notice pages,
   and the page width they share. Hand-written; colors and fonts from the tokens stylesheet. All
   these pages are script-free, so they follow the OS theme and have no theme button. */

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: clamp(16px, 4vw, 2.5rem); }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--paper); padding: 0.5rem 0.8rem; font-family: var(--sans); }

/* ── Top bar: the mark and name (home), the landing's section nav, GitHub ── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font: 600 1rem/1 var(--sans);
  letter-spacing: -0.01em;
  color: var(--strong);
  text-decoration: none;
}
.mark { width: 1.65rem; height: 1.65rem; flex-shrink: 0; } /* the brand mark (video-lens viewer/mark.svg): fixed colors in both themes */
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.85rem/1 var(--sans);
  color: var(--strong);
  text-decoration: none;
  border: 1px solid var(--pane-line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}
.gh-link:hover { border-color: var(--muted); }
.gh-link svg { width: 1.05em; height: 1.05em; fill: currentColor; flex-shrink: 0; }

/* ── Footer ── */
.foot { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font: 400 0.82rem/1.6 var(--sans); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--strong); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }

@media (max-width: 480px) {
  .gh-link span { display: none; }
  .gh-link { padding: 0.45rem; }
}
@media print {
  .top { display: none; }
}
