@layer components {
  .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* The Keepazoid mark */
  .loop {
    width: 29px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Favicons sit on white, so dark glyphs stay visible in dark mode */
  .favicon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    overflow: hidden;
    border-radius: 25%;
    background: #fff;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .favicon--letter {
    background: var(--color-well);
    color: var(--color-ink-secondary);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
  }

  /* The source tile on a keep's page */
  .favicon--large {
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-card);

    img {
      border-radius: 3px;
    }

    &.favicon--letter {
      padding: 0;
      color: var(--color-ink);
      font-size: 14px;
    }
  }
}
