@layer components {
  /* The logo: the symbol, a sail inside a camera lens, then the name in Plus Jakarta Sans 700,
   * in charcoal (../landing/brand.md, Logo; the homepage's .logo and .logo svg). It aligns on the
   * baseline and only the symbol centres itself, so the logo's baseline is the name's: a row that
   * aligns on the baseline, as the footer's top does, keeps its words on the name's line. */
  .logo {
    align-items: baseline;
    color: var(--color-ink);
    display: inline-flex;
    font: 700 22px/1 var(--font-sans);
    gap: 0.39em;
    letter-spacing: -0.02em;
    position: relative;
    text-decoration: none;
    white-space: nowrap;

    /* A finger's reach around the logo on a touch screen. */
    @media (pointer: coarse) {
      &::after {
        content: "";
        inset: -11px -8px;
        position: absolute;
      }
    }
  }

  /* 1.27em square, centred on the capitals. Its two margins keep the logo's box one line (22px)
   * tall: the symbol reaches 2px above it and 4px below, so no page moves. */
  .logo__symbol {
    align-self: center;
    block-size: 1.27em;
    flex: none;
    inline-size: 1.27em;
    margin-block: -0.1em -0.17em;
  }
}
