/* Catodoro - the pieces every page shares.

   Loaded first, so each page's own stylesheet can override. Two things live
   here: the footer's contents, and the key chip. The guide turns the same
   footer into a slide-up panel in styles.css; the document pages let it sit
   at the end of the page. Only the positioning differs - everything inside
   is this file, so the two can't drift apart the way the navbar did. */

/* Two weights, three colours, and that is the whole scale.

   Quicksand's 400 goes thin and wiry at reading sizes, so prose sits at 500
   and emphasis inside it at 700 - never a third step. Interface labels the
   eye jumps to rather than reads - nav items, buttons, links - take the 700
   as well. The rest of the hierarchy is colour: ink for the thing being
   named, grey for the explanation around it, paler still for labels. */
:root {
  --text-em: #1e0808;
  --text: rgba(30, 8, 8, 0.6);
  --text-soft: rgba(30, 8, 8, 0.36);
}

/* ---------- Key chips ---------- */

kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 7px;
  background: var(--card);
  border: 1px solid rgba(30, 8, 8, 0.16);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
}

kbd + kbd { margin-left: 3px; }

/* ---------- The footer ----------

   Set in bold throughout at low contrast rather than regular at full: at
   these sizes Quicksand's regular gets thin and wiry, and the weight holds
   the shapes together where colour alone can carry how quiet it should be.
   Headings are capitalised, not upper-cased - a small-caps head competed
   with the links for the same amount of attention. */

.site-footer {
  position: relative;
  /* Crops George at the bottom edge, so half of him is below the fold until
     you go looking. */
  overflow: hidden;
  background: var(--card);
  /* Quicksand throughout. The guide sets h1/h2 in the display face, and the
     column heads below are h2s - without this they pick that up there and
     nowhere else. */
  font-family: var(--body);
}

.site-footer h2 { font-family: var(--body); }

/* The bottom padding is George's whole height, not the half of him on show:
   it is the room he rises into, so at full height he still clears the line
   above rather than covering it. That leaves a band of paper under that line
   while he is down, which is the cost of him never shifting the layout. */
.footer-body { padding: 40px clamp(20px, 5vw, 64px) 122px; }

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px clamp(48px, 9vw, 120px);
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 26px;
}

.footer-col { flex: 0 1 auto; }

.footer-head {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

.footer-list li + li { margin-top: 7px; }

.footer-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-list a:hover { color: var(--red); }

.footer-paw {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: var(--text-soft);
}

/* George sees the page out. Half of him clears the bottom edge normally;
   hovering the footer brings him all the way up. Absolute so he costs the
   layout nothing - the padding under .footer-body is the room he rises into,
   so nothing reflows and nothing he passes gets covered. How much shows is
   set by his eyes: they end 68px down a 111px-tall artwork, so 80px of the
   box has to be above the edge for both of them to be there. */
.footer-george {
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 128px;
  height: auto;
  transform: translateX(-50%);
  transition: transform 420ms cubic-bezier(0.34, 1.28, 0.52, 1);
}

.site-footer:hover .footer-george { transform: translateX(-50%) translateY(-36px); }

@media (max-width: 700px) {
  /* Three groups side by side wrap into a ragged 1 + 2, with three different
     left edges and nothing to line up against. Stacked and centred instead,
     which is how the line under them and George already sit. */
  .footer-cols {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer-body { padding-bottom: 104px; }
  .footer-george { width: 110px; bottom: -33px; }
  .site-footer:hover .footer-george { transform: translateX(-50%) translateY(-33px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-george { transition: none; }
}
